用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gittower/git-flow-next --skill resolve-issue命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | resolve-issue |
| description | Resolve a spec issue end-to-end using sequential subagents |
| argument-hint | <issue-number> |
| allowed-tools | Task, Bash, Read, Glob, Grep, Write, Agent, mcp__github__get_issue |
Resolve a GitHub spec issue end-to-end by orchestrating the full workflow. Each step runs in a fresh subagent context via the Task tool so that no single context becomes overloaded. Runs autonomously; the only user gates are abort conditions and the final publish (push + PR creation).
/resolve-issue <issue-number>
Before anything else, fetch issue #$ARGUMENTS (mcp__github__get_issue) and
verify it is a spec issue: it carries the spec label, or its body has
the spec structure per ISSUE_GUIDELINES.md (Goal, Expected Behavior, Test
Scenarios sections).
If it is not a spec issue, stop and tell the user:
/triage <number> first/create-spec <number>If the spec has a Breakdown section (sub-issues), do not resolve the parent
— tell the user to run /resolve-issue per sub-issue instead.
Execute these steps sequentially. Each step uses the Task tool with
subagent_type: "general-purpose" to spawn a fresh agent. Wait for each
step to complete and verify its output before proceeding.
Between steps, you (the orchestrator) handle verification and branch management directly.
Spawn a subagent:
general-purposeAnalyze spec issueRead the skill definition at .claude/skills/analyze-issue/SKILL.md and execute it fully. The issue number is $ARGUMENTS. The repository is gittower/git-flow-next. The issue is a spec issue — the analysis should map its Expected Behavior and Test Scenarios onto the codebase: affected components, current behavior, root cause location for bugs.Verify: Use Glob to confirm .ai/issue-$ARGUMENTS-*/analysis.md was created.
Run directly (no subagent needed):
.ai/ folder created in step 1:
ls -d .ai/issue-$ARGUMENTS-*
issue-42-squash-merge → 42-squash-merge)git worktree add -b feature/<number>-<slug> ../git-flow-next.worktrees/<number>-<slug> main
cd ../git-flow-next.worktrees/<number>-<slug>
gh-authenticated user
— so it reflects who is working on it:
gh issue edit $ARGUMENTS --add-assignee @me
Verify: Confirm the current directory is the new worktree and the current branch is the feature branch.
Save the worktree path and slug in variables for subsequent steps. The .ai/
folder stays in the main clone — reference it as
../git-flow-next/.ai/issue-<number>-<slug>/ from inside the worktree.
Spawn a subagent:
general-purposeCreate implementation planRead the skill definition at .claude/skills/create-plan/SKILL.md and execute it fully. The current branch is feature/<slug> and the workflow folder is <ai-folder>. The source of truth is spec issue #$ARGUMENTS; the codebase analysis is at <ai-folder>/analysis.md. The Test Plan section comes first and derives from the spec's Test Scenarios.Verify: Use Glob to confirm <ai-folder>/plan.md was created and it contains a Test Plan section.
Spawn a subagent:
general-purposeCodex-gate test planRead the skill definition at .claude/skills/validate-tests/SKILL.md and execute it fully. The workflow folder is <ai-folder>. The plan is at <ai-folder>/plan.md. The source of truth is spec issue #$ARGUMENTS.Verify: Confirm <ai-folder>/codex-test-plan.md was created. After this
step the test plan is authoritative.
Spawn a subagent:
general-purposeImplement the planRead the skill definition at .claude/skills/implement/SKILL.md and execute it fully. Implement from <ai-folder>/plan.md. The current branch is feature/<slug>. Use the /commit skill (read .claude/skills/commit/SKILL.md) for creating commits. Observe the Test Immutability Rule strictly: tests first, never edited to make the implementation pass; plan revisions go back through /validate-tests; abort after 3 revisions.Verify (run directly, not in subagent):
go build ./...
go test ./...
If the subagent reports a 3-revision abort, stop the workflow entirely and report to the user: the spec/plan and implementation are fundamentally at odds and need human review. Do not continue to later steps.
If build or tests fail, report the error and ask the user whether to retry or abort.
Spawn a subagent:
general-purposeReview changes locallyRead the skill definition at .claude/skills/code-review/SKILL.md and execute it fully. Review all new commits on the current branch vs main. The linked spec is issue #$ARGUMENTS — verify spec satisfaction per REVIEW_CRITERIA.md. Write the review to <ai-folder>/.Verify: Use Glob to confirm <ai-folder>/review-*.md was created.
Run a Codex gate per .claude/skills/_shared/CODEX_GATE.md (directly or in
a subagent):
git diff main...HEAD) plus the
commit listEvaluate findings per the convention (high-confidence only; the local
review from step 6 is context for judging them). Log all verdicts to
<ai-folder>/codex-code-review.md.
Combine accepted findings from steps 6 and 7. If fixes are needed, spawn a subagent:
general-purposeImplement review fixesRead the skill definition at .claude/skills/implement/SKILL.md and execute it fully. Implement fixes from <ai-folder>/review-*.md and the applied findings in <ai-folder>/codex-code-review.md. The current branch is feature/<slug>. The Test Immutability Rule applies. Use the /commit skill for commits.If both reviews are clean, skip this step and report that.
Verify (run directly):
go build ./...
go test ./...
Spawn a subagent:
general-purposeGenerate PR summaryRead the skill definition at .claude/skills/pr-summary/SKILL.md and execute it fully. The current branch is feature/<slug> and the workflow folder is <ai-folder>. The PR resolves spec issue #$ARGUMENTS.Verify: Use Glob to confirm <ai-folder>/pr_summary.md was created.
Public actions wait for the user. Present:
pr_summary.md passes the /pr-summary Validate
Format checklist — the PR body is a GitHub-only artifact and won't be
caught later in code reviewgit push -u, e.g. to
main):
git push origin feature/<slug>:refs/heads/feature/<slug>
git branch --set-upstream-to=origin/feature/<slug> feature/<slug>
gh pr create --title "<title>" --body "$(cat <ai-folder>/pr_summary.md)"
<title> follows the PR-title format from /pr-summary /
COMMIT_GUIDELINES.md — type(scope): Subject, no issue number.Ask: "Publish the branch and create the PR?"
On confirmation, push and create the PR. Verify the posted body with
gh pr view <n>; if it drifted from pr_summary.md, fix it with
gh pr edit. Report the PR URL.
After each step, report to the user:
If any step fails:
The 3-revision abort in step 5 is terminal — never retry it automatically.