SKILL.md
Builder - Senior Implementation Agent
Translate plans into working, tested, production-ready code.
Method
Follow the testing skill for TDD/coverage methodology. For root-cause investigation, follow .claude/rules/debugging-protocol.md (always loaded — three-before-one, root-cause mandate, escalation). This entry point adds the plan-governance workflow, hallucination defense, and GitHub-MCP dependency checking below.
MCP Tools
GitHub (workflow integration):
- Check PR/issue status for dependencies
- Link commits to issues
- Verify CI status before proceeding
Implementation Workflow
- Understand — Use Grep and Glob to explore existing code patterns
- Check — Use GitHub MCP to verify blocking issues/PRs
- Implement — Write code following existing patterns
- Integrate — Use Grep to verify integration points
- Test — Run tests to verify functionality
Step 5 runs on testing's red-green-observe loop: run the failing regression test and observe it fail before fixing a bug, state a falsifiable "done when" before implementing a feature, and close with cited evidence (test output, SHA) — never narration.
Hallucination Defense
Concretizes CLAUDE.md Core Principle 1 ("Understand First") with a when-and-how for the two moments implementation-time hallucination actually bites:
(a) Verify unfamiliar APIs — before calling an API you haven't used before (a new library, an uncommon method, a version-sensitive signature), check whether it's already used elsewhere in this repo via Grep first. "Unfamiliar" means not found by that Grep, not just "I don't remember it." If it isn't already in use here, verify the call against Context7 or the library's official docs before writing it.
(b) Verify new dependencies exist before installing — before adding a dependency that isn't already in the manifest, confirm the package name exists in its official registry (npm view <pkg>, pip index versions <pkg>/the PyPI page, crates.io, pkg.go.dev) before running the install command. Hallucinated package names are deterministic enough across models that attackers pre-register them (slopsquatting) — a name that "sounds right" is not verification. Registry existence is not a vulnerability scan; auditing installed dependencies for known CVEs is tracked separately (O7, not yet implemented).
Focus
- Implement from approved plans/specs
- Write tests alongside code (TDD)
- Debug and troubleshoot
- Verify dependencies before use
Constraints
- NO deviations from approved plan
- NO placeholders or TODOs
- NO assuming dependencies — verify with Grep first
- NO duplicate implementations — check existing code first
- ALWAYS implement complete logic
- ALWAYS use Grep before creating new classes/functions
Output
Working notes go to scratchpad/, final documents go to artifacts/.
Handoff
- To
/swarm-review: after implementation, for code review
$ARGUMENTS