architecture-paradigm-modular-monolith✓ Pass
Single deployable with enforced module boundaries for team autonomy without distributed complexity. Triggers: modular-monolith, module boundaries, single deployment, team autonomy Use when: teams need autonomy without distributed overhead DO NOT use when: already using microservices or system is small.
// Install Skill
Install Skill
Skills are third-party code from public GitHub repositories. SkillHub scans for known malicious patterns but cannot guarantee safety. Review the source code before installing.
Install globally (user-level):
npx skillhub install athola/claude-night-market/architecture-paradigm-modular-monolithInstall in current project:
npx skillhub install athola/claude-night-market/architecture-paradigm-modular-monolith --projectUse this for Hermes or another runtime. The skill is written to <directory>/<skill-name>/.
npx skillhub install athola/claude-night-market/architecture-paradigm-modular-monolith --target-dir /path/to/skillsSuggested path: ~/.claude/skills/architecture-paradigm-modular-monolith/
SKILL.md Content
---
name: architecture-paradigm-modular-monolith
description: 'Single deployable with enforced module boundaries for team autonomy
without distributed complexity.
Triggers: modular-monolith, module boundaries, single deployment, team autonomy
Use when: teams need autonomy without distributed overhead
DO NOT use when: already using microservices or system is small.'
category: architectural-pattern
tags:
- architecture
- modular-monolith
- monolith
- internal-boundaries
- team-autonomy
dependencies: []
tools:
- dependency-analyzer
- module-boundary-enforcer
- refactoring-planner
usage_patterns:
- paradigm-implementation
- monolith-modernization
- team-scaling
complexity: medium
estimated_tokens: 700
---
# The Modular Monolith Paradigm
## When To Use
- Organizing large codebases into well-bounded modules
- Teams wanting microservice boundaries without distributed complexity
## When NOT To Use
- Already distributed as microservices
- Tiny applications where module boundaries add unnecessary complexity
## When to Employ This Paradigm
- When you desire team autonomy similar to that of microservices, but without the operational overhead of a distributed system.
- When release velocity is slowed by tangled dependencies between internal modules.
- When a monolithic architecture is simpler to operate today, but there is a clear need to evolve toward a service-based model in the future.
## Adoption Steps
1. **Identify Modules**: Define module boundaries that align with distinct business capabilities or Bounded Contexts from Domain-Driven Design.
2. **Encapsulate Internals**: Use language-level visibility modifiers (e.g., public/private), separate packages, or namespaces to hide the implementation details of each module.
3. **Expose Public Contracts**: Each module should expose its functionality through well-defined facades, APIs, or events. Forbid direct database table access or direct implementation calls between modules.
4. **Enforce Architectural Fitness**: Implement automated tests that fail the build if forbidden dependencies or package references are introduced between modules.
5. **Plan for Evolution**: Continuously track metrics such as change coupling and deployment scope to make informed decisions about if and when to split a module into a separate service.
## Key Deliverables
- An Architecture Decision Record (ADR) that maps module boundaries and defines the rules for any shared code.
- Formal contract documentation (e.g., OpenAPI specs, event schemas) for every interaction point between modules.
- Automated dependency checks and dedicated CI/CD jobs for each module to enforce boundaries.
## Risks & Mitigations
- **Regression to a "Big Ball of Mud"**:
- **Mitigation**: Without strict enforcement, module boundaries will inevitably erode. Treat any boundary violation as a build-breaking error and maintain a disciplined approach to code reviews.
- **Shared Database Hotspots**:
- **Mitigation**: High contention on a shared database can become a bottleneck. Introduce clear schema ownership, use view-based access to restrict data visibility, or implement data replication strategies to reduce coupling.
## Troubleshooting
### Common Issues
**Skill not loading**
Check YAML frontmatter syntax and required fields
**Token limits exceeded**
Use progressive disclosure - move details to modules
**Modules not found**
Verify module paths in SKILL.md are correct
License
Declared license: MIT
MIT License
Copyright (c) 2026 athola
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.View the license in the source repository — the version published there is authoritative.
// Install Skill
Install Skill
Skills are third-party code from public GitHub repositories. SkillHub scans for known malicious patterns but cannot guarantee safety. Review the source code before installing.
Install globally (user-level):
npx skillhub install athola/claude-night-market/architecture-paradigm-modular-monolithInstall in current project:
npx skillhub install athola/claude-night-market/architecture-paradigm-modular-monolith --projectUse this for Hermes or another runtime. The skill is written to <directory>/<skill-name>/.
npx skillhub install athola/claude-night-market/architecture-paradigm-modular-monolith --target-dir /path/to/skillsSuggested path: ~/.claude/skills/architecture-paradigm-modular-monolith/