Code Maintainability

Writing, refactoring, or reviewing code for maintainability or design — keeping what you change readable, cohesive, and cheap to change next time. Triggers on "readable", "too long", "refactor", "abstraction", "cohesion", "magic number", "dead code", "what should this be called", or "should this live elsewhere". While authoring, each concern is a practice to uphold; while reviewing, a finding to raise against the diff. Covers cohesion as the test of what belongs in one unit, naming and file organization, abstraction boundaries, complexity limits, dead code, and SOLID/DRY/KISS/YAGNI judgment.

axross 6504df7 5 files · 32.8 KB Updated

File contents

axross/skills/tree/main/skills/code-maintainability commit 6504df7e20

Frequently asked questions

npx skillmds@latest add axross/code-maintainability