From qrspi
Rules for keeping agent context windows lean (target under 40%, reset at 60%) and using subagents as context firewalls rather than personas. Load this when planning a multi-stage workflow, starting a long session, or deciding whether to delegate work to a subagent.
How this skill is triggered — by the user, by Claude, or both
Slash command
/qrspi:context-hygieneThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **Target: < 40% context window utilization** at any given moment.
Bigger models with bigger windows do not fix this. Filling the window with conversation history, verbose tool output, and stale plans degrades tool calls, increases hallucinations, and lowers code quality.
Common mistake: "Let's have a 'researcher persona' so the answers feel more authoritative." That is roleplay, not engineering.
Correct framing: a subagent is a separate context window that does a bounded job and returns a condensed result. The orchestrator never sees the subagent's full conversation — only the final message. This is the mechanism that makes long QRSPI flows possible without context bloat.
Implications:
Before starting a session:
During a session:
When delegating to a subagent:
LLMs are trained to produce text that reads as authoritative. A plan that sounds coherent can still rest on wrong assumptions about the codebase. The defense is:
This is why QRSPI splits alignment (Q, R, D, S, P) into five stages instead of compressing them into one "plan" step.
npx claudepluginhub lotea-be/ai-agent-marketplace --plugin qrspiGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.