Refactoring

BACKWARD view over rules/ — routes linter and review failures to the rule whose Fix pattern owns the repair. Use when linter fails with complexity issues (cyclomatic, cognitive, maintainability) or when code feels hard to read/maintain. Also runs PREPARATORY mode: reshape code an approved plan touches, before the first RED, so the feature lands add-only. Applies storifying, type extraction, function extraction, conditional-dispatch, and mutation-discipline patterns via rules/R1-R8 and R10-R12.

buzzdan Updated

File contents

buzzdan/ai-coding-rules/tree/main/go-linter-driven-development/skills/refactoring commit 38e3aeeb9c

Frequently asked questions

npx skillmds@latest add buzzdan/refactoring