refactor-for-openclaw
Installation
SKILL.md
Refactor For OpenClaw
Refactor to reduce complexity, not to satisfy aesthetic preference.
Process
- Define what behavior must remain unchanged.
- Identify the specific complexity being reduced.
- Prefer small structural improvements over broad rewrites.
- Keep public interfaces stable unless the task explicitly includes interface change.
- Verify that behavior is preserved after each meaningful step.
- Stop when the code is materially clearer, not merely different.
Refactor Rules
- Do not mix speculative optimization into a clarity refactor.
- Do not rename or move code without a readability payoff.
- Preserve existing conventions unless the convention itself is the problem.
- Keep the diff explainable to a skeptical reviewer.