qrspi
Skill2 starsChanged 53 days agoMITView on GitHub
Run a coding task through the QRSPI workflow — Questions, Research, Spec (Design + Structure), Plan, Implement — one self-contained artifact per phase under thoughts/<task-id>/, each phase a fresh session reading only that artifact. Use it to run a ticket through qrspi, to research-then-plan-then-implement work too big for one session, to set up or advance thoughts/ artifacts, tell which phase one is in, or review one before moving on, and when a session drifts past 40% context and needs compacting at a phase boundary.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- earlmundorf/rice-qrspitheir own version, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- earlmundorf/rice-qrspi★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- handoffSkill
- qrspi-newSkill
- qrspi-nextSkill
- qrspi-reviewSkill
- token-efficiencySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 33
Fresh session at every phase boundary: Never continue.
- Distinctive: line 34
The artifact is the only channel: If it is not written there, it does not exist for the next phase.
- Distinctive: line 41
Do not outsource the thinking: Every phase is a checkpoint where *you* correct.
- Distinctive: line 83
If it cannot, the plan is incomplete — and you are about to pay a rework round that costs as much as the entire Research phase.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Questions → Research → Spec (Design + Structure) → Plan → Implement. Five letters, six phases: the "S" is two sessions, two artifacts.
The one idea
Each phase burns whatever context it needs, then compresses what it learned into one markdown file on disk. The next phase opens a fresh session and reads only that file. Context stays under 40%, where models work best, and the artifacts become a reviewable, diffable record of the decision.
Questions ~20k burned → 00-questions.md (~3k)
Research 150-250k → 01-research.md (~7k)
Design starts at 10k → 02-design.md (~4k)
Structure starts at 4k → 03-structure.md (~3k)
Plan starts at 7k → 04-plan.md (~13k)
Implement starts at 7k → code + PRThese are the phase's own context. The harness adds a floor on top of every phase — system prompt, tools, CLAUDE.md, installed skills and MCP servers — measured at ~56k on the one run behind these figures (WB-1 in whipbench, #91); it depends on your setup.
Six non-negotiable rules
- Fresh session at every phase boundary. Never continue.
- The artifact is the only channel. If it is not written there, it does not exist for the next phase.
- Artifacts are self-contained. Repo-root paths, explicit symbols, line numbers — never "the file from before".
- The ticket does not enter Research. Handing the agent the ticket makes it hunt for evidence supporting a solution it already assumed. It returns in Design.
- The 40% rule. Past the threshold, stop and compact — do not push through.
- Do not outsource the thinking. Every phase is a checkpoint where you correct.
Phases
Budgets are guardrails on a 1M window: incoming context, then the alarm at which you stop and compact — both counted above the harness floor.
| # | Phase | Input | Output | Effort | Budget / alarm |
| 0 | Questions | ticket | 00-questions.md | medium | 20k / 40k |
| 1 | Research | 00 — not the ticket | 01-research.md | medium, low subagents | delegate / 400k in the main loop |
| 2 | Design | 00 + 01 + ticket | 02-design.md | xhigh | 50k / 100k |
| 3 | Structure | 02 | 03-structure.md | high | 30k / 60k |
| 4 | Plan | 02 + 03 | 04-plan.md | xhigh / max | 80k / 150k |
| 5 | Implement | 04 (one step) + 99 | code + PR | high / xhigh | 100k per step / 400k |
Spend effort where errors propagate: a wrong Plan multiplies across the whole implementation, a wrong Research gets caught by the Design review.
Running a phase
Artifacts live in <repo>/thoughts/<task-id>-<slug>/ — 00-questions.md through
04-plan.md plus 99-progress.md. <task-id> is the Linear/Jira ID, so the
artifact stays traceable; the directory lives in the task worktree and gets
committed.
Load only references/0N-<phase>.md for the phase you are in: each holds that
phase's prompt and the artifact skeleton to fill. 05-implement.md is a prompt
only — its output is code — and Implement keeps state in 99-progress.md.
/qrspi:new <TASK-ID> <ticket> bootstraps; /qrspi:next prints the next phase prompt
at each boundary — or, when several Implement steps can run in parallel, an execution
plan of worktrees, prompts and merge order; /qrspi:review <file> reads one artifact for the weaknesses the
gates cannot see (references/reviewing.md). Implement finding an upstream artifact
wrong → references/recovery.md, one phase re-entered narrowly. Artifacts into a
reviewable PR → references/landing.md.
The test that matters
An agent with zero context must be able to execute
04-plan.mdwithout asking a single question.
If it cannot, the plan is incomplete — and you are about to pay a rework round that costs as much as the entire Research phase.
The why (measurement, ratios, caching) is the token-efficiency skill; the craft
of filling a template so it survives the reset is the handoff skill.
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.

