ワンクリックで
build-feature
Full pipeline: evaluation -> spec -> implementation -> review -> QA
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Full pipeline: evaluation -> spec -> implementation -> review -> QA
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Full pipeline: evaluation -> spec -> implementation -> review -> QA
Convenes multiple agents to debate an important decision
Enriches CLAUDE.md by exploring the project and specializes agents to the real stack
QA + bugfix cycle until it passes
Convenes multiple agents to debate an important decision
Enriches CLAUDE.md by exploring the project and specializes agents to the real stack
| name | build-feature |
| description | Full pipeline: evaluation -> spec -> implementation -> review -> QA |
| user-invocable | true |
| workflow | {"version":1,"steps":[{"id":"evaluate","role":"advisor","intent":"Evaluate the feature against the project vision. Identify risks, dependencies, and conflicts. Issue verdict: Approved / Rejected / Requires adjustments.","requires":["feature-description"],"produces":["evaluation-report","verdict"],"model-tier":"reasoning"},{"id":"design","role":"tech-lead","intent":"Break the feature into concrete tasks with acceptance criteria. Define implementation approach: files to modify, patterns to follow, interfaces, and technical risks.","requires":["feature-description","evaluation-report"],"produces":["task-list","acceptance-criteria","technical-plan"],"model-tier":"reasoning"},{"id":"implement","role":"developer","intent":"Implement the feature following the technical plan. Write unit tests. Make atomic commits.","requires":["technical-plan","acceptance-criteria"],"produces":["implementation","test-results"],"model-tier":"execution"},{"id":"gate-pre-review","role":"system","intent":"Run project tests and lint. Both must pass before review.","gate":true,"produces":["gate-pre-review-result"]},{"id":"checkpoint","role":"system","intent":"Create checkpoint commit and write partial pipeline trace to spec file.","requires":["implementation","gate-pre-review-result"],"produces":["checkpoint-commit"],"gate":true},{"id":"review","role":"code-reviewer","intent":"Review code quality, patterns, security, and test coverage. Classify findings as Blocker, Warning, or Suggestion.","requires":["implementation","gate-pre-review-result"],"produces":["review-report"],"model-tier":"reasoning"},{"id":"fix-review-blockers","role":"developer","intent":"Fix blocker findings from code review. Run tests after fixing.","requires":["review-report"],"produces":["implementation"],"model-tier":"execution"},{"id":"qa-phase","role":"qa","intent":"Validate acceptance criteria, test edge cases, run bugfix cycles if needed.","requires":["acceptance-criteria","implementation"],"produces":["qa-report"],"model-tier":"execution"},{"id":"gate-final","role":"system","intent":"Run project tests and lint as final verification. Both must pass.","gate":true,"produces":["final-gate-result"]},{"id":"completion","role":"system","intent":"Present pipeline summary to user.","requires":["final-gate-result","review-report","qa-report"],"produces":["pipeline-summary"],"gate":true}]} |
Full pipeline to build a feature end-to-end with all team agents. Each phase invokes a specialized agent using the Task tool.
/build-feature [feature description]
When multiple build-feature pipelines run in parallel, each MUST use its own git worktree to avoid branch conflicts:
git worktree add .claude/worktrees/[branch-name] -b [branch-name] develop
All file operations within the pipeline must use the worktree directory as the working directory. After the PR is merged, clean up with:
git worktree remove .claude/worktrees/[branch-name]
When running a single build-feature, a simple git checkout -b is sufficient.
At the start of each phase, display a progress indicator to the user before any agent output:
[1/5] Advisor (opus) — Evaluating feature...
[2/5] Tech Lead (opus) — Defining spec and technical approach...
[3/5] Developer (sonnet) — Implementing...
[4/5] Code Reviewer (opus) — Reviewing changes...
[5/5] QA (sonnet) — Validating acceptance criteria...
When the preferred model for a tier is unavailable, show the fallback with an arrow indicating what was attempted:
[1/5] Advisor (sonnet ← opus) — Evaluating feature...
[3/5] Developer (haiku ← sonnet) — Implementing...
Display the normal format (just the model name) when the preferred model resolves successfully. Display the fallback format (actual ← preferred) only when a fallback was required.
Model names are resolved from the step's model-tier using the preferred model defined in Model Resolution (see Subagent Configuration). System/gate steps do not show a model name.
When a phase loops (review-fix or QA-review cycles), show the iteration:
[4/5 · round 2] Code Reviewer (opus) — Re-reviewing after fixes...
[3/5 · round 2] Developer (sonnet) — Fixing review blockers...
This indicator MUST be displayed after model resolution completes but before processing the agent's response. If the preferred model fails and fallback is triggered, display the fallback notation (actual ← preferred) — the user sees the resolved model, never the failed attempt.
The fallback notation applies to all progress lines, including loop iterations.
Progress: [1/5] Advisor (opus) — Evaluating feature...
The model name in parentheses is always the resolved model after applying Model Resolution rules. If a fallback was used, it shows (actual ← preferred) instead. This applies to all phases — the model: values shown in each phase description are the preferred models, subject to the resolution process defined in Subagent Configuration.
Agent: Reads .claude/agents/advisor.md via Task tool with model: "opus"
Input: The feature description provided by the user
Process:
Output: Evaluation with reasoning and identified risks Trace data: Verdict (Approved/Rejected/Approved with conditions), risks identified, conditions if any Exit condition: If the Advisor rejects the feature, the pipeline stops here. Inform the user of the reason and suggest adjustments if any.
Progress: [2/5] Tech Lead (opus) — Defining spec and technical approach...
Agent: Reads .claude/agents/tech-lead.md via Task tool with model: "opus"
Input: The feature approved by the Advisor + their observations
Process:
Output: Task list with acceptance criteria + technical plan with files, patterns, interfaces, and risks Trace data: Tasks defined count, acceptance criteria count, key patterns identified, files to modify, technical risks
Progress: [3/5] Developer (sonnet) — Implementing...
Agent: Reads .claude/agents/developer.md via Task tool with model: "sonnet"
Input: Tech Lead technical plan + acceptance criteria
Process:
Output: Implemented code + tests + commits made Trace data: Files created/modified, tests added, commits made
Before advancing to Phase 4, run automated verification:
npm test) — if it fails, the Developer must fix before advancingnpm run lint) — if it fails, the Developer must fix before advancingThis gate CANNOT be skipped, even if the user requested phase skipping. The specific commands are in the "CLI commands" section of CLAUDE.md.
Trace data: Tests pass/fail, lint pass/fail
Progress: [4/5] Code Reviewer (opus) — Reviewing changes...
Agent: Reads .claude/agents/code-reviewer.md via Task tool with model: "opus"
Input: The implemented changes (git diff)
Process:
Output: Review report with classified findings Trace data: Blockers count, warnings count, suggestions count, review-fix loops Loop condition: If there are Blocker findings, return to Phase 3 for the Developer to fix them. Maximum 2 review-fix iterations.
Progress: [5/5] QA (sonnet) — Validating acceptance criteria...
Runs the /qa-cycle skill passing the acceptance criteria as context. The qa-cycle handles:
Trace data: Acceptance criteria verified count, bugs found, QA cycles Additional loop condition: If the qa-cycle bugfix introduces significant changes, return to Phase 4 (Review) for verification. Maximum 2 review-QA cycles.
After each phase completes, create a checkpoint commit to preserve progress. This ensures work survives session interruptions.
git add -A
git commit -m "wip: [feature-name] phase N complete — [phase-name]"
Pattern for each phase:
wip: [feature] phase 1 — advisor approvedwip: [feature] phase 2 — spec and tech approach definedwip: [feature] phase 3 — implementation done -- also write partial trace (phases 1-3) to spec and update status to implementingwip: [feature] phase 4 — review passedwip: [feature] phase 5 — QA passedAfter pipeline completion, append a ## Pipeline Trace section to the feature's spec file in docs/specs/. This provides a structured record of what happened in each phase.
docs/specs/ for a file whose spec-id frontmatter matches the feature name (kebab-case)docs/specs/[feature-name].mdWhen no prior council spec exists, create a minimal spec:
---
spec-id: [feature-name]
status: implementing
date: [YYYY-MM-DD]
council-type: none (pipeline-generated)
---
# Spec: [Feature Name]
## Context
Spec auto-generated by /build-feature pipeline. No prior council session.
## Pipeline Trace
[trace content appended here]
status: implementingstatus: implementedAppend this section to the spec file:
## Pipeline Trace
pipeline-start: [YYYY-MM-DD]
pipeline-end: [YYYY-MM-DD]
phases-completed: [N]/5
review-fix-loops: [N]
qa-cycles: [N]
final-gate: pass | fail
### Phase 1 — Evaluation
- **Verdict**: [Approved/Rejected/Approved with conditions]
- **Risks identified**: [list or "None"]
### Phase 2 — Specification & Technical Approach
- **Tasks defined**: [N]
- **Acceptance criteria**: [N]
- **Key patterns**: [list]
- **Files to modify**: [list]
- **Technical risks**: [list or "None"]
- **Estimated effort**: [summary]
### Phase 3 — Implementation
- **Files created/modified**: [list]
- **Tests added**: [N]
- **Commits**: [list of commit summaries]
### Pre-Review Gate
- **Tests**: pass | fail
- **Lint**: pass | fail
### Phase 4 — Review
- **Blockers**: [N]
- **Warnings**: [N]
- **Suggestions**: [N]
- **Review-fix loops**: [N]
### Phase 5 — QA
- **Acceptance criteria verified**: [N]/[total]
- **Bugs found**: [N]
- **QA cycles**: [N]
### Final Gate
- **Tests**: pass | fail
- **Lint**: pass | fail
- **Result**: pass | fail
implementing. Include the spec file in the checkpoint commit.implemented. Include the spec file in the final checkpoint commit.Before declaring the pipeline as complete, run final verification:
This gate is the last safety net. It CANNOT be skipped under any circumstances.
Trace data: Tests pass/fail, lint pass/fail, result (pass/fail)
Upon successfully completing all phases and the final gate:
Write the complete Pipeline Trace to the spec file (see "Pipeline Trace" section above). Update the spec status to implemented. Include the spec file in the final checkpoint commit.
Present pipeline summary:
Close the GitHub Issue (if applicable):
Closes #N in PR description (only works when merging to default branch)gh issue close N --comment "Resolved in PR #X"When spawning agents via the Task tool, use these subagent_type values:
| Guild Agent Role | subagent_type to use |
|---|---|
| advisor, tech-lead | "general-purpose" |
| developer, bugfix | "general-purpose" |
| code-reviewer, qa | "general-purpose" |
IMPORTANT: Guild agent role names (advisor, developer, etc.) are NOT valid Claude Code subagent_types. Always use "general-purpose" for agents that need full tool access (Read, Write, Edit, Bash, Grep, Glob, etc.). Never use "Bash" alone — it lacks file editing tools.
Example Task invocation:
Task tool with:
subagent_type: "general-purpose"
model: "opus"
prompt: "Read .claude/agents/advisor.md and assume that role. Then: [task description]"
The model parameter is resolved from the step's model-tier: reasoning→"opus", execution→"sonnet", routine→"haiku". System/gate steps run inline (no Task tool).
Each model-tier maps to a preferred model and a fallback:
| model-tier | Preferred | Fallback |
|---|---|---|
| reasoning | opus | sonnet |
| execution | sonnet | haiku |
| routine | haiku | sonnet |
The routine tier falls back up to sonnet because haiku has no lower-tier fallback — sonnet serves as the universal backup.
Resolution process:
model-tierA single retry is sufficient. If both preferred and fallback fail, surface the error to the user and halt the pipeline.
User: /build-feature add dark mode toggle to settings page
[1/5] Advisor (opus) — Evaluating feature...
Approved. Low risk, aligns with UX roadmap.
[2/5] Tech Lead (sonnet ← opus) — Defining spec and technical approach...
3 tasks defined. Use CSS variables + context provider pattern.
[3/5] Developer (sonnet) — Implementing...
Implemented ThemeContext, toggle component, CSS vars.
[4/5] Code Reviewer (opus) — Reviewing changes...
Passed. 1 suggestion (memoize context value).
[5/5] QA (sonnet) — Validating acceptance criteria...
All 3 acceptance criteria verified. 0 bugs.
Feature complete. PR ready for merge.
In this example, opus was unavailable during Phase 2 so the Tech Lead fell back to sonnet. All other phases used their preferred model.