token-efficiency · rohitg00 — скилл для Claude Code: что делает и как установить
Скилл token-efficiency убирает вежливые вступления и пустые фразы модели, ограничивает число вызовов инструментов и запрещает бесконечные переделки кода.
MIT ★ 2 966 обновлён 2026-09-29
/plugin marketplace add rohitg00/pro-workflow
/plugin install pro-workflow@pro-workflowЧто делает token-efficiency
Скилл вводит жёсткие правила для экономии контекста и расходов на токены. Модель перестаёт писать вводные вежливые конструкции, дисклеймеры и советы, о которых её не просили. Вместо растянутого диалога Claude выдаёт готовый ответ либо код сразу в первом сообщении.
Внутри заданы профили задач для кода, анализа и пайплайнов, а также бюджеты на вызовы инструментов. Например, на исправление бага отводится до 30 вызовов с предупреждением на 25-м. Правило однопроходного кодинга требует сначала прочитать тесты и файлы, написать решение целиком и немедленно остановиться после успешного прогона тестов без лишнего рефакторинга.
Жёсткий запрет на полировку работающего кода исключает спонтанные переписывания, поэтому любые стилистические правки придётся запрашивать отдельной командой.
Какие задачи решает
- сократить расход токенов на вежливые фразы и дисклеймеры модели
- ограничить число вызовов инструментов под конкретную задачу
- остановить циклы правок уже работающего кода
- запретить агенту перезаписывать файлы без предварительного чтения
Примеры запросов агенту
- Исправь ошибку авторизации в
auth.tsпо правилам token-efficiency и остановись сразу после прохождения тестов. - Проанализируй схему базы данных в профиле analysis без вводных фраз.
- Реализуй функцию подсчёта скидки в один проход, ориентируясь на тесты в
discount.test.ts.
Как установить token-efficiency
1Через маркетплейс плагинов
/plugin marketplace add rohitg00/pro-workflow/plugin install pro-workflow@pro-workflowКоманда ставит плагин pro-workflow целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add rohitg00/pro-workflow --skill token-efficiency -a claude-code3Вручную: положить файлы
~/.claude/skills/token-efficiency/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/token-efficiency/
1Через Skills CLI (Vercel)
npx skills add rohitg00/pro-workflow --skill token-efficiency -a codex2Вручную: положить файлы
.agents/skills/token-efficiency/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add rohitg00/pro-workflow --skill token-efficiency -a cursor2Вручную: положить файлы
.cursor/skills/token-efficiency/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install rohitg00/pro-workflow skills/token-efficiency2Вручную: положить файлы
.github/skills/token-efficiency/SKILL.md1Через Skills CLI (Vercel)
npx skills add rohitg00/pro-workflow --skill token-efficiency -a gemini-cli2Командой платформы
gemini skills install https://github.com/rohitg00/pro-workflow --path skills/token-efficiencyВручную: положить файлы
.devin/skills/token-efficiency/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о token-efficiency
Как установить token-efficiency в Claude Code?
Сначала добавьте маркетплейс командой /plugin marketplace add rohitg00/pro-workflow, затем установите плагин вызовом /plugin install pro-workflow@pro-workflow. Также доступна установка через команду npx skills add rohitg00/pro-workflow --skill token-efficiency -a claude-code.
Что делает скилл token-efficiency?
Он убирает лишние вводные слова, задаёт лимиты на вызовы инструментов от 20 до 80 операций и запрещает модели повторно читать неизменённые файлы.
Как устроена работа с тестами по этому скиллу?
Агент обязан изучить тесты до написания кода, запустить их один раз после реализации и сразу завершить работу при зелёном статусе.
Исходный текст
SKILL.md · MIT
--- name: 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: 1. **Read all relevant files** including tests first 2. **Understand what tests assert** before coding 3. **Write complete solution in one pass** — not incrementally 4. **Run tests once** — if pass, STOP immediately 5. **If fail**: read the error, fix once, retest 6. **Never iterate** more than twice on the same failure — rethink approach 7. **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: 1. **Never write a file you haven't read** in this session 2. **Never re-read a file** already read unless it was modified 3. **Read tests before coding** — understand what passes before writing 4. **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](https://github.com/drona23/claude-token-efficient) (MIT).
© Rohit Ghumare · MIT · rohitg00/pro-workflow
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — token-efficiency от других авторов.