diff --git a/docs/agents/IMPLEMENTATION_START.md b/docs/agents/IMPLEMENTATION_START.md index 456f510..db09f69 100644 --- a/docs/agents/IMPLEMENTATION_START.md +++ b/docs/agents/IMPLEMENTATION_START.md @@ -18,6 +18,9 @@ Implementation work (creating branches/PRs, pushing commits, merging) must be pe # Bash example: # export GH_CONFIG_DIR="$HOME/.config/gh-implement" +# Optional project hook (recommended if present): +# powershell -ExecutionPolicy Bypass -File tools/gh/as-implementer.ps1 + gh auth switch -u gh api user --jq .login ``` diff --git a/docs/agents/PR_REVIEW_START.md b/docs/agents/PR_REVIEW_START.md index 6d94ed0..1e61237 100644 --- a/docs/agents/PR_REVIEW_START.md +++ b/docs/agents/PR_REVIEW_START.md @@ -19,6 +19,9 @@ PR reviews must be performed using a dedicated **reviewer** GitHub identity (not # Bash example: # export GH_CONFIG_DIR="$HOME/.config/gh-review" +# Optional project hook (recommended if present): +# powershell -ExecutionPolicy Bypass -File tools/gh/as-reviewer.ps1 + gh auth switch -u gh api user --jq .login ``` diff --git a/skills/implement/SKILL.md b/skills/implement/SKILL.md index dc4f846..e3e72b0 100644 --- a/skills/implement/SKILL.md +++ b/skills/implement/SKILL.md @@ -24,6 +24,7 @@ If there is no spec yet, switch to `/design` (exploration) before implementing. - Use the implementer GitHub identity for all implementation actions (branch/PR/push/merge). - Prefer an isolated `gh` auth store for the implementer role via `GH_CONFIG_DIR` (see `.aide/docs/agents/IMPLEMENTATION_START.md`). +- Preferred: `powershell -ExecutionPolicy Bypass -File tools/gh/as-implementer.ps1` (if present). - If the active GitHub identity is the reviewer identity, stop and request switching identities before proceeding. ## Workflow diff --git a/skills/pr-review/SKILL.md b/skills/pr-review/SKILL.md index 4780c24..e9d1f81 100644 --- a/skills/pr-review/SKILL.md +++ b/skills/pr-review/SKILL.md @@ -39,7 +39,9 @@ Review a PR against the linked issue spec and project constraints. Do not push f - Findings grouped by severity (Critical/Major/Minor) with `path:line` references. - Clear decision: approve / request changes / non-blocking. - Prefer submitting as a formal GitHub Review via `gh pr review` (not only as a PR comment). - - Switch to the reviewer identity before reviewing: `gh auth switch -u ` (see `.aide/docs/agents/PR_REVIEW_START.md`). + - Switch to the reviewer identity before reviewing: + - Preferred: `powershell -ExecutionPolicy Bypass -File tools/gh/as-reviewer.ps1` (if present) + - Fallback: `gh auth switch -u ` (see `.aide/docs/agents/PR_REVIEW_START.md`) - If the reviewer identity == PR author, stop and request switching identities (do not review as the author). ## Reference