agentleFS
leogallegoleogallego/claude-skills-tokens/CLAUDE.md

claude-skills-tokens

CLAUDE.md1 starsChanged 3 months agoApache-2.0View on GitHub

Skill marketplace for Claude Code token optimization. Installable skills backed by research.

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 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.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use subagents to read reports in parallel — don't load all 11 into one context

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Claude Code Token Skills

Skill marketplace for Claude Code token optimization. Installable skills backed by research.

Directory Layout

DirectoryContentsPublic
skills/Installable skills (agentskills.io format)Yes
reports/Polished research guidesYes
research/Personal audit notes and handoff promptsNo (.gitignored)
docs/Design specs and implementation plansYes

Reports

FileTopic
reports/01-token-control-features.mdAll token control levers (model, effort, caching, compact, tools)
reports/02-pricing-and-model-comparison.mdFull pricing table, cache multipliers, subscription vs API
reports/03-dynamic-model-switching.md/model, OpusPlan, subagent models, cache invalidation
reports/04-comprehensive-token-optimization.mdCombined checklist, anti-patterns, savings summary
reports/05-mcp-tool-routing-and-tokens.mdTool Search (85-95% savings), defer_loading, CLI vs MCP
reports/06-cost-tracking-and-monitoring.md/cost, /usage, budget flags, community tools
reports/07-skill-loading-and-claudemd.mdProgressive disclosure (98% savings), path-scoped rules
reports/08-context-management-deep-dive.md/compact, auto-compaction, cache TTL, Edit vs Write
reports/09-github-ecosystem-and-community.mdGitHub repos, tools, community findings
reports/token-optimization-best-practices.mdSynthesized 10-section actionable guide
reports/claude-code-token-optimization-guide.mdFull 31K end-to-end workflow patterns guide

Key Findings

  1. CLAUDE.md bloat is the #1 controllable cost — 91.9% reduction possible with no quality loss
  2. Skills progressive disclosure saves up to 98% vs putting everything in CLAUDE.md
  3. Tool Search reduces MCP overhead 85-95% (enabled by default since v2.1.x)
  4. Prompt cache invalidation from model/effort switching is a silent cost killer
  5. Edit tool is 95% cheaper than Write for file modifications
  6. Subagents with Haiku are 10x cheaper for research tasks
  7. The 270s cache boundary matters — never sleep exactly 300s
  8. Skill invocations themselves can consume massive context (one skill consumed 31% of a 1M context window)
  9. VS Code autosave (claudeCode.autosave: true) is a silent cache killer — causes full cache invalidation via LSP diagnostic mutation
  10. Subagent caching is hardcoded off (enablePromptCaching: false) — 1h cache TTL irrelevant for multi-agent workflows
  11. Community tools (ecotokens, token-optimizer-mcp, foveance) offer 75-95% savings via hook-based filtering and caching

Working With These Reports

  • Use subagents to read reports in parallel — don't load all 11 into one context
  • The reports overlap intentionally (different agents researched from different angles)
  • Cross-reference findings before acting — some community-sourced numbers need verification
  • Pricing data is as of July 2026; Sonnet 5 intro pricing expires August 31, 2026

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.