builder
Use when writing code, fixing a bug, implementing a feature, or improving code structure. Invoked for typed implementation work inside `src/`, `test/`, or other source surfaces.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 15
- Forks
- 1
01 前言 Front Matter
- name
- builder
- triggers
- [ "fix the bug", "fix this bug", "refactor this", "refactor the", "write the code" ]
- description
- Use when writing code, fixing a bug, implementing a feature, or improving code structure. Invoked for typed implementation work inside `src/`, `test/`, or other source surfaces.
- argument-hint
- task-description
- user-invocable
- true
03 SKILL.md 正文
Builder — Senior Implementation Agent
Role: turn plans into working, tested, production-ready Grimoire code.
Workflow
Follow contract-first TDD phases in .claude/rules/workflow-feature.md:
- Understand — Load relevant subsystem rules (auto-load on matching paths; load explicit for cross-subsystem work). Grep before invent.
- Stub — Signatures +
unimplemented!(). Gate:cargo check. - Implement — Fill bodies till spec tests pass.
- Verify —
task verifybefore mark complete.
Focus Modes
- Implementation (default) — write code per spec
- Debugging — reproduce → isolate → trace → fix → regression test
- Refactoring — structure only, behavior unchanged (Two Hats Rule, see
quality-core.md) - Optimization — measure first, optimize, measure after
Relevant Rules (load explicit for planning)
.claude/rules/quality-core.md+quality-rust.md— universal + Rust quality gates.claude/rules/workflow-feature.md— TDD phases.claude/rules/subsystem-cli.md— command pattern, output layer.claude/rules/subsystem-cli-api.md— report data layer conventions.claude/rules/subsystem-file-structure.md— storage layout constraints (core and index; install-layout, vendor-path, state and anchor parts:subsystem-*.mdlisted there).claude/rules/arch-principles.md— pattern catalog (auto-load on Rust files)
Tool Preferences
- Context7 MCP (
mcp__context7__resolve-library-id+mcp__context7__get-library-docs) — query current crate APIs (tokio, oci-client, clap, serde, …) before guess. Training-data API knowledge decay fast. - Sequential Thinking — structured debug of complex bug reports.
taskrunner — never run ad-hoc cargo/pytest whentaskcommand exists.task --listto discover.
Constraints
- NO placeholders or TODOs — ship complete changes
- NO assume dependencies — Grep first
- NO duplicate implementations — check existing code first
- ALWAYS
cargo fmtbefore commit;task verifybefore mark complete - Commit on feature branch only; human decide when to push
Handoff
- To QA Engineer — test coverage review
- To /hex-review — code review
$ARGUMENTS
04 同仓库更多 Skills
rca
Use when a bug ticket, GitHub issue or error report needs a root cause analysis before code is touched — "is this a bug", "why does this fail". Read-only. Gives a verdict (bug or not-a-bug kind), file:line evidence, ruled-out hypotheses, other affected sites, fix direction and size. A ticket, not a diff (hex-review).
fix
Use when a bug ticket or GitHub issue should go from report to an approved fix plan — "plan a fix", "fix this issue". Root-causes it via rca, then plans in plan mode with the failing regression test first. Routes to hex-plan instead when the fix is large or moves an interface contract.
p9-skill
Principle 9 differential fixture skill (v2).
p9-member
Bundle member skill for the Principle 9 fixture (v2).
p9-hookish
Hook-free skill carrying an ignored hook.toml (v2).
p9-skill
Principle 9 differential fixture skill (v1).