token-aware-coding
General token-efficiency habits for this kit's agents — prefer targeted search over full reads, precise @-mentions, periodic summarization, avoid re-reading…
by mimmo-the-root★ 27 GitHub stars
Install token-aware-coding in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Working token-efficiently
These are habits, not a checklist to run every time — apply them by default.
- Prefer Grep/Glob over a full Read when you only need to find or confirm something (a symbol, a device name, whether a pattern already exists). Read the whole file only once you actually need to edit it or read surrounding context matters.
- Use precise
@filementions instead of describing "the file that handles X" and having the agent search for it, when you already know the path. - Summarize internally after 3-4 tool calls in a research/search sequence rather than carrying every intermediate result forward verbatim — keep the conclusion, drop the scratch work.
- Don't re-read a file you already have the relevant content from earlier in the same task — reuse what's already in context instead of re-fetching it "to be safe."
- Grep ROADMAP.md's
Taskstable for the one task ID/row you need instead of reading the whole file once it has grown to dozens of tasks across several releases — the plan-first workflow (~/.claude/CLAUDE.mdrule 13) means this table only grows, and most operations (flipping a Status, checking one acceptance criterion) only ever need one row. - Don't restate the whole conversation or task back to the user before acting — a one-line "doing X" (or nothing, straight into the tool call) beats a paragraph of preamble.
- Delegate verbose or exploratory work to a subagent (when available) rather than doing wide exploration inline — the subagent's intermediate output doesn't consume the main session's context.
- Use
/clearor/compactbetween unrelated tasks in the same session instead of letting context accumulate across work that has nothing to do with each other. - Periodically,
/contextshows what's actually consuming the window — useful when a session feels slow or a task keeps needing trimming.
None of this trades off correctness — when a task genuinely needs a full read or a broad search, do it. This skill is about not doing the expensive thing by default when a cheaper one answers the same question.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the token-aware-coding skill do?
General token-efficiency habits for this kit's agents — prefer targeted search over full reads, precise @-mentions, periodic summarization, avoid re-reading known context. Read once at session start or when a task looks like it'll involve many files/tool calls.
How do I install the token-aware-coding skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the token-aware-coding skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…