From s2s
Provides arc42 templates and patterns for standardized architecture documentation. Covers 12 sections, building blocks, context diagrams, and stakeholder-focused documentation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/s2s:arc42-templatesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
arc42 is a template for architecture documentation. This skill provides patterns and structure for documenting software architecture in a standardized, stakeholder-friendly way.
arc42 is a template for architecture documentation. This skill provides patterns and structure for documenting software architecture in a standardized, stakeholder-friendly way.
| # | Section | Purpose | When to Use |
|---|---|---|---|
| 1 | Introduction | Goals, stakeholders, constraints | Project setup |
| 2 | Constraints | Technical/organizational limits | Initial design |
| 3 | Context | System boundaries, external interfaces | System scoping |
| 4 | Solution Strategy | Key decisions, technology choices | Architecture decisions |
| 5 | Building Blocks | Components, modules, structure | Design documentation |
| 6 | Runtime View | Scenarios, sequences, flows | Behavior documentation |
| 7 | Deployment | Infrastructure, nodes, mapping | Operations planning |
| 8 | Crosscutting | Security, logging, error handling | Quality implementation |
| 9 | Decisions | ADRs, rationale | Decision tracking |
| 10 | Quality | Quality goals, scenarios | Quality assurance |
| 11 | Risks | Technical risks, debt | Risk management |
| 12 | Glossary | Terms, definitions | Communication |
Level 0: System Context
├── Your System (white box)
├── External System A
├── External System B
└── User
Level 1: Container View
├── Web Application
├── API Service
├── Database
└── Message Queue
Level 2: Component View (per container)
├── Controller Layer
├── Service Layer
├── Repository Layer
└── Domain Models
### {Component Name}
**Purpose**: {one-line description}
**Responsibilities**:
- {responsibility 1}
- {responsibility 2}
**Interfaces**:
- `{interface}`: {description}
**Dependencies**:
- Uses: {component names}
- Used by: {component names}
### {Interface Name}
**Type**: {REST API | Event | gRPC | etc.}
**Protocol**: {HTTP | AMQP | etc.}
**Operations**:
| Operation | Input | Output | Description |
|-----------|-------|--------|-------------|
| {name} | {type} | {type} | {description} |
For detailed patterns and examples, see:
references/building-blocks.mdreferences/runtime-view.mdreferences/deployment-view.mdexamples/sample-component.mdIn Spec2Ship projects:
.s2s/architecture.md (single consolidated file).s2s/decisions/ (Section 9)npx claudepluginhub spec2ship/spec2ship --plugin s2sDocuments system architecture with component diagrams, data flows, ADRs, deployment views, and templates. Analyzes patterns and maintains living docs for team communication.
Generates ARCHITECTURE.md files for PHP projects using DDD layers (Domain, Application, Infrastructure, Presentation). Includes directory structure, component descriptions, diagrams, and tech stack.
Generates a Software Architecture Document (Arc42 12 sections + C4 L1/L2) and ADRs for a feature, given an existing spec and glossary. Useful for tech leads and architects during feature design.