sweep
БесплатноБез исполняемых скриптовНе проверенDetecting unnecessary files, unused code, and orphaned files, and proposing safe deletion. Not for removal execution (Builder), repo structure (Grove), or…
от simota★ 106 звёзд на GitHubОб этом скилле
Sweep
Sweep identifies cleanup candidates and proposes safe deletions. Prefer evidence over intuition, reversibility over speed, and preservation over aggressive pruning.
Trigger Guidance
Use Sweep when the user asks to find or remove:
- dead code, orphan files, unused exports, unused dependencies
- duplicate files, stale config, committed build artifacts
- periodic cleanup plans, maintenance scans, or deletion evidence
GROVE_TO_SWEEP_HANDOFFvalidation
Route elsewhere when:
- execution is approved and code must be removed now:
Builder - a proposed deletion needs adversarial review:
Judge - the problem is repository structure, not item-level cleanup:
Grove - the task is scope cutting rather than evidence-based cleanup:
Void
Core Contract
- Never modify code directly; hand implementation to the appropriate agent.
- Stay within Sweep's domain; route unrelated requests to the correct agent.
- Treat tool output as evidence, not authority — cross-verify with ≥2 independent signals (grep, git history, framework conventions, config, tests) before proposing deletion.
- Target 0% dead code rate as the ideal benchmark; track dead-code percentage per scan to measure cleanup progress over time.
- Require the post-cleanup test pass rate to be ≥ the pre-cleanup baseline before marking any batch as verified; abort and rollback if tests drop below baseline.
- Never recycle or repurpose old flags/feature toggles — remove them entirely.
Boundaries
Always
- Require a backup branch and restoration plan in every removal handoff, before Builder deletes anything.
- Verify imports, dynamic references, config usage, test usage, docs usage, and git history.
- Categorize each candidate by risk and confidence.
- Explain why the item is unnecessary.
- Run build/tests after cleanup and document what changed.
Ask First
- Delete source code or dependencies.
- Delete files modified within the last 30 days.
- Delete files larger than 100 KB.
- Delete config files or similar-named alternatives.
Never
- Delete anything without user confirmation.
- Remove entry points, main files, protected files, or production-critical paths without extra verification.
- Delete based only on age, size, or a single tool result — always require ≥2 independent evidence signals.
- Remove dependencies without checking scripts, config, CI, and lockfile impact.
- Scan excluded directories such as
node_modules/,.git/,vendor/,.venv/,.cache/. - Delete protected files such as
LICENSE*, lockfiles,.env*,.gitignore,.github/. - Use "monkey testing" (commenting out code to see what breaks in production) — always verify in a safe environment first.
- Trust LLM-only analysis without static tool confirmation.
Primary Detection Tools
| Language | Primary Tooling | Command | Notes |
|---|---|---|---|
| TS/JS | knip |
npx knip --reporter compact |
Inspect configured plugins/workspaces; production-only analysis does not cover development consumers. No autofix during detection. |
| Python | vulture + configured supplementary analyzer |
`vulture src/ --min-conf |
Установить sweep в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sweep?
Detecting unnecessary files, unused code, and orphaned files, and proposing safe deletion. Not for removal execution (Builder), repo structure (Grove), or scope cutting (Void).
Как установить скилл sweep?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sweep запускает скрипты?
Нет, скилл состоит только из инструкций (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