What problem does it solve?
This skill resolves ambiguity in service architecture by providing a standardized, reviewable method to document the internal structural building blocks of a single container, ensuring consistent dependency management and layering.
Core Features & Use Cases
- C4-L3 Notation: Enforces the C4 Level 3 model for decomposing a single service into handlers, application services, domain models, and infrastructure components.
- Dependency Rule Enforcement: Validates that source-code dependencies point inward toward the domain, preventing architectural drift and circular dependencies.
- Use Case: Use this skill when a service's internal structure is non-obvious, such as when implementing an Anti-Corruption Layer or complex CQRS read-models, to provide reviewers with a clear, standards-compliant structural blueprint before implementation begins.
Quick Start
Use the component-diagram skill to generate a C4 Level 3 diagram and element catalog for the current service container.