token-efficiency
Reduce token waste by 40-60% through anti-sycophancy rules, tool-call budgets, one-pass coding, task profiles, and read-before-write enforcement. Inspired by drona23/claude-token-efficient.
Install / Use
npx skills add rohitg00/pro-workflow --skill token-efficiencyInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of token-efficiency
token-efficiency scores 83/100 on our quality scale, 1792nd of 3,554 Development & Engineering skills we index.
Its SKILL.md is 4.0 KB long, well organised into 13 sections and no code examples: a solid amount of guidance for an agent.
With 2,876 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 5 days ago, so token-efficiency is actively maintained.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
token-efficiency compared with similar skills
All 4 of these similar skills score higher than token-efficiency; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| token-efficiency (this skill)by rohitg00 | 83 | 2.9k | 5d ago | SKILL.md |
| ai-job-searchby MadsLorentzen | 100 | 44.4k | 1d ago | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 3d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 7d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 7d ago | SKILL.md |
Frequently asked questions
- How do I install token-efficiency?
- Run
npx skills add rohitg00/pro-workflow --skill token-efficiency. The install tabs above show the steps for each supported agent. - Which AI agents does token-efficiency work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is token-efficiency safe to use?
- It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is token-efficiency still maintained?
- The repository was last updated 5 days ago, so token-efficiency is actively maintained.
Skill content
View source on GitHubname: token-efficiency description: Reduce token waste by 40-60% through anti-sycophancy rules, tool-call budgets, one-pass coding, task profiles, and read-before-write enforcement. Inspired by drona23/claude-token-efficient.
Token Efficiency
Reduce output token waste and prevent iteration cycles that consume context.
Trigger
Use when:
- Sessions feel expensive or slow
- Output is verbose with filler text
- Claude is re-reading files or iterating unnecessarily
- Setting up a new project for token-efficient work
Anti-Sycophancy Rules
These patterns waste 30-60% of output tokens:
| Pattern | Example | Fix | |---------|---------|-----| | Sycophantic opener | "Sure! Great question!" | Delete. Lead with answer. | | Prompt restatement | "You're asking about X..." | Delete. Answer directly. | | Closing fluff | "Let me know if you need anything!" | Delete. Stop after the answer. | | Unsolicited suggestions | "You might also want to..." | Delete unless asked. | | AI disclaimers | "As an AI model..." | Delete entirely. | | Verbose preambles | "I'll help you with that..." | Delete. Start with the action. |
Tool-Call Budgets
Set explicit budgets by task complexity:
| Task Type | Tool-Call Budget | Wrap-Up At | |-----------|-----------------|------------| | Quick fix / lookup | 20 calls | 15 | | Bug fix | 30 calls | 25 | | Feature (small) | 50 calls | 40 | | Feature (large) | 80 calls | 65 | | Refactor | 50 calls | 40 | | Exploration / research | 30 calls | 25 |
At the wrap-up threshold: commit progress, assess remaining work, decide whether to continue or start fresh.
One-Pass Coding Discipline
For simple-to-medium tasks:
- Read all relevant files including tests first
- Understand what tests assert before coding
- Write complete solution in one pass — not incrementally
- Run tests once — if pass, STOP immediately
- If fail: read the error, fix once, retest
- Never iterate more than twice on the same failure — rethink approach
- Never refactor, improve, or polish passing code
Task Profiles
Switch profiles based on what you're doing:
Coding Profile
- Return code first, explanation after (only if non-obvious)
- Simplest working solution, no over-engineering
- Read file before modifying — always
- No docstrings on unchanged code
- No error handling for impossible scenarios
- State bug, show fix, stop
Agent/Pipeline Profile
- Structured output only: JSON, bullets, tables
- No prose unless targeting a human reader
- Every output must be parseable without post-processing
- Execute task, do not narrate actions
- Never invent file paths, API endpoints, or function names
- If unknown: return null or "UNKNOWN", never guess
Analysis Profile
- Lead with finding, context and methodology after
- Tables and bullets over prose
- Numbers must include units
- Never fabricate data points
- Summary first (3 bullets max), caveats last
Read-Before-Write Enforcement
Hard rules:
- Never write a file you haven't read in this session
- Never re-read a file already read unless it was modified
- Read tests before coding — understand what passes before writing
- Read error output carefully before attempting a fix
ASCII-Only Output
Use ASCII characters only in all output:
--not—(em dash)"not""(smart quotes)'not''(curly apostrophes)- No emoji unless explicitly requested
- No Unicode decorators or special characters
This ensures clean copy-paste for code and compatibility with downstream systems.
Measuring Impact
Track these metrics to measure token savings:
- Output length: average words per response (target: 30-50% reduction)
- Tool calls per task: should stay within budget tier
- Re-read count: should be near zero
- Write-without-read count: should be zero
- Iteration cycles: tests should pass in 1-2 attempts, not 5+
Attribution
Token efficiency patterns adapted from drona23/claude-token-efficient (MIT).
Related Skills
ai-job-search
44.4kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
