Imported from mauricio-uy/agent-harness (
.agents/skills/implement-plan/SKILL.md). Install upstream withnpx skills add mauricio-uy/agent-harness --skill implement-plan. Copyright stays with the author.
Implement Plan
- Confirm the human requested implementation or resumption and identify the approved plan. Read its current revision, approval, checklist, checkpoint, and relevant notes. If approval is missing, stale, or revoked, suggest
write-planand wait; do not invoke it autonomously. - Use the plan format for approval, state, and execution-tracking rules. Reconcile the checkpoint with the working tree and relevant tests. Choose the next unfinished step whose dependencies are satisfied; preserve unrelated work.
- Set the plan to
in-progresswhen execution starts. For each small behavior, write a test and run it before changing production code. Confirm it fails because the behavior is absent or wrong; fix test setup or environment failures before treating the result as RED. - Implement the minimum change that makes the test pass. Run the focused test, then refactor with relevant tests green. Test observable behavior and boundaries, not incidental implementation details. For bugs, reproduce the failure; for legacy code, add characterization tests where needed.
- Follow only TDD exceptions already approved in the plan, using their agreed validation. If an exception or a material change becomes necessary, record the finding and alternatives, pause affected work, and consult the human. Suggest
write-planwhen a revision is needed. - After each step, run its completion check and update the plan's execution record. Keep RED/GREEN evidence concise and factual. Before pausing, record the exact stopping point, partial work, failing or pending checks, and what is needed to resume. Never mark a partial step complete or remove the history of a blocker.
- After progress or metadata changes, use the documentation commands to synchronize plans and check links. Correct affected references without changing their meaning.
- At the end, verify the plan's acceptance criteria and relevant regression checks. Record evidence and remaining limitations; mark
completedonly when all required work and verification are complete. Otherwise leave a useful checkpoint and explain the pause.
Report the plan ID, completed steps, remaining work, verification results, and any decision needed from the human.