/sdlc-documentation:01-high-level-designfrom sdlc-documentation
Guides creation of system-level architecture with boundaries, components, critical flows, deployment topology, and ADRs from approved requirements or as-built recovery from existing code.
Ships in sdlc-documentation. 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.
Read when SKILL.md points to them.
For an as-built request, follow as-built recovery against the named code revision and schema. Keep observed behaviour, missing evidence and proposed changes distinct. The SRS-driven steps below apply to a target design.
| Artefact | Source or provider | Required? | Missing behaviour |
|---|---|---|---|
| Approved SRS/PRD and constraints | Phase 01/02 artefacts | Required | Stop on unresolved architecture-driving requirements. |
| Current context, integrations and quality targets | Project context and owners | Required | Qualify unknown interfaces and create ADR questions. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| High-Level Design, diagrams and ADR set | LLD, API, database, infrastructure, test and operations teams | Every component owns responsibilities and data; critical flows, failures, trust boundaries, deployment and ADR consequences are testable. |
| Evidence | Consumer | Acceptance condition |
|---|---|---|
| Source and decision trace | Reviewer and downstream owner | Each material statement cites an approved input, named decision or qualified open issue. |
| Completed verification record | Release or phase gate owner | Every applicable check records pass/fail; unavailable checks remain not assessed. |
Read-only is the default for analysis, review, evaluation and planning. Read and search access to authorised project artefacts are required. Editing is limited to an explicitly requested project deliverable. Execution may run document, syntax or validation checks. Network access is used only for facts that require current verification. Do not publish, spend, change production, approve policy, or claim certification without explicit authority.
If any required capability is unavailable, return the narrowest useful qualified High-Level Design, diagrams and ADR set draft plus a gap register showing the missing item, affected sections, risk and owner. Never convert an unassessed check into a pass.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Decision affects several components | Record an ADR and HLD view | Cross-system trade-off stays visible |
| Decision is internal to one module | Defer to LLD | HLD avoids implementation churn |
diagram-ir.schema.json, validated and generated, and the Step 11 table is generated from them.[AS-BUILT] or [VERIFY: reason] and pins the document to a commit.This is the first skill in Phase 03 (Design Documentation). It transforms the verified SRS requirements into a system-level architecture document that defines component boundaries, deployment topology, data flow paths, and technology decisions. Every figure is authored as diagram IR (engine/registry/schemas/diagram-ir.schema.json), checked against the identifier registry and rendered through generated Mermaid; the resulting views are inputs for the project's architecture review.
tech_stack.md is present in projects/<ProjectName>/_context/ to inform technology decisions.user_stories.md.| Attribute | Value |
|---|---|
| Inputs | projects/<ProjectName>/02-requirements-engineering/<srs-document>/SRS_Draft.md, projects/<ProjectName>/_context/tech_stack.md; optionally projects/<ProjectName>/01-strategic-vision/<prd-document>/PRD.md |
| Output | projects/<ProjectName>/03-design-documentation/01-high-level-design/HLD.md |
| Tone | Architectural, precise, diagram-heavy |
| Standard | IEEE 1016-2009 Sec 5 |
| File | Location | Required | Purpose |
|---|---|---|---|
| SRS_Draft.md | projects/<ProjectName>/02-requirements-engineering/<srs-document>/SRS_Draft.md | Yes | Functional requirements, interfaces, constraints, user classes |
| tech_stack.md | projects/<ProjectName>/_context/tech_stack.md | Yes | Technology choices, framework versions, infrastructure targets |
| PRD.md | projects/<ProjectName>/01-strategic-vision/<prd-document>/PRD.md | No | Product context, feature priorities, success metrics |
| File | Location | Description |
|---|---|---|
| HLD.md | projects/<ProjectName>/03-design-documentation/01-high-level-design/HLD.md | Complete High-Level Design document with architecture diagrams, technology decisions, and traceability |
| diagrams/*.ir.json | projects/<ProjectName>/03-design-documentation/01-high-level-design/diagrams/ | Diagram IR for every figure; _generated/ holds the Mermaid and trace table derived from it |
Follow these steps for the target design. Use the actual Phase 02 baseline locator from the project's handoff if its approved filename differs.
Read the approved SRS (all sections) from the active Phase 02 handoff and tech_stack.md from projects/<ProjectName>/_context/. Optionally read the Phase 01 PRD from its recorded location. Log the absolute path of each file read. If the approved baseline or required stack context is missing, stop the affected architecture decisions. Return the available observations and gap register under degraded mode. Keep the target HLD incomplete until the owner supplies the missing authority.
Analyze tech_stack.md and the SRS constraints (Section 3.4) to determine the architectural style: monolith, microservices, serverless, layered, or event-driven. State the chosen style with a one-paragraph rationale citing specific SRS constraints or technology requirements that drove the decision.
For domain-heavy, integration-heavy, or scale-sensitive projects, load references/practical-architecture-knowledge.md before finalising the architectural style. Apply its bounded-context, scalability, reliability, and architecture-metric checks.
Figures in Steps 3, 4, 5 and 7 are authored as diagram IR, not free-hand Mermaid. Load references/diagram-ir-authoring.md first. Write each figure to <doc-dir>/diagrams/<name>.ir.json against engine/registry/schemas/diagram-ir.schema.json, fill every trace from _registry/identifiers.yaml, and embed it in the section with <!-- diagram-ir: FIG-nnn -->.
Author a context IR figure showing the system boundary, external actors (derived from SRS Section 2.0 user classes, role person), external systems (from SRS Section 3.1 interfaces, role external_system), and the data exchanges between them as labelled edges. Every node and edge shall have a descriptive label and trace to the requirements it serves.
Author a component IR figure showing responsibility and data ownership. Draw boundaries that reflect the chosen architecture. Use technical layers where they exist. For each component, document in the text:
Author a deployment IR figure mapping components to infrastructure targets (servers, containers, cloud services). For networked interfaces, label edges with the supported protocol and configuration evidence from the SRS. Identify unresolved settings. For local-only components, label the local exchange.
Select the SRS journey where delay, loss or duplication can cause most harm, even at low volume. Trace a normal command or query through its keys, owning store, acknowledgement and visible result. Repeat the trace with the highest-consequence fault.
Use the scalability, distributed-systems or caching references when one of these choices arises. Pass infrastructure detail to 06-infrastructure-design as needed.
Author one dataflow IR figure per major data flow identified in the SRS functional requirements, showing entry points (external_entity), transformation steps (process) and storage (store). State each SRS §3.2 stimulus-response pair the flow realises as a semantic_checks.required_paths entry. From the engine root set <doc-dir> to the full project document path (for example projects/<ProjectName>/03-design-documentation/01-high-level-design). Then run python -m engine diagrams validate projects/<ProjectName> --doc <doc-dir> and python -m engine diagrams generate projects/<ProjectName> --doc <doc-dir>; fix every finding without deleting a trace or a semantic check.
Produce a table with the following columns:
| Decision | Options Considered | Choice and status | Rationale, consequence and revisit condition |
Every rationale entry shall cite a specific SRS constraint, non-functional requirement, or technology stack entry that justifies the choice.
For each external system identified in SRS Section 3.1, document:
Address the following concerns with specific references to SRS sections:
Do not type a traceability table. Place <!-- diagram-ir: trace-table --> in Section 9; the build inserts _generated/trace-table.md (Figure, Element, Kind, Requirement IDs, SRS section), which diagrams generate derives from the validated IR. Every component from Steps 3-7 appears in it because every component is an IR element. Resolve any diagram/uncovered-requirement finding by tracing the FR to the element that realises it. If the kernel cannot run, follow the degraded mode in references/diagram-ir-authoring.md and report the check as NOT_ASSESSED.
Royce Test Planning Trigger (IEEE WESCON 1970, p.335): Per Royce's Step 4, test planning begins at Program Design phase — not at the testing phase. When generating the HLD, simultaneously trigger
05-testing-documentation/01-test-strategy/SKILL.mdif it has not yet been started. The Test Strategy document (Doc 5 in Royce's canonical set) must be initiated no later than the completion of HLD.
The generated HLD.md shall contain these sections in order: Document Header (project name, date, version, standard), 1. Architectural Style, 2. System Context Diagram, 3. Component Architecture, 4. Deployment Topology, 5. Data Flow Diagrams, 6. Technology Decisions, 7. Integration Points, 8. Cross-Cutting Concerns (8.1 AuthN/AuthZ, 8.2 Logging, 8.3 Error Handling, 8.4 Caching), 9. Traceability Matrix, Appendix A: Glossary.
Section 2 context IR example (full case in engine/tests/fixtures/healthcare_admissions/):
{
"schema_version": 1,
"diagram_kind": "context",
"meta": {"figure_id": "FIG-001", "title": "System context", "caption": "System context of [Project Name]",
"alt_text": "Context diagram: end users use [Project Name], which calls one external service over REST.",
"srs_section": "3.1", "owner_document": "03-design-documentation/01-high-level-design/hld.md"},
"nodes": [
{"id": "user", "label": "End user", "role": "person", "trace": ["FR-001"]},
{"id": "system", "label": "[Project Name]", "role": "system", "trace": ["FR-001"]},
{"id": "ext", "label": "External service", "role": "external_system", "trace": ["FR-004"]}
],
"edges": [
{"id": "uses", "from": "user", "to": "system", "label": "Uses (HTTPS)", "trace": ["FR-001"]},
{"id": "calls", "from": "system", "to": "ext", "label": "Calls (REST/JSON)", "trace": ["FR-004"]}
],
"evidence": {"srs_section": "3.1", "source_documents": ["02-requirements-engineering/01-srs/srs.md"]}
}
| Pitfall | Remedy |
|---|---|
| Missing deployment details | Map each component to its evidenced or proposed deployment target and identify any unresolved interface settings |
| Diagrams without labels | Every IR node and edge shall have a descriptive label |
| Hand-drawn Mermaid or a hand-typed trace table | Author IR, run diagrams validate and diagrams generate, and embed with markers |
| Technology decisions without rationale | Every choice shall cite a specific SRS constraint or requirement |
| No traceability to requirements | Every HLD component shall link to at least one SRS requirement ID |
HLD.md exists in the project's authorised Phase 03 HLD directory with all nine sections populated.python -m engine diagrams validate with no HIGH finding, and the build's <OutputName>.figures.json passes python -m engine diagrams verify-manifest.<!-- diagram-ir: trace-table -->), not a hand-typed table; every HLD component carries at least one requirement ID.references/practical-architecture-knowledge.md.| Direction | Skill | Relationship |
|---|---|---|
| Upstream | Phase 02 (Requirements Engineering) | Consumes the approved SRS revision at the Phase 02 handoff locator |
| Downstream | 02-low-level-design | Decomposes HLD components into module-level specifications |
| Downstream | 03-api-specification | Uses component interfaces to define API contracts |
| Downstream | 04-database-design | Uses data flow and component architecture to define data models |
logic.prompt -- Alternate invocation of this workflow for the active workspace.references/diagram-ir-authoring.md -- IR fields, identifiers, trace filling, semantic checks, command sequence, %% alt: / %% caption: for figures kept as Mermaid, and degraded mode.references/practical-architecture-knowledge.md -- Book-distilled DDD, scalability, reliability, and architecture-metric checks.references/saas-hld-mode.md -- SaaS-mode addendum (two-plane decomposition, tenant-context, tenancy-pattern table, isolation summary). Apply when the project is a multi-tenant SaaS, then run 03-design-documentation/10-saas-multi-tenancy-architecture-spec for the full spec.README.md -- Quick-start guide for this skill.README.md (opens in a new tab)logic.prompt (opens in a new tab)references/ai-hld-mode.md (opens in a new tab)references/as-built-recovery.md (opens in a new tab)references/caching-strategies.md (opens in a new tab)references/diagram-ir-authoring.md (opens in a new tab)references/distributed-systems.md (opens in a new tab)references/practical-architecture-knowledge.md (opens in a new tab)references/saas-hld-mode.md (opens in a new tab)references/scalability-patterns.md (opens in a new tab)references/solution-design-views-and-controls.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors./01-prd-generationUse when converting approved discovery evidence into a traceable PRD with objectives, prioritised features, success measures, constraints, and release scope; use vision-statement for the strategic north star and lean-canvas while assumptions still need testing./01-sprint-planningUse when preparing a sprint goal, evidence-based team capacity, selected backlog, task breakdown, and delivery risks. Use definition-of-ready to admit individual items and definition-of-done to judge completed increments./01-stakeholder-analysisUse when identifying and classifying stakeholders, influence, interests, decision rights, and communication needs before elicitation; use elicitation-toolkit to gather requirements from them./01-technical-specificationUse when producing or updating implementation-ready technical specification for module contracts, interfaces, data schemas, dependencies, and requirement traceability. Use coding-guidelines for the neighbouring concern; this skill owns the named document contract and its acceptance evidence.npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentationOther plugins' skills for the same job