Agent skill
refactor
Invoke IMMEDIATELY via python script when user requests refactoring analysis, technical debt review, or code quality improvement. Do NOT explore first - the script orchestrates exploration.
Install this agent skill to your Project
npx add-skill https://github.com/solatis/claude-config/tree/main/skills/refactor
SKILL.md
Refactor
When this skill activates, IMMEDIATELY invoke the script. The script IS the workflow.
Invocation
| Argument | Required | Description |
|---|---|---|
--step |
Yes | Current step (starts at 1) |
--n |
No | Number of categories to explore (default: 10) |
Do NOT explore or analyze first. Run the script and follow its output.
Determining N (category count)
Default: N = 10
Adjust based on user request scope:
- SMALL (single file, specific concern, "quick look"): N = 5
- MEDIUM (directory, module, standard analysis): N = 10
- LARGE (entire codebase, "thorough", "comprehensive"): N = 25
The script randomly selects N categories from the 38 available code quality categories defined in conventions/code-quality/.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
doc-sync
Synchronizes docs across a repository. Use when user asks to sync docs.
incoherence
Detect and resolve incoherence in documentation, code, specs vs implementation.
prompt-engineer
Invoke IMMEDIATELY via python script when user requests prompt optimization. Do NOT analyze first - invoke this skill immediately.
deepthink
Invoke IMMEDIATELY via python script when user requests structured reasoning for open-ended analytical questions. Do NOT explore first - the script orchestrates the thinking workflow.
cc-history
Reference documentation for analyzing Claude Code conversation history files
planner
Interactive planning and execution for complex tasks. IMMEDIATELY invoke when user asks to use planner.
Didn't find tool you were looking for?