modular-monolith
Installation
SKILL.md
Modular Monolith
Use this skill when
- Modularizing a monolith for maintainability
- Evaluating whether a modular monolith suits the scale
- Preparing a codebase for a future split into services
Do not use this skill when
- The organization urgently needs independent scaling (use microservices)
- Changes are small enough that modules add overhead
Instructions
- Define modules by domain capability with a single owner.
- Give each module a public API and hide internals.
- Enforce boundaries in code: no cross-module imports except via the API.
- Keep shared code in sanctioned shared modules.
- Push boundaries into the database schema (no shared tables).
- Set up module-level tests and ownership.