authoring-architecture-docs
Authoring Architecture Docs Action
Produces architecture decision records, design documents, and C4 Model diagrams scoped to the appropriate level for the current SDLC phase and audience — the understanding-oriented quadrant of the Diátaxis framework. Diagrams are scoped to the appropriate level for the current SDLC phase and audience.
Load authoring-technical-docs first for the multi-pass workflow, style rules, and quality framework. This action provides the templates and architecture-specific rules.
References
Read these before executing any step.
| File | Contains |
|---|---|
references/notation.md |
C4 abstractions, Mermaid element types, verb bank |
references/level-rules.md |
Per-level rules and forbidden elements |
references/sdlc-mapping.md |
SDLC phase → diagram selection, audience decision tree |
references/anti-patterns.md |
Mistakes to detect and avoid |
Assets
Use these as output scaffolding.
| File | Use for |
|---|---|
assets/architecture-doc.md |
Top-level ARCHITECTURE.md structure |
assets/diagram-templates.md |
Per-level section templates (fill in placeholders) |
assets/Architecture_Decision_Record_(ADR)_template.md |
Template for Architecture Decision Records (ADRs) |
assets/Design_document_template.md |
Template for technical design documents |
assets/System_architecture_template.md |
Template for system architecture overviews |
Workflow
Step 1 — Read references
Read all four files in references/ before any other action.
Step 2 — Gather project context
Extract from input. Ask only if a required field is missing.
| Field | Required for |
|---|---|
| System name and purpose | All levels |
| Users / personas | L1+ |
| External integrations | L1+ |
| Tech stack | L2+ |
| SDLC phase | Selecting diagram levels |
| Target container name + source structure | L3 only |
| Flow name and step-by-step description | Dynamic only |
Step 3 — Select diagram levels
Consult references/sdlc-mapping.md → Phase Matrix and Audience Decision Tree.
State the selection and rationale before proceeding.
Step 4 — Produce each diagram
For each selected level, in order:
- Open
assets/diagram-templates.mdand copy the matching template section - Fill every
{{placeholder}}— leave none blank - Apply all rules from
references/level-rules.mdfor that level - Scan output against
references/anti-patterns.md - Self-check against the Review Checklist in
assets/architecture-doc.md
Step 5 — Assemble output document
Open assets/architecture-doc.md as the document scaffold.
Insert completed diagram sections in level order: L1 → L2 → L3 → Deployment → Dynamic.
Complete the Key Architectural Decisions table and Change Log.
Step 6 — Save files
docs/architecture/ARCHITECTURE.md
docs/architecture/diagrams/context.mermaid
docs/architecture/diagrams/container.mermaid
docs/architecture/diagrams/component-{{container_name}}.mermaid
docs/architecture/diagrams/deployment.mermaid
docs/architecture/diagrams/dynamic-{{flow_name}}.mermaid
Save only the files corresponding to the levels actually produced.
Inputs
- Project description, README, or source code
- SDLC phase (required)
- Target container name and source structure (L3 only)
- Flow name and steps (Dynamic only)
Outputs
ARCHITECTURE.md— full assembled documentation packagediagrams/*.mermaid— one file per diagram level produced
Architecture docs rules
- Separate "what is" from "what should be." Overviews describe current state. Design docs describe proposed future.
- Diagrams are not optional. Use Mermaid — it's version-controllable.
- Include the "why." Link to ADRs.
- Write for the new team member.
- Be honest about trade-offs. Every architecture has weaknesses. Document them.
- Link to code. When describing a component, link to the relevant repo or entry point.
Using Mermaid for diagrams
Accompany each diagram with a brief prose summary (2–4 sentences) explaining the key relationships shown.
System overview:
graph TB
User[User] --> WebApp[Web Application]
WebApp --> API[API Service]
API --> DB[(Database)]
API --> Queue[Message Queue]
Queue --> Worker[Background Worker]
Worker --> DB
Sequence diagram:
sequenceDiagram
participant Client
participant API
participant DB
Client->>API: POST /resources
API->>DB: INSERT resource
DB-->>API: resource_id
API-->>Client: 201 Created
Example Triggers
- "Generate a C4 context diagram for this project"
- "Show me the container architecture"
- "Document the components in the auth service"
- "Create a class diagram for the payment module"
More from wizeline/sdlc-agents
editing-pptx-files
Use this action any time a .pptx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx filename, regardless of what they plan to do with the content afterward. If a .pptx file needs to be opened, created, or touched, use this action.
25editing-docx-files
Use this action whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of \"Word doc\", \"word document\", \".docx\", or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a \"report\", \"memo\", \"letter\", \"template\", or similar deliverable as a Word or .docx file, use this action. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
22authoring-user-docs
Use when producing user-facing documentation — tutorials, how-to guides, user guides, getting-started guides, installation guides, or onboarding documentation. Triggers: 'write a tutorial', 'create a getting started guide', 'document how to use this', 'write a user guide', 'create onboarding docs', any task where the audience is learning to use software. Always load authoring-technical-docs first.
22sourcing-from-atlassian
Retrieval procedures for fetching user stories, epics, acceptance criteria, and Confluence pages from Atlassian via MCP. Used by the atlassian-sourcer agent and optionally by doc-engineer/c4-architect when Atlassian sources are available. Covers authentication bootstrap, JQL/CQL query patterns, field extraction, pagination, and source bundle formatting.
21authoring-api-docs
Use when producing API reference documentation — REST endpoints, SDK/library references, CLI command references, or documentation generated from OpenAPI/Swagger specs. Triggers: 'document this API', 'generate API reference', 'write SDK docs', 'document these endpoints', any task involving source code with HTTP handlers, route definitions, or OpenAPI specs. Always load authoring-technical-docs first.
20processing-pdfs
Use this action whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this action.
19