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: