RedHat Code Refactor Engine
by @mzfshark
Refactor code safely without changing behavior.
β‘ When to Use
| Trigger | Action |
|---|
| - Duplicate logic appears across modules. |
| - Tests exist (or can be added) to protect behavior. |
π‘ Examples
Goal: Γ’β¬ΕExtract request validation from controller into validators/ and add unit tests.Γ’β¬Β
Validation: pnpm test after each extraction step.
π Constraints
Behavior is preserved (tests pass; outputs unchanged for known cases).
Public interfaces remain stable (or are versioned/migrated explicitly).
Complexity decreases measurably (smaller functions, fewer branches, less duplication). clawhub install axodus-refactor-engine
π§ͺ Use this skill with your agent
Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.
π Can't find the right skill?
Search 60,000+ AI agent skills β free, no login needed.
Search Skills β