maintainable-code
maintainable-code
Write, edit, and review code so a human maintainer can understand it, test it, and change it later without decoding cleverness.
Passive Trigger
Load this skill in the background whenever the task involves source code, even if the user does not mention maintainability. Keep it lightweight for small edits: apply the core rules silently, then mention only the decisions that affect the final implementation.
Decision Tree
What are you doing?
-
Implementing a new feature or fixing a bug: Match the local architecture first. Keep the change small, typed, named plainly, and covered by the narrowest meaningful verification. Write for a future maintainer with solid fundamentals but incomplete context about this system.
-
Refactoring existing code: Preserve behavior in small steps. Read
references/decomposition.mdbefore splitting modules, extracting helpers, or changing boundaries.