monolith
Installation
SKILL.md
monolith
Goal
Design strictly structured Modular Monoliths or enforce clean boundaries within an existing monolithic codebase.
Steps
- Module Definition: Identify the core modules and define their public interfaces.
- Dependency Rules: Establish strict visibility and dependency rules between modules (e.g., using ArchUnit or Dependency Cruiser).
- Implementation: Ensure database transactions and code execution do not bypass module boundaries.
- Verification: Run architecture linters to catch dependency violations (e.g., Module A importing internal classes of Module B).
Security & Guardrails
1. Skill Security
- Governance Evasion: Prevent the agent from disabling the CI architectural linters (e.g.,
dependency-cruiser.json) in order to resolve boundary violations. - God-Class Creation: Prevent the agent from merging domains into single "God Objects" to avoid compilation errors.
2. System Integration Security
- Shared Memory Poisoning: If the monolith uses global state or a shared cache, strictly partition keys by module domain.
- Privilege Escalation: Ensure all modules enforce authorization explicitly; one module cannot assume another module has pre-authorized a request.