用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/benjamcalvin/bootstraps --skill implement-code命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Address filtered review findings for implement workflow (runs as subagent)
Implementation, review, and merge — full lifecycle or any subset. Lean orchestrator that delegates all heavy work to isolated subagents. Triggers: /implement, $implement-lifecycle:implement, implement this, build this feature
Lifecycle-internal merge step requiring a PR number and the temporary handoff artifact produced by verification; validates readiness, follows repository merge policy, and posts issue updates.
基于 SOC 职业分类
正在显示 SKILL.md
| name | implement-code |
| description | Plan, implement code, tests, and create PR for implement workflow (runs as subagent) |
| license | MIT |
| metadata | {"version":"1.1.0","tags":["implement","code","pr","subagent"],"author":"benjamcalvin"} |
Suite capability: focused-only. Run focused tests, lint, builds, and acceptance commands only. Do not execute or consume the target repository's authoritative verification command or ordered command plan. Final verification owns that evidence.
Implement the task supplied by the orchestrator. The first token is the linked issue number, or 0 if none.
$ARGUMENTS
If the current client leaves $ARGUMENTS literal, use the delegation prompt instead.
At runtime, inspect the current branch, recent commits, repository status, and any referenced issue or specification before making changes.
Read project-level instructions if they exist. At minimum, check for AGENTS.md and CLAUDE.md for critical invariants. Check for standards docs in docs/ or docs/specs/standards/ when your task touches relevant areas.
You are the implementer for the /implement workflow. You explore the codebase, plan, write code, write tests, and create the PR.
Use the current client's task or plan tracker when available.
If the task description includes "skip planning" or "just implement", or if the orchestrator has already provided a detailed plan with acceptance criteria, skip to Step 1.
Otherwise, plan the implementation before writing code:
Do not return the plan to the orchestrator. Proceed directly to Step 1 with the plan in mind.
Read explicit user direction and the target repository's governing instructions before choosing branch names, commit format, PR structure, checks, or delivery behavior. Those sources override the bundled fallback conventions in this skill.
If you're on the shared base branch for this work (for example the repository default branch or a shared integration branch), create a feature branch:
git checkout -b <type>/<short-description>
Bundled branch fallback: <type>/<short-description> where type is feat, fix, refactor, docs, test, or chore. Lowercase, hyphen-separated. No issue numbers in the branch name. Apply it only when target-repository policy is silent.
If already on a feature branch or stacked branch for this work, stay on it.
Write tests for the identified test cases before writing production code. Tests should fail until implementation is complete. Follow existing test patterns in the codebase:
Write the minimum code to make all tests pass:
Run focused tests, linters, and a build for the packages/modules you changed. Every test you touched must pass; every lint must pass. If tests fail, fix the code (not the tests).
If your changes include runnable artifacts — CLI commands, scripts, API endpoints, or configuration that produces observable behavior — verify them against a real environment before proceeding.
| Change type | What to verify |
|---|---|
| CLI commands / scripts | Run with representative inputs. Verify expected output. Test at least one error case. |
| API endpoints | Start the server. Hit each new/changed endpoint. Verify response status, body, and errors. |
| Configuration changes | Start the affected service. Verify it loads correctly and behavior is observable. |
| Database migrations | Apply the migration. Verify schema changes. Roll back and reapply. |
| Library code / refactoring / docs | No manual verification required — automated tests are sufficient. Skip to Step 6. |
Every piece of verification evidence must include three parts:
Read every changed file. Check for:
Fix anything you find before proceeding.
Follow the target repository's commit policy. When it is silent, use the bundled <type>: <summary> fallback in imperative mood with no period.
git add <specific files>
git commit -m "<type>: <summary>"
Before pushing, identify the branch this work should be based on. Use the repository's default branch for standalone work, or the parent feature branch for stacked work. Do not assume it is always main.
BASE_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
# Example for stacked work: BASE_BRANCH="feat/parent-feature"
git fetch origin "$BASE_BRANCH"
git rebase "origin/$BASE_BRANCH"
If conflicts arise, resolve them and rerun only the focused checks affected by the conflict before continuing. Do not execute or consume the authoritative verification command or ordered command plan.
Push the branch (first push uses -u to set upstream):
git push -u origin HEAD
Create the PR using the target repository's template and formatting policy when present. The bundled structure below is a fallback. If the issue number is not 0, include an issue reference after the TL;DR section unless target policy specifies another placement:
Closes #N only when this single PR fully completes the issuePart of #N when this PR is one of several addressing the issue (default to this when unsure)The description descends through altitude layers, and each section holds one: the TL;DR is behavior only (plain language, no file paths, function names, or line numbers), Design is component terms only, and code identifiers appear from Implementation Notes down. One idea per sentence; cite an issue or spec at the end of a bullet, never mid-clause; keep review chronology ("round 1 added X") out of the description. Skim test before submitting: the first sentence of each section, read in order, must summarize the PR at descending altitude.
gh pr create --title "<type>: <imperative summary>" --body "$(cat <<'EOF'
## TL;DR
<Behavior layer. 2-4 plain-language sentences: the resulting change and why
it matters. A reader who has never seen the code must understand it.>
<Closes #N or Part of #N, on its own line — omit when the issue number is 0>
## Design
<Design layer. The important design choices and their reasons, in component
terms; identify intentional deviations from a spec here. Omit only when the
TL;DR leaves no design question open.>
## Implementation Notes
<Implementation layer — the only sections from here down where file, function,
and line references belong. The file-level shape of the diff and, when the
diff is large, the order in which to read it.>
## Test evidence
### Automated tests
<test command and result summary>
### Manual verification
<for each verification, include: exact command, full output, and explanation>
<if not applicable: "N/A — no runnable artifacts changed">
## Review focus
<the specific decisions reviewers should weigh in on, with file references>
EOF
)"
Return exactly:
PR_NUMBER: <number>
PR_TITLE: <title>
SUMMARY: <1-2 sentence summary of what was implemented>