s-clean
БесплатноБез исполняемых скриптовНе проверенFind and remove dead code and stale documentation with addon.deadcode and docs.stale. Covers orphaned files, unused functions/locals/libraries, dead links and…
Об этом скилле
Cleaning WoW Addons
Guidance for finding and removing cruft safely. Both analyzers are read-only; removing things is your job and must be verified.
Related Commands
MCP Tools
| Task | MCP Tool |
|---|---|
| Dead code | addon.deadcode(addon="MyAddon") |
| High-confidence only | addon.deadcode(addon="MyAddon", include_suspicious=false) |
| Stale docs | docs.stale(addon="MyAddon") |
Inputs: addon, path, include_suspicious, limit (default 200, max 2000), plus categories for deadcode and commits_threshold (default 10) for docs.stale. Check truncated, total_issues and read_errors in every result: a capped or partly unreadable result is not a complete cleanup list.
Detection categories
addon.deadcode
| Category | Description |
|---|---|
orphaned_file |
Lua file not listed in the TOC (or loaded by XML) |
unused_function |
Function defined but never referenced |
unused_local |
Local assigned but never read |
unused_library |
Library under Libs/ nothing uses |
stale_event |
Event registered while the OnEvent handler is empty |
dead_export |
Exported value referenced only inside its own file |
unused_locale |
Locale key never used |
unreachable_code |
Statements after return/break in the same block |
commented_code |
Large commented-out blocks |
docs.stale
| Category | Description |
|---|---|
dead_link |
Link to a file that does not exist |
dead_reference |
Mention of a function or file that does not exist |
version_drift |
Old version numbers (code blocks and CHANGELOG/HISTORY files are ignored) |
relative_staleness |
Doc not updated while many code commits landed |
Workflow
- Run
addon.deadcodewithinclude_suspicious=false; fixdefiniteandlikelyitems first. - Before deleting a function, search the repository for dynamic use (
_G[...], string-built names, XML scripts, TOC,hooksecurefunctargets, MechanicLib capabilities, SavedVariables migrations). - Remove in small steps, run
addon.lintand the tests after each group. - Run
docs.stale; fix dead links and drifted versions, then re-run both analyzers to confirm. - For anything user-visible, verify in game with the reload protocol (using-mechanic).
Confidence
| Level | Meaning | Action |
|---|---|---|
definite |
Provable (for example a file not in any TOC) | Safe after a quick look |
likely |
Strong static evidence | Review briefly |
suspicious |
Possible dynamic use | Verify manually |
The analyzers do not honour suppression comments; record intentional dead code in the review notes instead. Rerun docs.stale after refactors.
Установить s-clean в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл s-clean?
Find and remove dead code and stale documentation with addon.deadcode and docs.stale. Covers orphaned files, unused functions/locals/libraries, dead links and version drift, with confidence triage before deleting anything. Triggers: clean, dead code, unused, orphan, stale docs, cruft, maintenance.
Как установить скилл s-clean?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл s-clean запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic