Maintainable Code

Decide where code goes and which direction it points: where a new module belongs, whether a dependency may flow that way, what stays behind a boundary, whether an abstraction has been earned yet, and when a long flow should stay in one piece. Covers investigating before changing, proving a technical unknown before choosing the placement, keeping effects and dependencies explicit, and recording the compromise when existing architecture forces one. Use when the user says "where should this live", "is this the right structure", "should I split this", "this file is doing too much", or "clean this up", and when code hides I/O, passes a broad context object, hardcodes one caller into a generic mechanism, or grows a second architecture beside the first. Not for judging a change that already exists, and not for language-specific idiom. Structure chosen while a technical unknown is still open is a guess wearing the costume of design.

gabrielmoreira f95743b 20 files · 39.7 KB Updated 17 repo stars

File contents

gabrielmoreira/skills/tree/main/skills/maintainable-code commit f95743b8ec

Frequently asked questions

npx skillmds@latest add gabrielmoreira/maintainable-code