Token and context efficiency for Claude Code: a guidelines skill plus /token-audit and /token-setup commands. Cuts avoidable spend without losing output quality.
Token and context efficiency for Claude Code — spend fewer tokens without losing quality.
/plugin marketplace add merkle-ne-playground/lean-claude
/plugin install lean-claude@lean-claude
token-efficiency skill — loads the six core efficiency rules into Claude's working context when you ask it to "save tokens", "be lean", or "reduce context spend"./token-audit — read-only inspection of your Claude Code config and installed skills; flags oversized SKILL.md files and missing token-saving config, and outputs a prioritised list of recommended changes./token-setup — interactive wizard that applies the recommended changes from /token-audit, with an explicit confirmation prompt before every write.Ask Claude to work leanly in plain language — the skill triggers on phrases like "save tokens", "be lean", "reduce context":
> keep this session lean on tokens
Audit your setup, then apply the safe recommendations:
/token-audit # read-only: reports oversized skills + config wins, writes nothing
/token-setup # applies the audit's recommendations, confirming before each write
A typical /token-audit report flags skills whose SKILL.md exceeds 20 KB, suggests skillOverrides for skills you rarely auto-trigger, and points out a missing or oversized skillListingMaxDescChars. /token-setup then walks each change with a yes/no prompt — nothing is written without your confirmation, and existing config is merged, never overwritten.
Six rules that the token-efficiency skill enforces:
/clear mid-task, keep turns under 5 minutes apart, append context rather than rewriting early turns, and keep tool-call order stable.offset/limit; never re-read a file after an Edit./clear discipline — clear only between unrelated tasks; stale task context is re-billed on every turn.skillOverrides to set unused skills to name-only or off, and cap skillListingMaxDescChars to shrink the per-turn listing cost.caveman by JuliusBrussee (MIT) — an ultra-compressed communication mode that cuts roughly 75% of output tokens by dropping filler while keeping full technical accuracy. Pairs well with lean-claude. Third-party plugin; referenced here for discoverability, not bundled.
Issues and PRs welcome. The plugin is intentionally small — keep additions lean:
skills/token-efficiency/. Keep SKILL.md thin (under ~4 KB); put depth in reference/ files that are read on demand. New guidance usually means a new or extended reference file, not a fatter core.commands/ — no scripts, no runtime dependencies. /token-audit must stay read-only; /token-setup must confirm before every write and merge rather than replace config.SessionStart hook that injects content every session would defeat the plugin's purpose. Don't add one./plugin marketplace add + /plugin install) before opening a PR.MIT — see LICENSE.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub merkle-ne-playground/lean-claude --plugin lean-claudeComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Develop, test, build, and deploy Godot 4.x games with Claude Code. Includes GdUnit4 testing, web/desktop exports, CI/CD pipelines, and deployment to Vercel/GitHub Pages/itch.io.
Comprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.