maintainable-code
/maintainable-code
Shape and review production code for human legibility, maintainability, safe change, and performance-aware design. Use when writing, implementing, modifying, refactoring, or reviewing code; planning implementation structure; performing code-quality or architecture audits; or investigating code that is difficult to understand or change.
- Author
- nickyfactz ↗
- Repository
- plumbline ↗
- Licence
- MIT
- Last repository change
- 21.10.2026
Assessment and security
- Files in this package
- 16
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 21.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Shape and review production code for human legibility, maintainability, safe change, and performance-aware design. Use when writing, implementing, modifying, refactoring, or reviewing code; planning implementation structure; performing code-quality or architecture audits; or investigating code that is difficult to understand or change.
Original author description
Shape and review production code for human legibility, maintainability, safe change, and performance-aware design. Use when writing, implementing, modifying, refactoring, or reviewing code; planning implementation structure; performing code-quality or architecture audits; or investigating code that is difficult to understand or change.
How it works
- Governing principles
- Choose one work branch
- Shared anti-dogma rules
- Universal completion gate
SKILL.md preview
--- name: maintainable-code description: Shape and review production code for human legibility, maintainability, safe change, and performance-aware design. Use when writing, implementing, modifying, refactoring, or reviewing code; planning implementation structure; performing code-quality or architecture audits; or investigating code that is difficult to understand or change. --- # Maintainable code Shape code for the cost and risk of its **next change**. The code must serve two audiences: 1. the runtime, which needs correct and appropriate behavior 2. the human maintainer, who needs to understand and change that behavior safely Do not optimize source code for model token economy, syntactic cleverness, or compliance with a style doctrine. Prefer code whose intent, control flow, ownership, and important tradeoffs are recoverable by a human reader. ## Governing principles Use these as defaults, not laws: - **Clarity:** intent should be recoverable without reconstructing the author's entire mental model. - **Scanability:** visual shape should reveal rough control flow and conceptual stages before every expression is decoded. - **Locality:** a conceptual change should require edits near the concept that owns it. - **Depth:** prefer stable interfaces that hide meaningful complexity over swarms of shallow wrappers. - **Cohesion:** code that changes for the same reason should tend to live together. - **Information hiding:** important design decisions and domain knowledge should have clear ownership. - **Explicitness:** dependencies, state transitions, side effects, invariants, and failure behavior should be visible at the appropriate boundary. - **Evidence:** preserve duplication, comments, larger functions, direct code, or specialized implementations when they are clearer or safer than the proposed abstraction. - **Behavior preservation:** a refactor changes structure, not externally observable behavior, unless behavior change is explicitly in scope. - **Testability:** difficult-to-test code is evidence about coupling, not permission to distort a good runtime design. - **Performance awareness:** abstraction is not free; profile or benchmark when runtime cost is material. - **Repository fit:** repository-local conventions and host-language idioms outrank generic style preferences. ## Choose one work branch Load only the branch that matches the current task: - **Writing or modifying production code:** read [`references/implementation.md`](references/implementation.md). - **Behavior-preserving structural refactor:** read [`references/refactoring-workflow.md`](references/refactoring-workflow.md). - **Code review or larger quality/design audit:** read [`references/review-audit.md`](references/review-audit.md). Do not load the other workflow branches unless the task genuinely crosses modes. ## Shared anti-dogma rules - Prefer **one coherent operation** over an arbitrary function-length limit. - Prefer **semantic whitespace and meaningful locals** over compressing source for fewer lines or tokens. - Prefer **one behavioral scenario** over a literal one-assertion-per-test rule. - Prefer **useful rationale and contract comments** over a blanket "comments are failures" stance. - Prefer **stable abstractions discovered from pressure** over eliminating every instance of duplication immediately. - Prefer **deep modules** over splitting code until navigation itself becomes the complexity. - Prefer **language-native error, ownership, and composition models** over importing one paradigm into every language. - Prefer **measured hot-path efficiency** over stylistic purity when the two conflict. - Prefer **repository consistency** over introducing a new personal formatting system. ## Universal completion gate No branch is complete until: - required behavior is validated at a level proportionate to the change - a reproducible formatter and useful baseline linter/static-analysis path exists for materially maintained languages, and their checks pass at the repository's agreed baseline - materially changed code is human-scannable - important state, side effects, and contracts are understandable - material design risks and intentionally retained complexity have a concrete rationale and orchestrator disposition against the accepted spec and current milestone; accepted requirements and supported behavior remain satisfied
Files in this package (16)
- README.md 4 KB
- SKILL.md 4 KB
- agents/openai.yaml 1 KB
- assets/icon.svg 2 KB
- references/code-smells.md 6 KB
- references/design-shape.md 4 KB
- references/human-legibility.md 10 KB
- references/implementation.md 4 KB
- references/legacy-and-tests.md 3 KB
- references/performance.md 2 KB
- references/refactoring-safety.md 3 KB
- references/refactoring-workflow.md 2 KB
- references/reporting.md 3 KB
- references/review-audit.md 5 KB
- references/sources.md 4 KB
- references/tooling-bootstrap.md 11 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · nickyfactz/plumbline | 90 | MIT |
| Rene-Roscher/skills | 90 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version de85f2493f5f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100code-review
Review code for correctness, security, performance, and maintainability. Use when the user asks to "review this code", "check my changes", "review PR", "audit", or "what do you think of this approach". - 95memstack-development-code-reviewer
Use this skill when the user says 'review code', 'code review', 'check my code', 'audit this', 'review PR', 'review changes', 'what's wrong with this', or is requesting a structured review of code quality, security, performance, or maintainability. Do NOT use for refactoring… - 100code-review
Reviews pull requests and code changes for correctness, conventions, maintainability, performance, test coverage, and security. Use when the user asks for a code review, PR review, feedback on a diff, or to check code quality. - 100code-review
Reviews code changes for quality, correctness, security, and maintainability with an independent perspective. Use when the user asks to "review the code", "check my changes", "review the implementation", or mentions code review, PR review, or quality check. - 100reviewing-code
Code review methodology for evaluating implementation changes. Use when reviewing code changes for quality, design, correctness, and maintainability. Focuses on changes made during implementation using Conventional Comments for clear, actionable feedback. - 100writing-maintainable-code
Principles for code that is easy to understand, change and trust. Use when writing, refactoring or reviewing code in any language, when a change touches business logic, external APIs, validation or error handling, or when preparing a commit or pull request.