From 8a573d8ca6656e3893de7b6c1eaa6a21d398de61 Mon Sep 17 00:00:00 2001 From: lightforgelabsdev Date: Thu, 5 Feb 2026 21:38:52 +0000 Subject: [PATCH] Docs: recommend GH_CONFIG_DIR per role --- docs/agents/IMPLEMENTATION_START.md | 18 ++++++++++++++++++ docs/agents/PR_REVIEW_START.md | 7 +++++++ skills/implement/SKILL.md | 6 ++++++ 3 files changed, 31 insertions(+) diff --git a/docs/agents/IMPLEMENTATION_START.md b/docs/agents/IMPLEMENTATION_START.md index 52e17c1..456f510 100644 --- a/docs/agents/IMPLEMENTATION_START.md +++ b/docs/agents/IMPLEMENTATION_START.md @@ -6,6 +6,24 @@ Token Economy: follow `AGENT_OPERATIONAL_TOKEN_ECONOMY.md` (read targeted, commu Default behavior: for implementation work, complete the full workflow (branch, tests, draft PR, ready PR, merge, sync). Do not offer or accept skip options. +## Identity (REQUIRED) + +Implementation work (creating branches/PRs, pushing commits, merging) must be performed using the **implementer** GitHub identity (not the reviewer identity). + +**Before starting:** +```bash +## Preferred: isolated auth store for the implementer role +# PowerShell example: +# $env:GH_CONFIG_DIR="$env:USERPROFILE\.config\gh-implement" +# Bash example: +# export GH_CONFIG_DIR="$HOME/.config/gh-implement" + +gh auth switch -u +gh api user --jq .login +``` + +If the active identity is not the implementer identity, **stop** and request setup/switching before proceeding. + ## Multi-Iteration Protocol (Same Chat / Session) Sometimes a session completes one implementation loop and immediately starts another (new issue, new feature, or a follow-up bug). To keep context clean and avoid workflow drift, do this explicitly. diff --git a/docs/agents/PR_REVIEW_START.md b/docs/agents/PR_REVIEW_START.md index a1bd36c..6d94ed0 100644 --- a/docs/agents/PR_REVIEW_START.md +++ b/docs/agents/PR_REVIEW_START.md @@ -12,6 +12,13 @@ PR reviews must be performed using a dedicated **reviewer** GitHub identity (not **Before starting:** ```bash +## Preferred: isolated auth store for the reviewer role +# (pick a location that matches your OS conventions) +# PowerShell example: +# $env:GH_CONFIG_DIR="$env:USERPROFILE\.config\gh-review" +# Bash example: +# export GH_CONFIG_DIR="$HOME/.config/gh-review" + gh auth switch -u gh api user --jq .login ``` diff --git a/skills/implement/SKILL.md b/skills/implement/SKILL.md index b538da2..dc4f846 100644 --- a/skills/implement/SKILL.md +++ b/skills/implement/SKILL.md @@ -20,6 +20,12 @@ Implement a feature/bug end-to-end using the AIDE implementation workflow. If there is no spec yet, switch to `/design` (exploration) before implementing. +## Identity (REQUIRED) + +- 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`). +- If the active GitHub identity is the reviewer identity, stop and request switching identities before proceeding. + ## Workflow This skill follows the canonical Implementation workflow. The step list below is generated from the workflow manifest to prevent drift.