build-feature
Skill4 starsChanged 5 months agoMITView on GitHub
Full pipeline: evaluation -> spec -> implementation -> review -> QA
14 other projects use a version of this.
Adopted by
Most recently taken up by
- Doist/todoist-aitheir own version, first seen Nov 9, 2026
- Doist/todoist-clitheir own version, first seen Nov 8, 2026
- sbradl/claude-skillstheir own version, first seen Oct 15, 2026
- koruworks/skillstheir own version, first seen Oct 15, 2026
- zyggy-org/zyggytheir own version, first seen Oct 13, 2026
- sirakinb/claude-code-skillstheir own version, first seen Oct 11, 2026
Used with
Projects with it also use fix-bug, write-tests and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JetBrainsSkillfix-bug
End-to-end bug fix workflow for the Exposed project. Accepts a GitHub issue (#NUMBER), YouTrack issue (EXPOSED-NUMBER), or YouTrack URL (https://youtrack.jetbrains.com/issue/EXPOSED-NUMBER). Fetches the issue, creates a failing reproducer test, commits on a new branch, implements the fix, validates, and opens a PR. Use this skill whenever the user wants to fix a bug from an issue tracker, mentions a EXPOSED issue number, or references a GitHub issue to fix.
Also in 5 projects that use this
SentrySkillwrite-tests
Write tests following project conventions. Use when adding new tests or modifying existing ones.
Also in 3 projects that use this
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 3 projects that use this
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- signerlabs/ShipSwift★ 3.3ksame name
- Doist/todoist-ai★ 563same name
- Doist/todoist-cli★ 331same name
- AlemTuzlak/skills★ 45same name
- garthcodes/claude-skills★ 2same name
- MaximSTH/meta-layer-starter★ 2same name
- zyggy-org/zyggy★ 2same name
- evgenii-studitskikh/Claude-Code-SaaS-Studio★ 1same name
- sirakinb/claude-code-skills★ 1same name
- koruworks/skills★ 0same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- councilSkill
- create-prSkill
- debugSkill
- guild-specializeSkill
- qa-cycleSkill
- re-specializeSkill
- tddSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
29 rules. 0 are common, 16 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 13 edited versions we read keep these.
16
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 82
When the user explicitly says "do this without guild" or "just do it"
- Distinctive: line 90
When multiple build-feature pipelines run in parallel, each MUST use its own git worktree to avoid branch conflicts:
- Distinctive: line 96
All file operations within the pipeline must use the worktree directory as the working directory.
- Distinctive: line 102
When running a single build-feature, a simple git checkout -b is sufficient.
- Distinctive: line 118
When the preferred model for a tier is unavailable, show the fallback with an arrow indicating what was attempted:
- Distinctive: line 129
When a phase loops (review-fix or QA-review cycles), show the iteration:
- Distinctive: line 156
Exit condition: If the Advisor rejects the feature, the pipeline stops here.
- Distinctive: line 190
Before advancing to Phase 4, run automated verification:
- Very specific: line 192
Run the project test commands (e.g., npm test) — if it fails, the Developer must fix before advancing
- Very specific: line 193
Run the project lint commands (e.g., npm run lint) — if it fails, the Developer must fix before advancing
- Distinctive: line 194
Only make a checkpoint commit after both pass
- Distinctive: line 212
Loop condition: If there are Blocker findings, return to Phase 3 for the Developer to fix them.
- Distinctive: line 226
Additional loop condition: If the qa-cycle bugfix introduces significant changes, return to Phase 4 (Review) for verification.
- Distinctive: line 230
After each phase completes, create a checkpoint commit to preserve progress.
- Very specific: line 241
After Phase 3: wip: [feature] phase 3 — implementation done -- also write partial trace (phases 1-3) to spec and update status to …
- Very specific: line 247
After pipeline completion, append a ## Pipeline Trace section to the feature's spec file in docs/specs/.
- Very specific: line 251
Search docs/specs/ for a file whose spec-id frontmatter matches the feature name (kebab-case)
- Very specific: line 252
If no matching spec exists, auto-create a minimal spec file at docs/specs/[feature-name].md
- Distinctive: line 256
When no prior council spec exists, create a minimal spec:
- Very specific: line 343
Phase 3 checkpoint: Write a partial trace covering phases 1-3 to the spec file.
- Very specific: line 344
Pipeline completion: Write the complete trace (all phases) to the spec file.
- Distinctive: line 348
Before declaring the pipeline as complete, run final verification:
- Distinctive: line 350
Run project tests — if it fails, return to Phase 5 (QA/Bugfix)
- Distinctive: line 351
Run project lint — if it fails, return to Phase 3 (Developer)
- Very specific: line 362
Write the complete Pipeline Trace to the spec file (see "Pipeline Trace" section above).
- Very specific: line 372
Do NOT use Closes #N in PR description (only works when merging to default branch)
- Very specific: line 373
After the PR is merged, run: gh issue close N --comment "Resolved in PR #X"
- Very specific: line 377
When spawning agents via the Task tool, use these subagent_type values:
- Distinctive: line 413
If the call fails or is rejected (model unavailable, rate-limited, or not accessible on the current plan), retry immediately with the …
“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Build Feature
Full pipeline to build a feature end-to-end with all team agents. Each phase invokes a specialized agent using the Task tool.
When to use
- ANY code change with acceptance criteria or a spec — regardless of perceived size
- New features, enhancements, bug fixes with defined requirements
- Even "small" changes: if the user described what it should do, it goes through the pipeline
When NOT to use
- Typo fixes, config tweaks, dependency bumps — changes with no behavioral spec
- CLAUDE.md updates
- When the user explicitly says "do this without guild" or "just do it"
Usage
/build-feature [feature description]
Parallel Execution: Worktree Isolation
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] developAll 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.
5-Phase Pipeline
Progress Display
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.
Phase 1 — Evaluation (Advisor)
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:
- The Advisor evaluates the feature against the project vision
- Identifies risks, dependencies, and conflicts with existing functionality
- Issues evaluation: Approved / Rejected / Requires adjustments
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.
Phase 2 — Specification & Technical Approach (Tech Lead)
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:
- The Tech Lead breaks the feature into concrete tasks with verifiable acceptance criteria
- Defines the implementation approach: files to modify, patterns to follow, interfaces
- Anticipates technical risks and proposes mitigations
- Estimates effort and suggests implementation order
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
Phase 3 — Implementation (Developer)
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:
- The Developer implements following the technical plan
- Writes unit tests as part of the implementation
- Makes atomic commits with descriptive messages
- Verifies that tests pass
Output: Implemented code + tests + commits made Trace data: Files created/modified, tests added, commits made
Pre-Review Gate (mandatory)
Before advancing to Phase 4, run automated verification:
- Run the project test commands (e.g.,
npm test) — if it fails, the Developer must fix before advancing - Run the project lint commands (e.g.,
npm run lint) — if it fails, the Developer must fix before advancing - Only make a checkpoint commit after both pass
This 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
Phase 4 — Review (Code Reviewer)
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:
- The Code Reviewer reviews quality, patterns, security, and tests
- Classifies findings as Blocker, Warning, or Suggestion
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.
Phase 5 — QA (delegates to /qa-cycle)
Progress: [5/5] QA (sonnet) — Validating acceptance criteria...
Runs the /qa-cycle skill passing the acceptance criteria as context. The qa-cycle handles:
- Running project tests and lint
- Validating acceptance criteria
- Testing edge cases and error scenarios
- Bugfix cycle if issues arise (maximum 3 cycles)
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.
Checkpoint Commits
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:
- After Phase 1:
wip: [feature] phase 1 — advisor approved - After Phase 2:
wip: [feature] phase 2 — spec and tech approach defined - After Phase 3:
wip: [feature] phase 3 — implementation done-- also write partial trace (phases 1-3) to spec and update status toimplementing - After Phase 4:
wip: [feature] phase 4 — review passed - After Phase 5:
wip: [feature] phase 5 — QA passed
Pipeline Trace
After 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.
Spec file discovery
- Search
docs/specs/for a file whosespec-idfrontmatter matches the feature name (kebab-case) - If no matching spec exists, auto-create a minimal spec file at
docs/specs/[feature-name].md
Auto-created spec format
When 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 field updates
- At Phase 4 checkpoint: set
status: implementing - At pipeline completion: set
status: implemented
Trace section format
Append 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 | failWhen to write the trace
- Phase 3 checkpoint: Write a partial trace covering phases 1-3 to the spec file. Set status to
implementing. Include the spec file in the checkpoint commit. - Pipeline completion: Write the complete trace (all phases) to the spec file. Set status to
implemented. Include the spec file in the final checkpoint commit.
Final Gate (mandatory before Completion)
Before declaring the pipeline as complete, run final verification:
- Run project tests — if it fails, return to Phase 5 (QA/Bugfix)
- Run project lint — if it fails, return to Phase 3 (Developer)
- Both must pass with exit code 0
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)
Completion
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:
- Feature implemented
- Files modified/created
- Tests run and result
- Review issues resolved
- Final QA result
- Close the GitHub Issue (if applicable):
- Do NOT use
Closes #Nin PR description (only works when merging to default branch) - After the PR is merged, run:
gh issue close N --comment "Resolved in PR #X"
- Do NOT use
Subagent Configuration
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).
Model Resolution
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:
- Attempt the Task tool call with the preferred model for the step's
model-tier - If the call fails or is rejected (model unavailable, rate-limited, or not accessible on the current plan), retry immediately with the fallback model
- Display the progress indicator showing which model was actually used (with fallback notation if applicable) before processing the agent's response
A single retry is sufficient. If both preferred and fallback fail, surface the error to the user and halt the pipeline.
Example Session
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.
Notes
- Phase skipping is ONLY allowed when the user explicitly requests it (e.g., "skip eval, go straight to implementation"). The agent must NEVER decide on its own that a task is "simple enough" to skip phases. If in doubt, run the full pipeline. Verification gates (pre-Review and final) are NEVER skipped
- The pipeline is sequential: each phase depends on the output of the previous one
- Review/QA loops have limits to prevent infinite cycles
- In v1.x, parallel pipeline execution (multiple build-features via worktrees) is best-effort and depends on the host environment supporting concurrent agents
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

