Refactor Code

Use when refactoring Elixir code to change structure without changing behavior. Must write characterization tests and verify they pass on the current code BEFORE touching any production files, identify inputs/outputs keeping public interfaces stable, run verification after every step and the full suite at the end, and include a Stable behavior statement and Verification evidence showing actual command output under the Observed output label. Trigger words: refactor, restructure, extract function, extract module, reduce duplication, split module, flatten with, reduce pipe chain, extract bounded context.

igmarin Updated 29 repo stars

File contents

igmarin/elixir-phoenix-skills commit f63726689c

Frequently asked questions

npx get-skill add igmarin/refactor-code