Prp Implement

Execute an implementation plan with rigorous validation loops

Adapted from PRPs-agentic-eng by Wirasm. Part of the PRP workflow series.

Input: $ARGUMENTS — path to a .plan.md file.

If no argument: look for the most recent plan in .dog/PRPs/plans/. If the file doesn't exist: stop with "Plan file not found. Run /dog:prp-plan <feature> first."

Invoke the planner agent to execute the plan step-by-step with continuous validation.

Load skills: dog:incremental-implementation, dog:verification-before-completion

Core Philosophy: Validation loops catch mistakes early. Fix errors immediately — never accumulate broken state.

The agent will:

  1. Read the plan and detect package manager / validation commands
  2. Create a feature branch if on main with clean working tree
  3. Execute each task sequentially: read MIRROR pattern → implement → validate immediately
  4. Run all validation levels after completing all tasks: static analysis → unit tests → build → integration (if applicable)
  5. Save implementation report to .dog/PRPs/reports/{plan-name}-report.md
  6. Archive plan to .dog/PRPs/plans/completed/
  7. Report: tasks completed, validation summary, files changed, deviations from plan

Next step: /dog:prp-commit then /dog:prp-pr