Arc42 Building Block Capture

0•

Extracts implemented module and component architectures from source code to generate and update arc42 building block views with Mermaid diagrams.

The to-spec-building-block skill automates the capture and synchronization of software module and component structures directly into `.arc42/05-building-block-view.md`. By analyzing solution files, project dependencies, API surfaces, dependency injection containers, and unit tests, this skill establishes level 1 (runnable containers) and level 2 (modular units) decomposition hierarchies with verified responsibilities and interfaces. It automatically creates Mermaid dependency diagrams that reflect actual code dependencies rather than idealized architectures, surfacing architectural drift and layering violations while maintaining structured arc42 documentation standards.

Key Features

01Analyzes project references and DI containers to discover actual module boundaries and dependencies
02Creates accurate Mermaid diagrams reflecting observed code-level dependency directions
03Evaluates unit, contract, and architecture tests as verifiable evidence of component boundaries
04Identifies architectural drift and layering violations without mutating existing source code
05Generates structured Level 1 and Level 2 decomposition documentation matching arc42 standards
060 GitHub stars

Use Cases

01Generating accurate component dependency diagrams to identify circular dependencies or upward layering violations
02Documenting or refreshing missing and outdated arc42 building block views after codebase refactoring
03Aligning codebase module boundaries with domain-driven design (DDD) bounded contexts