agentleFS
Allan-NavaAllan-Nava/qrspi/skills/qrspi/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Distinctive:

    Fresh session at every phase boundary: Never continue.

    line 33
  2. Distinctive:

    The artifact is the only channel: If it is not written there, it does not exist for the next phase.

    line 34
  3. Distinctive:

    Do not outsource the thinking: Every phase is a checkpoint where *you* correct.

    line 41
  4. Distinctive:

    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.

    line 83

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 + PR

These 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

  1. Fresh session at every phase boundary. Never continue.
  2. The artifact is the only channel. If it is not written there, it does not exist for the next phase.
  3. Artifacts are self-contained. Repo-root paths, explicit symbols, line numbers — never "the file from before".
  4. 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.
  5. The 40% rule. Past the threshold, stop and compact — do not push through.
  6. 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.

#PhaseInputOutputEffortBudget / alarm
0Questionsticket00-questions.mdmedium20k / 40k
1Research00 — not the ticket01-research.mdmedium, low subagentsdelegate / 400k in the main loop
2Design00 + 01 + ticket02-design.mdxhigh50k / 100k
3Structure0203-structure.mdhigh30k / 60k
4Plan02 + 0304-plan.mdxhigh / max80k / 150k
5Implement04 (one step) + 99code + PRhigh / xhigh100k 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.md without 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.