mdsmithaustin/pstack/principle-guard-the-context-window

Claude Code and agent skill by mdsmithaustin/pstack

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Apply before a large read, a long command output, or a subagent brief, not only when context is filling up. Route bulk to subagents, take thin reports back, and keep summaries in the main thread, not raw payloads.

Install

npx vskill@latest install mdsmithaustin/pstack/principle-guard-the-context-window

SKILL.md

The same SKILL.md was published earlier as mdsmithaustin/pstack/principle-guard-the-context-window.

Guard the Context Window

The context window is finite and non-renewable within a session. Every token should be worth its cost.

Why: Context overflow degrades reasoning quality, creates compression artifacts, and halts progress.

Pattern:

  • Isolate large payloads. Route verbose outputs, screenshots, and large documents to subagents. The main context gets summaries, not raw data. A read-only scan or parse that returns a reduced finding runs on the routine role, unless the calling skill names another role. Call the Skill tool with pstack-harness, then follow its Spawn a role section to resolve the role.
  • Keep frequently used content inline. Templates and references used on every invocation belong in the skill file, not in separate files that cost a read each time.
  • Size phases and cap scope. Limit files per phase, set turn budgets, account for mechanism costs.
  • Return thin. When a subagent's report feeds your next step, its brief names where the full report goes, a file the subagent writes or the PR, and asks for only the verdict or status line, any blockers, and that path or URL. Read the full report only to act on a blocker. A subagent whose output is the deliverable you relay, such as a how explanation, a why synthesis, the trail reviewer's flags, or an arena cross-judge's scores, returns it in full.
  • Read steps, not whole playbooks. Open a playbook's worklist from the output of the mode entry's plan script, which prints the opening prose and each step's outcome. When a step starts, run the --step command the plan prints. Without the script, print the playbook's prose before step 1 and its numbered steps with their indented sub-items (awk '/^[0-9]+\. /{p=1} !p && !/^#/ && NF {print; next} p && /^[^ ]/ && !/^[0-9]+\. /{exit} p' <playbook>). When that prose says to read the playbook in full, read it in full.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mdsmithaustin/pstack/principle-guard-the-context-window/badge)](https://verified-skill.com/skills/mdsmithaustin/pstack/principle-guard-the-context-window)

Something wrong with this skill or its page? Tell us.