cleanup
Audit a codebase or paths for AI slop and clean it up with you steering each fix. Use when asked to find and remove sloppy, AI-generated code patterns.
от Integralist★ 31 звезда на GitHub
Установить cleanup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Audit source files for AI slop in two phases: a read-only subagent proposes fixes; apply approved ones in the main thread, where the user can veto or adjust each one. Follow SUBAGENT-STEERABILITY.md, including its completion and retry protocol.
- Gather files. With no
--target, include every source file except vendored, generated, and fixture directories such asvendor/,node_modules/,testdata/, and.git/. With--target=<path|glob>, expand it and check that paths exist. If nothing is found, report "No files to review" and stop. - Prioritize risk. Find the top 20 files by changes in the last year and the top 20 files most often touched by fix, bug, or broken commits. Flag their overlap as the highest-risk files; start the audit there.
- Run a read-only audit. Spawn one read-only audit subagent, in the background if agent teams are supported (see AGENT-TEAMS.md). Give it the file list, high-risk files, and the audit prompt. Before spawning the subagent, read AUDIT.md, which contains the exact commands, prompt, checklist, output schema, and report template. The audit returns a proposed-fix list and a count of files with no issues.
- Apply fixes with the user. Present proposals grouped by class, then category, before editing. Apply safe fixes; raise any you're second-guessing. Show every behavior-changing fix and apply it only after the user approves or modifies it. If an applied fix changes behavior, a public API, or usage, update the docs or READMEs flagged by the auditor; create a new doc only for a wholly new component. Honor "skip", "change approach", or "stop" immediately. Track each fix as applied or skipped.
- Report. Before writing, read the report template in
AUDIT.md. Write to
docs/reports/<YYYY-MM-DD-HHMM>-cleanup.md, creatingdocs/reports/first. Then give the user a short summary and the report path.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/AUDIT.md
FAQ
Что делает скилл cleanup?
Audit a codebase or paths for AI slop and clean it up with you steering each fix. Use when asked to find and remove sloppy, AI-generated code patterns.
Как установить скилл cleanup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cleanup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…