Skip to content
Back to skills

Context Budget

ASecurity

Keep the agent's context lean so accuracy doesn't collapse. Use on long sessions, big files, or when the agent starts hallucinating.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add elitongadotti/cockpit --skill context-budget --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Budget?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Budget
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elitongadotti-context-budget/badge)](https://www.skillsdirectory.com/skills/elitongadotti-context-budget)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context-budget
description: Keep the agent's context lean so accuracy doesn't collapse. Use on long sessions, big files, or when the agent starts hallucinating.
when_to_use: long session, huge file dump, agent forgetting earlier steps, accuracy dropping
---
# Context Budget
More context is not better. Past a threshold, accuracy falls off a cliff (context rot).
- **Don't dump whole files** — read the relevant function/section, not the 2000-line module.
- **Summarize, don't accumulate** — replace a 200K-token transcript with a 4K recap of the load-bearing facts.
- **Drop dead context** — once a sub-task is done, its detail leaves the window. Keep the decision, drop the trace.
- **State on disk, not in context** — progress goes to a file the next turn re-reads, not into an ever-growing prompt.
A bloated standing context (CLAUDE.md) taxes every single turn. Trim weekly. If the agent is confidently wrong, suspect the context before the model.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.