refactor-clean
Find and safely remove dead code, unused imports, and duplicate logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Find and safely remove dead code, unused imports, and duplicate logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Interactive agent builder: guides the user through defining a new agent as a behavioral spec, then generates the agent .md and installs it.
Cross-repo investigation: research planning issues, break down into sub-issues, generate ralph session prompts per repo.
Three-phase QA orchestrator: parallel scan, interactive triage, guided fix.
Interactive feature builder with subagent delegation and approval gates.
Interactive rule builder: guides the user through defining a new rule as a constraint doc, then generates the rule .md and installs it.
Interactive skill builder: guides the user through defining a new skill as a structured SOP, then generates the SKILL.md and installs it.
| name | refactor-clean |
| description | Find and safely remove dead code, unused imports, and duplicate logic. |
Spawns the refactor-cleaner agent to identify unused code and safely remove it with test verification.
Gather context — determine the scope of cleanup:
src/ or project source directorySpawn the agent — use the Task tool:
Task tool with subagent_type="refactor-cleaner"
Pass in the prompt:
.claude-toolkit.json or auto-detectedPresent findings — relay the agent's cleanup report:
Offer follow-up actions: