From coding-skills
Apply Kent Beck's "Tidy First?" methodology before implementing features or fixes. Use when: (1) about to change code and the structure feels messy, (2) asked to refactor or clean up code, (3) a PR mixes structural and behavioral changes, (4) code is hard to read or understand. Guides developer through separating structural tidyings from behavioral changes, and sequencing them correctly.
How this skill is triggered — by the user, by Claude, or both
Slash command
/coding-skills:tidyThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Based on Kent Beck's *Tidy First?* — separate structural changes from behavioral changes and sequence them deliberately.
Based on Kent Beck's Tidy First? — separate structural changes from behavioral changes and sequence them deliberately.
Never mix tidying (structural) and feature work (behavioral) in the same commit.
Ask: Should I tidy first, after, or not at all?
See references/tidyings.md for the full list with examples.
Quick reference by category:
Clarity
Structure
Cleanup
let x and x = ...tidy: extract helper validateInputTidying creates optionality — future ability to change the code quickly. Like a financial option, it has value before it's exercised.
npx claudepluginhub codemachine0121/dotnet-developing-skills --plugin coding-skillsGuides safe refactoring using Code Complete's fix-first-then-refactor discipline: separates bug fixes from refactoring, enforces small-change rigor, and helps decide between refactor, rewrite, or fix-only.
Proven refactoring patterns (Extract Method, Replace Temp, Introduce Parameter Object) to improve code structure safely. Use when improving existing code while keeping behavior unchanged.
Applies disciplined refactoring in small, verifiable steps to improve code structure without changing behavior: extract functions, rename, move code.