Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-agent-skills-ddd9de43f7a7 ,按照其中的说明把「build」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Invoke the agent-skills:incremental-implementation skill alongside agent-skills:test-driven-development.
/build — implement the next pending task, then stop (careful, one slice at a time)./build auto — generate the plan if needed, get a single approval, then implement every task without stopping between them.$ARGUMENTS selects the mode. Treat auto (canonical) or all as autonomous mode; anything else (or empty) is the default single-task mode. Note: autonomous mode is not faster per task — it runs the same test-driven loop — it only removes the human stepping between tasks.
Pick the next pending task from the plan. Then:
/build auto)Use this once a spec exists and you want to collapse plan + build into one run. It removes the manual stepping between tasks — not the verification. Every task still earns a passing test and its own commit.
Require a spec. Look only for a spec at a known path: SPEC.md at the repo root, docs/SPEC.md, or a file under spec/. A README or arbitrary doc does not count. If none exists, stop and tell the user to run /spec first — do not invent requirements.
Establish a clean baseline. Run git status --porcelain. If there are uncommitted changes outside the expected planning artifacts (SPEC.md, docs/SPEC.md, spec/*, tasks/plan.md, tasks/todo.md), stop and ask the user to commit, stash, or confirm how to handle them. Autonomous per-task commits must not absorb unrelated local work, or the clean-rollback guarantee breaks.
Plan if needed. If there is no tasks/plan.md, invoke agent-skills:planning-and-task-breakdown to generate one.
Single checkpoint. Present the full plan and wait for an unambiguous affirmative (e.g. "approve", "go", "yes"). Treat hedged responses ("looks reasonable", "I guess") as not approved. This is the only human gate — after approval, run autonomously. If you generated tasks/plan.md, commit it as a single preparatory commit now so it doesn't bleed into the first task's commit.
Execute every task in dependency order. Use each task's declared dependencies; if they aren't explicit, execute in the order the plan lists them. For each task, run the full default loop above (RED → GREEN → regression → build → commit → mark complete). Stage only the files that task touched plus its task-status update — never git add -A blindly — and make one commit per task so any point is a clean rollback.
Stop and ask the user (do not push through) when:
git revert → follow agent-skills:doubt-driven-development and get explicit sign-off before continuingAfter the user resolves a blocker, they re-invoke /build auto — it resumes from the next pending task.
Summarize at the end: tasks completed, tests added, commits made, and anything skipped, flagged, or left for the user.
If any step fails, follow the agent-skills:debugging-and-error-recovery skill.