agentleFS
eugnmueller-87eugnmueller-87/claude-blueprint/.claude/skills/context-budget/SKILL.md

context-budget

Skill1 starsChanged 5 months agoMITView on GitHub

Report what loads into context every turn — CLAUDE.md plus always-on rules — and cut the bloat by pushing content into path-scoped rules or agents. Use when the project feels token-heavy, responses feel unfocused, or after several rules were added. Trigger phrases "trim the context", "what's costing tokens", "audit the context budget".

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-sort, lead-intelligence and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JamkrisSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 4 projects that use this

  • JamkrisSkill

    lead-intelligence

    AI-native lead intelligence and outreach pipeline. Replaces Apollo, Clay, and ZoomInfo with agent-powered signal scoring, mutual ranking, warm path discovery, source-derived voice modeling, and channel-specific outreach across email, LinkedIn, and X. Use when the user wants to find, qualify, and reach high-value contacts.

    Also in 4 projects that use this

  • JunMysterySkill

    ecc-guide

    Guide users through ECC's current agents, skills, commands, hooks, rules, install profiles, and project onboarding by reading the live repository surface before answering.

    Also in 3 projects that use this

  • JunMysterySkill

    recsys-pipeline-architect

    Design composable recommendation, ranking, and feed pipelines using the six-stage Source→Hydrator→Filter→Scorer→Selector→SideEffect framework popularized by xAI's open-sourced For You algorithm. Use this skill whenever the user is building any system that picks "the top K items for a (user, context)" — social feeds, content CMSs, RAG rerankers, task prioritizers, notification triage, search reranking, ad ranking.

    Also in 3 projects that use this

  • Exploration-labsSkill

    token-budget-advisor

    Proactive token budget assessment and task chunking strategy. Use this skill when queries involve multiple large file uploads, requests for comprehensive multi-document analysis, complex multi-step workflows with heavy research (10+ tool calls), phrases like "complete analysis", "full audit", "thorough review", "deep dive", or tasks combining extensive research with large output artifacts. This skill helps assess token consumption risk early and recommend chunking strategies before beginning work.

    Also in 5 projects that use this

  • thanvish21Skill

    benchmark-optimization-loop

    Optimization loops for Hermes benchmarks

    Also in 3 projects that use this

  • +5 more from Jamkris

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every file in .claude/rules/ WITHOUT paths: frontmatter — these load every turn.

    line 20

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “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

context-budget

Trigger: "trim the context" / "what's costing tokens" / "audit the context budget"

Standing rules: ../_conventions.md.

Everything that loads every turn is a permanent tax. The goal is a small, always- on core plus rules that load only near the code they govern. Lead with the total and the biggest cut.

Steps

  1. Inventory what's always on:
    • CLAUDE.md — count non-blank lines.
    • Every file in .claude/rules/ WITHOUT paths: frontmatter — these load every turn. Count lines each.
    • Note which rules HAVE paths: frontmatter — these are free until near matching files; leave them. Report the always-on total in lines.
  2. Find the bloat. For each always-on file, ask: does this actively change Claude's behavior on most turns? If not, it belongs elsewhere:
    • Path-specific guidance → give it paths: frontmatter (loads only near matching files).
    • A big review checklist → move it into an agent (loads only when invoked).
    • Discoverable facts / stale content → delete.
  3. Check for dead path-scoped rules. A rule scoped to **/*.tsx in a repo with no TSX files is pure noise on disk — flag it for removal.
  4. Propose the cuts as a checklist, biggest saving first: file · current lines · action (scope / move-to-agent / delete) · lines saved. Don't apply destructive edits to .claude/ structure without Eugen's OK — this is a NEEDS-SIGN-OFF class change.
  5. Report (terse): always-on total before → projected after · the single biggest cut · the checklist. Apply only what he approves.

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.