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 f637266 7 files · 21.5 KB Updated

File contents

igmarin/elixir-phoenix-skills/tree/main/skills/refactor-code commit f63726689c

Frequently asked questions

npx skillmds@latest add igmarin/refactor-code