using-qrspi
Skill37 starsChanged 5 months agoMITView on GitHub
Use when starting any conversation — establishes the QRSPI pipeline for agentic software development, requiring structured progression through Goals, Questions, Research, Design, Phasing, Structure, Plan, Parallelize, Implement, Integrate, Test, with Replan firing between phases
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- build/AGENTS.mdAGENTS.md
- designSkill
- goalsSkill
- implementer-protocolSkill
- implementSkill
- integrateSkill
- parallelizeSkill
- phasingSkill
- planSkill
- prompt-prose-reviewerSkill
- prompt-prose-writerSkill
- questionsSkill
- replanSkill
- research-isolationSkill
- researchSkill
- reviewer-protocolSkill
- structureSkill
- testSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 1 is distinctive, and 13 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.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
If you were dispatched as a subagent to execute a specific task, skip this skill entirely.
- Very specific: line 14
Read skills/using-qrspi/references/workspace-layout.md when setting up a new run's on-disk layout or auditing an existing one — …
- Very specific: line 18
Read skills/using-qrspi/references/pipeline-overview.md when you need the full pipeline shape — both diagrams (full + quick-fix) and the …
- Very specific: line 22
Read skills/using-qrspi/references/route-templates.md when Goals is seeding config.md.route at run start, or when the user requests a …
- Very specific: line 26
Read skills/using-qrspi/references/artifact-directory.md when creating the artifact directory for a new run, or when resolving the slug for …
- Very specific: line 43
Read skills/using-qrspi/references/approval-markers.md when transitioning a step to status: approved (or replan-draft), or before the …
- Very specific: line 49
Read skills/using-qrspi/references/state-and-pipeline-ordering.md before dispatching a downstream step when checking predecessor-approval …
- Very specific: line 57
Read skills/using-qrspi/references/backward-loops.md when a downstream step surfaces new learnings about an upstream artifact — …
- Very specific: line 63
Read skills/using-qrspi/references/mid-pipeline-entry.md when resuming a run partway through the pipeline (artifact directory already …
- Very specific: line 67
Read skills/using-qrspi/references/pipeline-progress.md when unsure where the run currently sits in the pipeline — diagnostic for resolving …
- Very specific: line 79
Every artifact-producing step runs the Standard Review Loop.
- Very specific: line 90
Read skills/using-qrspi/references/review-loop-pause-gate.md when the review loop hits the pause gate (review-round kept-findings non-zero, …
- Very specific: line 98
Read skills/using-qrspi/references/compaction-checkpoints-detail.md when approaching a context-saturation checkpoint and unsure which …
- Very specific: line 102
Read skills/using-qrspi/references/feedback-file-format.md when writing or consuming a feedback file after a rejection round in Plan, …
≈ “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
<SUBAGENT-STOP>
If you were dispatched as a subagent to execute a specific task, skip this skill entirely. Do not start a new QRSPI pipeline — just do your assigned work.
</SUBAGENT-STOP>Using QRSPI
Recommended Workspace Layout
Read skills/using-qrspi/references/workspace-layout.md when setting up a new run's on-disk layout or auditing an existing one — artifact/code separation (docs/qrspi/{slug}/ vs target repo) and the greenfield bootstrap note.
The Pipeline
Read skills/using-qrspi/references/pipeline-overview.md when you need the full pipeline shape — both diagrams (full + quick-fix) and the per-step what/why/artifact table.
Route Templates
Read skills/using-qrspi/references/route-templates.md when Goals is seeding config.md.route at run start, or when the user requests a mid-pipeline route change — quick / full / full-plus-UX templates plus the route-change rules.
Artifact Directory
Read skills/using-qrspi/references/artifact-directory.md when creating the artifact directory for a new run, or when resolving the slug for an existing run — full per-run on-disk tree (docs/qrspi/YYYY-MM-DD-{slug}/...) and slug-generation rule.
Topology Contract (Plugin Root vs Artifact Root)
QRSPI dispatch scripts operate under a two-root topology contract: plugin assets and user artifacts live in different trees and must be configurable independently.
PLUGIN_ROOT— immutable plugin assets (skills/,agents/,scripts/,scripts/lib/). Derived from the dispatch wrapper's own location (scripts/..). Override viaQRSPI_REPO_ROOTfor tests.REPO_ROOTis a back-compat alias.ARTIFACT_ROOT— the user repo where artifacts live andgit diffruns. Resolved by precedence (same 4-step ladder on bothdispatch-agent.shanddispatch-companion.sh launch): (1)QRSPI_ARTIFACT_ROOTenv var, (2)--artifact-repo-root <path>flag, (3)git rev-parse --show-topleveldiscovered from--output-dir(or--round-diron companion launch), (4) fall back toPLUGIN_ROOT.dispatch-companion.sh awaitdoes NOT parse--artifact-repo-rootand derives its trust anchor for the round directory from$PWD/..(theawait-round.shcwd contract) rather than from the job record;$QRSPI_ARTIFACT_ROOTenv still applies to ARTIFACT_ROOT resolution in await as in launch.
The two roots may coincide (vendored-submodule install, where the artifact directory lives inside the QRSPI repo itself) or diverge (Copilot CLI plugin install, where ~/.copilot/installed-plugins/qrspi-plus/ carries the assets and the user repo carries the artifacts). Skills and scripts MUST NOT assume a single shared root.
Path-guard wiring inside dispatch scripts:
- Plugin-asset paths (
--agent-file,--skill[*],--companionfor plugin assets) useassert_path_under_plugin_root(or the legacyassert_path_under_repo_rootalias). - Artifact-class paths (
--artifact,--diff-file,--task-def,--subject-code,--artifact-body,--output-dir, companion-launch--round-dir/--prompt-file) useassert_path_under_artifact_root.
Approval Markers
Read skills/using-qrspi/references/approval-markers.md when transitioning a step to status: approved (or replan-draft), or before the post-approval git commit — semantics and commit rule.
State and Pipeline Ordering
Pipeline state is derived from artifact frontmatter; the only piece of derived state worth persisting is phase_start_commit (lives in plan.md frontmatter, scoped by Replan and Test).
Read skills/using-qrspi/references/state-and-pipeline-ordering.md before dispatching a downstream step when checking predecessor-approval gating — predecessor rules and the Implement batch trap. Orchestration-boundary enforcement lives in each phase SKILL (implement/, integrate/, test/).
Rejection Behavior
When the user rejects an artifact at a human gate, the current step re-runs with feedback until approved — never skips backward. For subagent-dispatching steps (Plan, Parallelize, Structure), the orchestrator launches a new subagent round with the original inputs plus a feedback file (see Feedback File Format below). For conversational steps (Goals, Design), the rejection iterates in-conversation without writing a feedback file.
Backward Loops (New Learnings)
Read skills/using-qrspi/references/backward-loops.md when a downstream step surfaces new learnings about an upstream artifact — cascade-forward rule.
Mid-Pipeline Entry
Users can enter mid-pipeline when required input artifacts already exist with status: approved; mid-pipeline resume also detects replan-pending.md to resume Replan when set.
Read skills/using-qrspi/references/mid-pipeline-entry.md when resuming a run partway through the pipeline (artifact directory already exists, some steps already approved) — full resume contract and existing-artifacts handshake.
Pipeline Progress
Read skills/using-qrspi/references/pipeline-progress.md when unsure where the run currently sits in the pipeline — diagnostic for resolving ambiguous status.
Artifact Gating Check (Standard Pattern)
!cat skills/using-qrspi/references/artifact-gating-check.md
Config File (config.md)
Read skills/using-qrspi/references/config-runtime-contract.md when validating any config.md field, dispatching an agent, resolving a model_routing: tier, or handling a runtime-backfill write — dispatch routing blocks (providers:, model_routing:, trusted_path:, validators:), Precedence chain, Config Validation Procedure, no-silent-defaults rule, runtime-backfill carve-outs + hard-stop on write-back failure, field-validation-by-skill table. The authoring side (format, field definitions, writing procedure, pipeline: quick semantics) lives at skills/goals/references/config-md-authoring.md and is !cat-included into Goals — read it directly only when auditing Goals' config-writing behavior.
Standard Review Loop
Every artifact-producing step runs the Standard Review Loop. Read skills/_shared/review-loop.md when dispatching reviewers, computing kept findings, or deciding fix-loop convergence — canonical SSoT (checklist + reviewer dispatch shape + convergence rule). Sweep-task findings ride the existing Plan re-spec loop (no new gate, no new runner behavior).
Apply-Fix Protocol
After each review round, the orchestrator invokes scripts/review-prep.sh (per-round diff emission with anchor-SHA narrow-ref, atomic temp+rename) then scripts/verifier-fan-in.sh (SSoT for verifier dispatch, change_type-keyed score filters, round-NN-verified.md assembly). Read skills/using-qrspi/references/apply-fix-protocol.md after verifier-fan-in.sh emits round-NN-verified.md, when applying fixes for the round — the full post-fan-in procedure (partition by change_type, scope-tagger dispatch, dispositions.md, per-round commit, convergence rule, backward-loop reset, reviewer-model audit-field, verifier-round failure menu). Read skills/using-qrspi/references/fix-altitude-rule.md when a finding contains the phrase "X is under-specified" — the F-5 altitude rule. <!-- id-hygiene-exempt -->
Review-Loop Pause Gate
Inside an autonomous review loop (option 2 from the Standard Review Loop), the loop pauses when reviewers surface findings the orchestrating skill cannot safely auto-apply. The 10-round review-loop cap does not decrement on a paused round — paused rounds are user-interactive, not autonomous.
Read skills/using-qrspi/references/review-loop-pause-gate.md when the review loop hits the pause gate (review-round kept-findings non-zero, or a sub-threshold rescue is being surfaced) — full BATCH-WITH-OVERRIDES UI contract, 3-option menu (apply / skip / loop-back to upstream), infinite-pause escape hatch, and pending-findings audit-file shape.
Compaction Checkpoints
QRSPI skills mark transition points where main-chat context bloat degrades downstream quality. At every checkpoint and at every user-input pause, the orchestrator follows the Iron Rule below — regardless of perceived utilization, regardless of auto-mode.
Iron Rule. Pause and recommend /compact to the user before continuing. The user can decline; do not skip the recommendation.
Read skills/using-qrspi/references/compaction-checkpoints-detail.md when approaching a context-saturation checkpoint and unsure which trigger applies for the current step — full list of checkpoint trigger points per pipeline step.
Feedback File Format
Read skills/using-qrspi/references/feedback-file-format.md when writing or consuming a feedback file after a rejection round in Plan, Parallelize, or Structure — {artifact-dir}/feedback/{step}-round-{NN}.md YAML+markdown schema. Goals/Design rejection flows interactively and does not produce feedback files.
Common Rationalizations — STOP
!cat skills/using-qrspi/references/common-rationalizations.md
Pipeline Rules
!cat skills/using-qrspi/references/iron-laws.md
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.

