Consumes the exploration report from /explore as a contract and implements it with subagent-driven TDD discipline, surgical diffs, and paired documentation. Refuses to improvise scope.
Outputs (all three required):
- Code changes in the services the report named
.backend/<YYYYMM>/<slug>/work.md— AI-optimized paired logdocs/features/<YYYY-MM-DD>-<slug>.mdordocs/bugs/<YYYY-MM-DD>-<slug>.md— human-prose stakeholder note
Subagents are required for implementation after the contract is loaded. The main agent validates the contract, assigns bounded work units, reviews the handoffs, writes the .md artifacts, and explains what each agent did.
User-facing responses are Korean-first for Korean users. Code identifiers, paths, commands, SQL, endpoints, and exact error strings stay unchanged.
| File | Purpose |
|---|---|
SKILL.md |
The skill definition — 6 phases, iron law, scope boundaries, red flags |
reuse-discipline.md |
Phase 1 re-check: re-grep before accepting stale new decisions from the plan |
implementation-playbook.md |
Stack-specific guardrails (Spring/MyBatis backend, Vue frontend) — adapt to your stack |
wrap-up-template.md |
Phase 5 templates for both work.md (AI-optimized) and the human-prose docs entry |
Phase 0 — Load Contract Read explore.md fully. Restate it. Validate it's workable.
Phase 1 — Reuse Re-check Re-grep §6/§7 decisions against current code. Fix drift.
Phase 2 — TDD Implementation Subagents run Red → Green → Verify → Refactor per unit.
Phase 3 — Surgical Review git diff: every line must trace to §7. Revert drive-bys.
Phase 4 — Verification Fresh output only — tests/lint/build/regression cycle.
Phase 5 — Wrap Up Paired docs + agent work log + final agent summary.
Typical "implement this" prompts yield:
- Scope creep ("while I'm in this file…")
- Invented utilities that duplicate existing ones
- Green tests that don't exercise the failure path
- "Done" claims based on remembered test runs, not fresh output
This skill refuses each of those:
- Contract adherence — every edited file/line must trace to §7 of
explore.md. Anything else gets reverted. - Reuse re-check — the plan's reuse decisions are re-validated against the current codebase before code is written.
- Red-green regression cycle (bug fixes only) — the regression test must fail without the fix and pass with it. Proven both ways.
- Fresh output only — "the build passes" is not a claim; pasted output from the last 30 seconds is.
- Paired documentation — the skill does not exit without
work.mdAND the human-facing docs entry. - Agent traceability —
work.mdand the final response must say what the main agent did and what each subagent did.
implementation-playbook.md contains guardrails specific to the original codebase (Spring Boot 3.3 + MyBatis + Vue 3). If your stack differs, fork this file and adapt:
- Transaction annotations (Spring
@Transactional(readOnly = true)pattern) - Layer discipline (controller / service / mapper rules)
- Cross-service contracts (Feign, Kafka, SSE, WebSocket)
- Frontend conventions (Vue 3 + Pinia + Axios)
The core 6-phase structure and iron laws are stack-independent.
/work (after /explore has written explore.md and user approved)
Agent responds by:
- Reading
explore.mdin full; announcing kind + scope - Creating a task list mirroring §7 Proposed Changes, then assigning subagents with disjoint ownership
- Re-validating reuse decisions
- Having subagents implement one change unit at a time with TDD
- Reviewing subagent handoffs → verification → paired wrap-up
- Responding with artifact paths and a clear explanation of what each agent did
Time budget: 30 min – 2 hr depending on scope. The skill will stop and ask if any assumption breaks.
Use when all three hold:
/explorehas run for this ticketexplore.mdexists at.backend/<YYYYMM>/<slug>/explore.md- User approved the plan (or said "proceed")
Skip for:
- One-line typo fixes (do directly)
- Config-only changes with zero code impact
Runtime subagent support is required for normal /work. If the runtime cannot start subagents, the skill stops and asks the user whether to waive that requirement. The Red → Green → Verify → Refactor loop, fresh-output verification rule, and surgical-diff discipline are inlined in SKILL.md.
Optional companion skills (if you also use the superpowers skill pack or similar): test-driven-development, verification-before-completion, systematic-debugging — these overlap with the inline procedures and can be used if preferred. They are not required.
/explore— predecessor; produces the contract/verify— typical successor; probes the running service with curl
Ship exactly what the contract specified through bounded subagents, then leave proof and a clear agent-by-agent explanation.