qrspi-implement
Skill3 starsChanged 3 months agoMITView on GitHub
QRSPI Implement phase -- executes an approved plan.md slice-by-slice with strict Red-Green-Refactor per slice and a fresh-session checkpoint after each. Use for "/qrspi-implement <feature>", "execute the qrspi plan", "build the approved plan slice by slice". Not for a bare TDD cycle with no plan (use tdd); this phase requires plan.md status: approved and writes per-slice logs.
In this repository86 other files it gives its agents.
- AGENTS.mdAGENTS.md
- project-templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-templates/CLAUDE.mdCLAUDE.md
- alembic-migration-managerSkill
- architecture-journalSkill
- architecture-reviewSkill
- automated-code-reviewSkill
- axum-scaffolderSkill
- capture-consolidateSkill
- cargo-package-scaffoldSkill
- code-review-coachSkill
- confluence-guide-writerSkill
- dependency-mapperSkill
- doc-syncSkill
- dotnet-architecture-checklistSkill
- dotnet-controller-api-scaffolderSkill
- dotnet-security-reviewSkill
- dotnet-vertical-sliceSkill
- ef-migration-managerSkill
- email-captureSkill
- environment-healthSkill
- evaluate-testsSkill
- fastapi-scaffolderSkill
- fitness-functionsSkill
- jira-comment-writerSkill
- legacy-migration-analyzerSkill
- minimal-api-scaffolderSkill
- nuget-package-scaffoldSkill
- oss-vettingSkill
- pattern-tradeoff-analyzerSkill
- php-api-scaffolderSkill
- php-architecture-checklistSkill
- php-feature-sliceSkill
- php-migration-managerSkill
- php-package-scaffoldSkill
- php-security-reviewSkill
- pr-feedback-writerSkill
- pypi-package-scaffoldSkill
- python-architecture-checklistSkill
- python-feature-sliceSkill
- python-modernization-analyzerSkill
- python-security-reviewSkill
- qraspi-architectureSkill
- qraspi-graduateSkill
- qraspi-implementSkill
- qraspi-planSkill
- qraspi-questionsSkill
- qraspi-researchSkill
- qraspi-skeletonSkill
- qrspi-planSkill
- qrspi-questionsSkill
- qrspi-researchSkill
- qrspi-specSkill
- react-app-scaffolderSkill
- react-architecture-checklistSkill
- react-component-scaffolderSkill
- react-feature-sliceSkill
- react-modernization-analyzerSkill
- react-security-reviewSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
TEST FIRST OR STOP -- production code written before a failing test is a STOP condition
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
QRSPI Implement
"Amateurs practice until they get it right. Professionals practice until they can't get it wrong."
Core Philosophy
The Implement phase executes an already-approved plan mechanically -- every design decision was settled by Spec and Plan. Each plan phase is one vertical slice, and each slice runs the full Red-Green-Refactor loop end-to-end before the next begins. The discipline is test-first and per-slice: a slice is not done until its RED proof and GREEN proof are recorded on disk. One slice is ideally one fresh session -- the per-slice log is the resumption point, so context never has to span the whole feature.
Non-Negotiable Constraints:
- APPROVED-GATED -- never start without
plan.mdstatus: approved; never implement from memory - BASELINE GREEN FIRST -- run the test suite before any change; a red baseline is a STOP, not yours to fix
- ONE SLICE AT A TIME -- execute plan phases in order; never reorder, parallelize, or skip
- TEST FIRST OR STOP -- production code written before a failing test is a STOP condition
- RGR PER SLICE -- RED (test fails) -> GREEN (minimal code, build+test pass) -> REFACTOR (stays green)
- RECORD THE PROOF -- write RED and GREEN command output to
implementation/slice-NN-{name}.md - INVENTION = STOP -- anything not in the plan stops the slice; re-run /qrspi-plan, do not improvise
- CONTEXT BUDGET: keep utilization under 40%. At 60% (or end of a slice), checkpoint to the slice log and tell the user to start a fresh session for the next slice.
Workflow
PRE-FLIGHT
[ ] Locate the feature folder thoughts/shared/qrspi/YYYY-MM-DD-{slug}/
[ ] Read plan.md. If absent -> STOP; route the user to /qrspi-plan
[ ] Confirm plan.md status: approved. If only ready-for-review -> STOP; ask the human to approve
[ ] Run the baseline test suite. If red -> STOP; report; do not fix the baseline
[ ] Read the ENTIRE plan; identify the next unfinished slice from implementation/
SLICE LOOP (one slice = one plan phase, ideally one fresh session)
1. RED — write the failing test from the phase; RUN it; it MUST FAIL.
If it passes, the test is wrong -> fix the test, not the code.
2. GREEN — write the minimal production code; RUN build + tests; they MUST PASS.
3. REFACTOR — clean up; RUN again; it MUST stay GREEN.
4. RECORD — write implementation/slice-NN-{name}.md: RED output, GREEN output, files changed.
5. CHECKPOINT — suggest one commit for the slice; if context > 40% or the slice is done,
tell the user to start a fresh session for the next slice.
REPORT
Slices complete / total · last verification result · next slice (or "feature complete").Exit criteria: each executed slice has a slice-NN-{name}.md log holding its RED proof and GREEN
proof; the build/tests are GREEN; a per-slice commit was suggested; the user knows the next slice or
that the feature is complete.
State Block
<qrspi-implement-state>
phase: PRE-FLIGHT | RED | GREEN | REFACTOR | RECORD | CHECKPOINT | COMPLETE
feature_folder: thoughts/shared/qrspi/YYYY-MM-DD-{slug}/
plan_present: true | false # MUST be true to proceed
plan_approved: true | false # MUST be true to proceed
baseline_green: true | false # MUST be true before any change
current_slice: [NN]
slices_total: [count]
slices_complete: [count]
last_verification: red | green | pending # RED step expects red; GREEN/REFACTOR expect green
context_budget: under-40 | approaching-60 | checkpoint-now
</qrspi-implement-state>Output Template
See references/slice-log-template.md for the per-slice implementation/slice-NN-{name}.md
structure -- the RED proof, GREEN proof, files-changed list, and the resume note.
Integration with Other Skills
| Skill | Relationship |
qrspi-plan | Prior phase. Its approved plan.md is the contract this phase executes; refuses to run without status: approved. |
tdd-loop | The inner loop. Each slice IS a RED-GREEN-REFACTOR cycle; load tdd for the test-first mechanics this skill enforces per slice. |
dotnet-vertical-slice / python-feature-slice / rust-feature-slice | Stack scaffolders for the slice each phase builds. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

