Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.
Invoke with: thoughts/qrspi/<id>/
Implement — Execute the Plan
Implement the plan one phase at a time, verifying each phase before proceeding. Update the plan's checkboxes as you go — they are your progress tracker and context-recovery mechanism.
Input
Read <path>/plan.md. That is your primary working document.
Process
- Read `plan.md` fully. Check for existing checkmarks (
- [x]) — if some phases are already complete, pick up from the first unchecked item.
- Read all files referenced in the current phase before making changes. Understand the code you're modifying.
- Implement one phase at a time:
- Make the changes described in the plan
- Follow the plan's intent, but adapt if the codebase has diverged from what the plan expected
- If you hit a mismatch, stop and present it:
Issue in Phase [N]:
Expected: [what the plan says]
Found: [actual situation]
Impact: [what this means for the plan]
How should I proceed?- After completing a phase, run verification:
- Execute the automated verification commands from the plan
- Fix any failures before proceeding
- Check off automated items in
plan.mdusing Edit:- [ ]becomes- [x]
- Commit the phase after automated verification passes. Each phase should be a separate commit so it can be independently reverted if later phases break something. Use a descriptive message like
"Phase N: [phase name from plan]".
- Pause for manual verification (unless told to continue through multiple phases):
Phase [N] complete — ready for manual verification.
Automated checks passed:
- [x] [list what passed]
Please verify manually:
- [ ] [manual items from the plan]
Let me know when done, and I'll proceed to Phase [N+1].- Repeat for each phase until the plan is complete.
Resuming After Context Reset
If you're starting fresh in a new context window:
- Read
plan.md— checked boxes show what's done - Trust completed work unless something seems off
- Pick up from the first unchecked item
Output
- Code changes implemented according to the plan
plan.mdupdated with checked verification items- Tell the user: "Next: invoke the
qrspi-prskill with<path>"
Rules
- One phase at a time. Do not skip ahead.
- Read before you write. Understand existing code before changing it.
- Update checkboxes as you go — they are the source of truth for progress.
- Do not check off manual verification items until the user confirms.
- If the plan has errors, stop and ask. Do not silently deviate.
- Only make changes described in the plan. Do not refactor, clean up, or "improve" code you encounter along the way — even if it's messy. If you see something worth fixing, note it for the user after the phase is done.
- Use sub-agents sparingly — only for targeted debugging or exploring unfamiliar code.
- Commit after each phase passes automated verification — one commit per phase.
When to Go Back
If a phase reveals the plan is fundamentally wrong — not a small mismatch but a structural issue like a missing dependency, wrong API, or incorrect assumption about the codebase — tell the user. For small mismatches, adapt and continue. For fundamental issues, suggest re-running the qrspi-plan or qrspi-design skill with the new information rather than building on a broken foundation.

