What problem does it solve?
When designing new modules, refactoring, or reviewing code, engineers often lack a consistent checklist to catch structural problems like deep call chains, excessive dependencies, and inconsistent API contracts before they become technical debt.
Core Features & Use Cases
- Six-Principle Checklist: Covers module size, call depth, fan-in/fan-out, interface boundaries, scope cohesion, and predictability with concrete thresholds (e.g., call depth ≤ 3, fan-out ≤ 5).
- Detailed Anti-Pattern References: Provides Go, Java, TypeScript, and Python examples of bad and good designs for call depth, fan-out, unified Result types, idempotency keys, and side-effect isolation.
- PR Review Checklist: A ready-to-use checklist for reviewing new modules covering size, depth, fan-out, boundaries, scope, idempotency, and implicit dependencies.
- Use Case: When asked to design a new order service or review a pull request, the skill walks through each principle, flags a 6-layer call chain or a service with 8 injected dependencies, and suggests event-driven decoupling or facade patterns.
Quick Start
Ask the AI to review this new module design against the six modularity principles and list any violations with fixes.