Resolve GitHub issues using isolated worktrees and TDD
Execute issue resolution workflow using isolated worktrees, TDD methodology, and agent collaboration.
git statusgit branch --show-currentgit worktree listgh issue list --state open --limit 10gh auth statusUse isolated worktrees to avoid disrupting main development. Follow TDD cycle (red → green → refactor) with agent support. Reference issues in commits using auto-closing keywords. See references/requirements.md for protected PR workflow and commit standards.
Goal: Select target issue and prepare isolated development environment.
Actions:
$ARGUMENTSfix-456-auth-redirect) to create an isolated sessiongit branch -m <type>/<issue>-<description> (see references/workflow-details.md for naming)Goal: Implement fix using test-driven development with agent collaboration.
Actions:
references/workflow-details.md for project-specific checks). /github:create-pr re-runs the full gate in Phase 3 and is the authoritative pre-PR check.Goal: Hand PR creation to /github:create-pr so the quality gate and the review loop run. Cleanup happens only after the merge, which may be many turns later.
Actions:
git push -u origin <branch-name>gh pr create here. Invoke Skill("github:create-pr", "<issue reference>") — e.g. Skill("github:create-pr", "Closes #456"). It is the plugin's only PR-creating path and owns the quality/security gate, the auto-closing-keyword linkage, the non-default-branch warning, and the mandatory /github:review-pr handoff. See references/pr-creation-handoff.md for the full contract. Creating the PR directly skips all of it.--draft to the arguments if the fix requires further feedback before review--no-monitor only when the user explicitly opts out of the review loop/github:create-pr reports the PR URL, and /github:review-pr then owns the PR for the rest of its life: a persistent Monitor spanning turns, the triage/fix/push rounds, and the merge decision it asks the user to make. Do NOT wait inline, do NOT re-report the URL, and do NOT run Phase 4 speculatively.Trigger: The PR from Phase 3 has actually merged — normally a later turn, after /github:review-pr completed its merge decision. /github:review-pr's closeout now owns the post-merge cleanup (worktree removal via ExitWorktree action:"remove", switch to main, sync with origin), so this Phase runs only as a fallback when that cleanup was skipped: the user chose "Don't merge", an interrupt left the worktree behind, or this is a fresh session that cannot ExitWorktree the worktree created by an earlier session. Never assume the worktree is gone — verify first.
Actions:
gh pr view <PR#> --json state -q .state returning MERGED; never assume.git worktree list whether the issue worktree still exists. If /github:review-pr already removed it, skip straight to git fetch --prune.ExitWorktree action:"remove". If checkout drifted onto main/develop, stop — removing would delete a long-lived branch. Remote head may already be gone; that is fine.discard_changes: truegit fetch --prune to sync remote-tracking branches.references/requirements.md - Worktree setup, TDD, and commit standardsreferences/pr-creation-handoff.md - Why PRs delegate to /github:create-prreferences/workflow-details.md - Issue selection, TDD cycle, agent collaborationreferences/quality-validation.md - Node.js/Python validation commands (shared)references/examples.md - Commit message examples