Refactor Master
SkillDev toolsUse for behavior-preserving refactors, modularization, dead-code removal, dependency untangling, naming cleanup, or extracting reusable components without changing product behavior.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Refactor Master skill
What this skill tells your AI
The instructions your AI receives, as published by dominiktobureto/awesome-grok-build in .grok/skills/refactor-master/SKILL.md and read by ahel’s review.
Improve structure without changing behavior.
Grok Build Mode
- Always start in Plan Mode for multi-file refactors.
- Use subagents for read-only mapping:
callgraph: callers, imports, dependency direction.tests: existing coverage and missing characterization tests.risk: public APIs, migrations, generated files, fragile areas.cleanup: duplication and naming candidates.
- Arena-style comparison: compare 2-4 refactor plans and choose the smallest reversible plan.
- Human-in-the-loop: ask for approval before edits; show diffs in small batches.
Workflow
- Define the behavior that must not change.
- Identify the smallest refactor boundary.
- Add characterization tests if behavior is not covered.
- Move/rename/extract in small steps.
- Run tests after each meaningful step.
- Avoid opportunistic rewrites outside scope.
Refactor Rules
- Do not mix refactor and feature changes.
- Preserve public APIs unless approved.
- Keep commits separable: tests, mechanical move, cleanup.
- Prefer existing abstractions over new frameworks.
- If a refactor requires many files, propose checkpoints.
Example Prompts
Use refactor-master. Plan a behavior-preserving extraction of this module. Add characterization tests before edits.
Find the smallest refactor that reduces duplication here. Use subagents for callgraph, tests, and risk. Wait for approval.
Signals
- GitHub stars
- 62
- Forks
- 14
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
refactor-master- Source
- github.com/dominiktobureto/awesome-grok-build