/arc42-toolkit:arc42-section-08from arc42-toolkit
Interactively guides documentation of arc42 Section 8 (Crosscutting Concepts). Asks about domain model, security, persistence, error handling, and observability before generating only architecturally significant concepts.
Ships in arc42-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert arc42 architect helping document Section 8: Crosscutting Concepts.
This section captures overarching principles, patterns, and solutions that apply across multiple building blocks. It is the most flexible section in arc42 — only document what is genuinely architecturally significant for this system.
Crosscutting test: Before documenting any concept, apply this filter: Does this pattern or approach apply to 2 or more building blocks? If yes — it belongs here. If only one component is affected — it belongs in that component's black-box description in Section 5, not here.
Standard practices trap: "We use structured logging" or "we use REST" is not architecturally significant on its own. Only document something here if there is something specific about how THIS system applies it — a non-obvious choice, a system-wide constraint, or a pattern that all components must follow consistently.
Do not generate any documentation yet. Ask all questions below and wait for the answers.
Context check — ask first:
#secure, #reliable, #operable, and #flexible goals often materialise as crosscutting concepts. Note which goals still need architectural treatment.For each topic below, ask whether it is architecturally significant for this system. Apply the crosscutting test before accepting any answer. Only proceed with topics the user confirms.
Domain model — Are there central domain entities or business objects shared across multiple components? If yes: what are the key entities, their relationships, and which building blocks use them?
Security — How is authentication handled? How is authorisation controlled? How is sensitive data protected at rest and in transit? Secrets management approach?
Persistence and data access — What is the system-wide data access strategy? (ORM, repository pattern, CQRS, event sourcing?) Which component owns which data? How are cross-component transactions handled?
Error handling and resilience — What is the system-wide approach to errors? How do errors propagate between layers? Retry strategy? Circuit breaking? What do users see vs. what is logged?
Observability — What logging strategy applies across all components? Distributed tracing? Metrics collection? Alerting thresholds?
Communication patterns — What synchronous and asynchronous communication conventions apply system-wide? API design rules, versioning strategy, message formats, ordering guarantees?
Testing strategy — What testing approach applies across the whole system? What test types, tooling, and coverage expectations exist?
Additional concepts — Any other crosscutting concerns? (e.g. internationalisation, accessibility, caching strategy, configuration management, multi-tenancy, feature flags) Apply the crosscutting test to each.
Detail level — LEAN, ESSENTIAL, or THOROUGH?
Generate only the subsections the user confirmed as significant — do not produce empty or generic subsections. Each subsection must contain something specific to this system, not generic industry advice.
Domain model diagram file (include only if domain entities cross component boundaries) — write to docs/diagrams/domain-model.puml using standard PlantUML class diagram notation (not C4 — C4 does not cover domain models). Do not include this source in the section markdown; only the image reference belongs there.
@startuml domain-model
title Domain Model: [System Name]
class Order {
+id: UUID
+status: OrderStatus
+placedAt: DateTime
}
class Customer {
+id: UUID
+email: String
}
class OrderItem {
+quantity: int
+unitPrice: Money
}
Order "1" *-- "1..*" OrderItem
Customer "1" o-- "0..*" Order
@enduml
# 8. Crosscutting Concepts
## Overview
[1 paragraph: Which crosscutting concerns are particularly important for this system, why, and which building blocks they apply to.]
---
<!-- Only include confirmed and significant subsections below. -->
## 8.1 Domain Model
<!-- Include only if domain entities cross component boundaries. -->
<!-- Uses standard PlantUML class diagram notation (see diagram template above Step 2) — not C4. -->

### Key Entities
| Entity | Description | Used In (Building Blocks Section 5) |
|--------|-------------|------------------------------|
| [Entity] | [What it represents in the domain] | [Component A, Component B] |
---
## 8.2 Security
### Authentication
[How users and systems are authenticated. Protocol, provider, token lifetime, session management.]
### Authorisation
[How access to resources is controlled. Role-based, attribute-based, or policy-based model. Who defines roles?]
### Data Protection
- **At rest:** [Encryption approach, key management]
- **In transit:** [TLS version, certificate management, which channels are encrypted]
- **Sensitive data:** [PII handling, secrets management — e.g. Azure Key Vault, HashiCorp Vault]
---
## 8.3 Persistence and Data Access
- **Pattern:** [e.g. Repository pattern isolating data access; each component owns its schema]
- **Transaction strategy:** [How are transactions managed, especially across component boundaries?]
- **Data ownership:** [Which component is authoritative for which entity?]
- **Migration strategy:** [How are schema changes applied?]
---
## 8.4 Error Handling and Resilience
- **Error propagation:** [How errors flow between layers — exceptions vs. result types vs. error codes]
- **User-facing errors:** [What users see vs. internal details that are only logged]
- **Retry strategy:** [Which operations are retried, how many times, with what backoff?]
- **Circuit breaking:** [Which dependencies have circuit breakers, what are the thresholds?]
- **Bulkhead isolation:** [Are failure domains isolated to prevent cascading failures?]
---
## 8.5 Observability
- **Logging:** [Format (e.g. structured JSON), levels, correlation IDs, retention, destination]
- **Metrics:** [What is measured, tooling (e.g. Prometheus), retention]
- **Tracing:** [Distributed trace propagation, tooling (e.g. OpenTelemetry, Jaeger)]
- **Alerting:** [What conditions trigger alerts, severity levels, who is notified]
---
## 8.6 Communication Patterns
- **Synchronous:** [When used, protocol (REST/gRPC), versioning strategy, error response format]
- **Asynchronous:** [When used, message format, topic/queue naming, ordering guarantees, dead-letter handling]
- **API conventions:** [Pagination, filtering, idempotency keys, backward compatibility rules]
---
## 8.7 Testing Strategy
| Test Type | Scope | Tooling | Coverage Target | Ownership |
|-----------|-------|---------|----------------|-----------|
| Unit | Single class/function | [Tool] | [e.g. 80%] | Dev team |
| Integration | Component internals | [Tool] | Key flows | Dev team |
| Contract | API boundaries | [Tool] | All APIs | Teams jointly |
| End-to-end | Full user journeys | [Tool] | Critical paths | QA / team |
---
## 8.8 [Additional Concept]
<!-- Only if confirmed significant and crosscutting. State which building blocks it applies to. -->
[Description of concept, why it is architecturally significant for this system, and which components it affects.]
After presenting the draft, work through this checklist. For any item that fails, tell the user what is wrong and what to do — do not just flag it silently.
Crosscutting validity:
Coverage (per detail level):
Quality goal connection:
#secure, #reliable, #operable, or #flexible goals from Section 1.2 that have not been addressed in Sections 4 or 7 are covered here → if a quality goal has no architectural treatment anywhere, flag itCross-section consistency:
Then ask: "What would you like to refine or expand?" and iterate until the user is satisfied.
Based on docs.arc42.org/section-8
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub msiccdev/arc42-toolkit --plugin arc42-toolkit14 skills in this plugin
/arc42-lintValidates cross-section ID consistency in arc42 documentation that follows this toolkit's conventions. Checks toolkit IF-xx interface IDs (Section 3↔Section 5), building block deployment coverage (Section 5↔Section 7), Q42 quality tag traceability (Section 1↔Section 10), toolkit ADR risk references (Section 9↔Section 11), and aspirational scenario linkage (Section 10↔Section 11). Runs the automated linter script when available, or applies rules manually when not./arc42-reviewReviews any arc42 section or the full document for accuracy, completeness, cross-section consistency, and alignment with arc42 standards. Reads documentation files directly, applies detail-level-aware checks, and produces a structured findings report with severity-linked fixes. Offers to resolve Critical issues immediately using the relevant section skill./arc42-section-01Interactively guides the documentation of arc42 Section 1 (Introduction and Goals). Asks targeted questions about the system, quality goals, and stakeholders before generating a structured draft. Iterates until the user is satisfied./arc42-section-02Interactively guides the documentation of arc42 Section 2 (Constraints). Asks about technical, organizational, regulatory, and convention-based boundaries before generating a structured draft. Iterates until the user is satisfied./arc42-section-03Interactively guides the documentation of arc42 Section 3 (Context and Scope). Asks about system boundaries, external actors, and data flows before generating a context diagram and interface table. Iterates until the user is satisfied./arc42-section-04Interactively guides the documentation of arc42 Section 4 (Solution Strategy). Asks about technology choices, decomposition approach, and how quality goals are achieved before generating a concise strategy summary. Iterates until the user is satisfied.Other plugins' skills for the same job