AgentSkillsCN

implement-issue

当您收到 GitHub 问题编号与基础分支,需完整实现端到端功能时使用。

SKILL.md
--- frontmatter
name: implement-issue
description: Use when given a GitHub issue number and base branch to implement end-to-end
argument-hint: "[issue-number] [base-branch]"

Implement Issue

End-to-end issue implementation via orchestrator script.

Announce at start: "Using implement-issue to run orchestrator for #$ISSUE against $BRANCH"

Arguments:

  • $1 — GitHub issue number (required)
  • $2 — Base branch name (required)

Invocation

Immediately launch the orchestrator:

bash
.claude/scripts/implement-issue-orchestrator.sh \
  --issue $ISSUE_NUMBER \
  --branch $BASE_BRANCH

Or with explicit agent override:

bash
.claude/scripts/implement-issue-orchestrator.sh \
  --issue $ISSUE_NUMBER \
  --branch $BASE_BRANCH \
  --agent bulletproof-frontend-developer

Monitoring

Check progress via status.json:

bash
jq . status.json

Watch live:

bash
watch -n 5 'jq -c "{state,stage:.current_stage,task:.current_task,quality:.quality_iterations}" status.json'

Stages

StageAgentDescription
setupdefaultfetch, worktree, research, evaluate, plan
implementper-taskexecute each task from plan
task-reviewspec-reviewerverify task achieved goal
fixper-taskaddress review findings
simplifycode-simplifierclean up code
testphp-test-validatorrun test suite
reviewcode-reviewerinternal code review
docsphpdoc-writeradd PHPDoc blocks
prdefaultcreate/update PR
spec-reviewspec-reviewerverify PR achieves issue goals
code-reviewcode-reviewerfinal code quality check
completedefaultpost summary

Schemas

Located in .claude/scripts/schemas/implement-issue-*.json

Logging

Logs written to logs/implement-issue/issue-N-timestamp/:

  • orchestrator.log — main log
  • stages/ — per-stage Claude output
  • context/ — parsed outputs (tasks.json, etc.)
  • status.json — final status snapshot

Exit Codes

CodeMeaning
0Success, PR created and approved
1Error during a stage
2Max iterations exceeded
3Configuration/argument error

Integration

Called by handle-issues via batch-orchestrator.sh.