ワンクリックで
build
Build incrementally. Implement changes in thin vertical slices with TDD and atomic commits. Run after /plan.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Build incrementally. Implement changes in thin vertical slices with TDD and atomic commits. Run after /plan.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
| name | build |
| description | Build incrementally. Implement changes in thin vertical slices with TDD and atomic commits. Run after /plan. |
| argument-hint | plan-step-or-task-description |
| allowed-tools | Task, Skill, Read, Write, Edit, Glob, Grep, Bash(*) |
| user-invocable | true |
@CLAUDE.md
Build: $ARGUMENTS
If $ARGUMENTS is empty, check for recent /plan output in the conversation. If none found, ask the user what to build.
Before implementation, Task(subagent_type="analyst"): Read .claude/skills/analyze/references/engineering-complexity-tiers.md and the task description. Classify as Tier 1-5. Return: tier, rationale, and recommended oversight level. Use this to calibrate implementation approach:
Before any code changes, invoke Skill(skill="pre-mortem") on the task as briefed. Capture the top 2-3 critical risks and their mitigations into the session log. Risks surfaced by reviewers late in the cycle are usually knowable up front. A 5-minute pre-mortem is cheaper than a 10-round bot review.
Task(subagent_type="implementer"): You are a senior engineer. Discover the project's tech stack, coding patterns, and test conventions by reading the codebase. Build in thin vertical slices. Test-first when the project has tests. Commit atomically.
For each slice:
/spec output. Name the test test_<behavior> and include the AC identifier in the docstring or comment.mcp__serena__find_symbol, mcp__serena__get_symbols_overview; some Claude harnesses surface the same tools under the plugin alias mcp__plugin_serena_serena__find_symbol / mcp__plugin_serena_serena__get_symbols_overview, so accept either when present). Otherwise fall back to Grep and Read for filesystem-level discovery. Serena is not guaranteed in every harness (fresh installs without MCP, copilot-cli runtime); the fallback keeps the slice executable across hosts.The agent should self-check:
The build is not complete until all four gates below return clean. These are hard preconditions for declaring done, not advisory output. If any gate returns findings, the implementer must address them in the same /build cycle. Do not kick the can to PR review; advisory framing here produces the iteration paradox where reviewers flag what the implementer should have caught, multiplying the cost of every revision.
Run, in order:
--changed-only against the changed files. Reject the build if any new or modified method scores below the configured thresholds in .qualityrc.json.--git-staged or pass paths explicitly). Reject the build on any error-level violation; address every warning surfaced on lines you touched.--diff-base main so it audits changed comments, docstrings, and prose. Reject the build on any critical or high finding in code or docs you authored.VERDICT: CRITICAL_FAIL. Catches references to deleted skills and missing script paths before they reach review. Manifest count drift is caught by the canonical build/scripts/validate_marketplace_counts.py (which orphan-ref-validator's COUNT_CLAIM_RE mirrors but does not duplicate emission). To diagnose a failure, re-run the skill with --output human; each finding shows path:line plus a one-line recommendation. The skill invocation is platform-agnostic; each platform mirror runs its own copy of scan.py. The first three gates run in --changed-only mode and ignore preexisting drift; gate 4 scans the default targets across the repo because skill-name and script-path orphans are repo-state global, not per-PR. If pre-existing drift outside the PR's scope blocks the gate, fix it in the same PR (the directives at <!-- orphan-ref-ignore --> and <!-- orphan-ref-ignore-file --> are documented in the skill's SKILL.md).If a gate flags an item that is genuinely out of scope for this build, document the rationale in the session log and link to the follow-up issue. "I will fix it in review" is not an acceptable rationale.
Grep/Read if Serena is not present. Read canonical source before writing code that touches it.Review before merge. Stage-1 spec-compliance gate, then 11 Stage-2 canonical axes (analyst, architect, qa, security, devops, roadmap, reliability, observability, agent-safety, decision-rigor, code-quality) plus 3 chained skills (code-qualities-assessment, golden-principles, taste-lints). Run after /test. Run for a full pre-merge review. Do NOT invoke code-qualities-assessment, golden-principles, or taste-lints directly for a full review; review chains them.
Plan how to build it. Decompose specs into milestones with dependencies and risk mitigations. Run after /spec.
Ship it. Pre-flight validation, CI check, and PR creation. Run after /review.
Define what to build. Transform a problem into testable requirements with acceptance criteria.
Detect Spec to Code drift. Scan REQ/DESIGN/TASK specs for references to code that no longer exists, then report drift for review. Run after a hand-edit that moved or deleted code.
Prove it works. Multi-dimensional quality validation across functional, non-functional, security, DevOps, DX, and observability. Run after /build.