Skip to main content
Run any Skill in Manus
with one click
$pwd:

code-quality

// Authors and reviews code for low cognitive complexity, readability, and long-term maintainability. Applies guard clauses, early returns, single-responsibility functions, type-driven design (illegal states unrepresentable, branded primitives, discriminated unions), schema-first validation with type inference (Zod / Pydantic), single source of truth for union-type metadata, functional core + imperative shell, total functions, idempotency for retryable ops, money in minor units, and neighbour-pattern symmetry. Pairs with `tdd` for new code (drives RED-GREEN-REFACTOR; rules apply in GREEN/REFACTOR). Use during PR review, after writing new code, the GREEN/REFACTOR phases of TDD, or when asked to "improve quality", "make this readable", "reduce complexity", "deduplicate", "clean this up", or "/code-quality". Citations and research grounding in `references/citations.md`.

$ git log --oneline --stat
stars:0
forks:0
updated:May 6, 2026 at 05:10
File Explorer
18 files
SKILL.md
readonly