apply · localixai — скилл для Claude Code: что делает и как установить
Скилл apply для Claude Code применяет исправление из аудита tokendoctor после показа изменений. Команда переезжает в /tokendoctor fix <id> и не требует вызова модели.
MIT ★ 171 обновлён 2026-11-17
/plugin marketplace add localixai/tokendoctor
/plugin install tokendoctor@tokendoctorЧто делает apply
Скилл запускает tokendoctor-apply для выбранной находки аудита. Сначала команда показывает файлы и строки, которые изменятся, но ничего не записывает. Агент объясняет область действия настроек и ждёт явного подтверждения.
После подтверждения команда записывает изменения и сохраняет копию существующего файла с суффиксом .tokendoctor-<timestamp>.bak. Уже существующие файлы агента она не перезаписывает. Настройки вручную скилл не редактирует; для применения используется --write только после показа пробного запуска. Следующая версия удалит эту команду.
Какие задачи решает
- просмотреть изменения для одной находки аудита
- подтвердить исправление до записи в настройки
- сохранить резервную копию файла перед изменением
Примеры запросов агенту
- Покажи исправление tokendoctor для находки
finding-idи дождись моего подтверждения перед записью. - Примени исправление для
finding-idк настройкам проекта после показа пробного результата. - Покажи, какие файлы изменятся для находки
finding-id, но пока ничего не записывай.
Как установить apply
1Через маркетплейс плагинов
/plugin marketplace add localixai/tokendoctor/plugin install tokendoctor@tokendoctorКоманда ставит плагин tokendoctor целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add localixai/tokendoctor --skill apply -a claude-code3Вручную: положить файлы
~/.claude/skills/apply/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/apply/
1Через Skills CLI (Vercel)
npx skills add localixai/tokendoctor --skill apply -a codex2Вручную: положить файлы
.agents/skills/apply/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add localixai/tokendoctor --skill apply -a cursor2Вручную: положить файлы
.cursor/skills/apply/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install localixai/tokendoctor skills/apply2Вручную: положить файлы
.github/skills/apply/SKILL.md1Через Skills CLI (Vercel)
npx skills add localixai/tokendoctor --skill apply -a gemini-cli2Командой платформы
gemini skills install https://github.com/localixai/tokendoctor --path skills/applyВручную: положить файлы
.devin/skills/apply/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об apply
Как установить apply в Claude Code?
Добавьте маркетплейс командой /plugin marketplace add localixai/tokendoctor, затем установите плагин командой /plugin install tokendoctor@tokendoctor.
Что делает apply?
Скилл показывает изменения для выбранной находки аудита tokendoctor, ждёт явного подтверждения и только затем записывает их. Перед записью сохраняет копию существующего файла.
Что нужно для работы apply?
Нужна команда tokendoctor-apply. Скилл запускает её для просмотра изменений, а после подтверждения — с флагом --write.
Исходный текст
SKILL.md · MIT
--- name: apply description: Apply one tokendoctor audit fix after showing the exact change. Moved to /tokendoctor fix <id>, which needs no model call. disable-model-invocation: true allowed-tools: Bash(tokendoctor-apply *) argument-hint: <finding-id> [--scope user|project|local] --- Apply the fix for the audit finding named in `$ARGUMENTS`. First say in one line that `/tokendoctor fix <id>` does the same with no model call and that this command goes away in the next release. 1. Run `tokendoctor-apply $ARGUMENTS` with no `--write`. It prints which files would change and a short -/+ summary, and changes nothing. 2. Show the user that output: the file path, the lines removed and added, and the scope (user settings affect every project; project settings are shared with the team through git; local settings are personal to this project). 3. Ask for confirmation. Do not proceed on silence or an unrelated reply. 4. After a clear yes, run the same command with `--write`. It copies an existing file to `<file>.tokendoctor-<timestamp>.bak` before writing, and never overwrites an existing agent file. 5. Report what was written and the backup path. Most settings apply to the running session, but say that a new session is the surest way to confirm, and that `/status` lists loaded files. Never edit settings files by hand from this skill, and never pass `--write` before the user has seen the dry run.
© rsaryev · MIT · localixai/tokendoctor
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — apply от других авторов.