/sdlc-documentation:02-low-level-designfrom sdlc-documentation
Produces implementation-ready low-level design artefacts including module, class, sequence, state, algorithm and error contracts from approved HLDs and requirements.
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.
| Artefact | Source or provider | Required? | Missing behaviour |
|---|---|---|---|
| Approved HLD, requirements and ADRs | Phase 02/03 artefacts | Required | Stop if component ownership or interface is unresolved. |
| Language, platform and coding constraints | Technology decisions and engineering standards | Required | Return technology-neutral contracts when the stack is undecided. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| Low-Level Design and traceability notes | Implementers, reviewers and test engineers | Each unit has responsibilities, interfaces, state transitions, errors, concurrency rules and requirement-linked test oracles. |
| 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 Low-Level Design and traceability notes 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 |
|---|---|---|
| Behaviour crosses a system boundary | Escalate to HLD/API ADR | Local design does not contradict architecture |
| Behaviour is module-internal | Specify in LLD | Implementation ambiguity is removed |
diagram-ir.schema.json, validated and generated.This is the second skill in Phase 03 (Design Documentation). It decomposes the high-level components defined in HLD.md into implementable modules with class structures, interaction sequences, state transitions, and algorithmic detail. The resulting LLD.md serves as the definitive blueprint for developers, mapping every module back to its originating HLD component and SRS requirement.
01-high-level-design skill has produced HLD.md in projects/<ProjectName>/<phase>/<document>/.business_rules.md in projects/<ProjectName>/_context/ for algorithm formalization and calculation logic.| Attribute | Value |
|---|---|
| Inputs | projects/<ProjectName>/<phase>/<document>/HLD.md, projects/<ProjectName>/<phase>/<document>/SRS_Draft.md, projects/<ProjectName>/_context/business_rules.md |
| Output | projects/<ProjectName>/<phase>/<document>/LLD.md |
| Tone | Implementation-precise, diagram-heavy, algorithm-focused |
| Standards | IEEE 1016-2009 Sec 6, ISO/IEC 25010, ISO/IEC 25062 |
| File | Location | Required | Purpose |
|---|---|---|---|
| HLD.md | projects/<ProjectName>/<phase>/<document>/HLD.md | Yes | Component architecture to decompose into modules |
| SRS_Draft.md | projects/<ProjectName>/<phase>/<document>/SRS_Draft.md | Yes | Stimulus-response pairs for sequence diagrams |
| business_rules.md | projects/<ProjectName>/_context/business_rules.md | Yes | Business logic and calculations to formalize |
| File | Location | Description |
|---|---|---|
| LLD.md | projects/<ProjectName>/<phase>/<document>/LLD.md | Complete Low-Level Design with diagrams and algorithms |
| diagrams/*.ir.json | projects/<ProjectName>/<phase>/<document>/diagrams/ | Sequence and state figures as diagram IR |
Follow these nine steps in order. Halt and notify the user if a required input file is missing.
Read HLD.md and SRS_Draft.md from projects/<ProjectName>/<phase>/<document>/, and business_rules.md from projects/<ProjectName>/_context/. Log every file path read. If any required file is missing, halt execution and report the gap.
For each component identified in HLD.md, decompose it into modules and classes. Define each module's single responsibility, public interface, and internal dependencies. Group related classes into packages or namespaces that mirror the HLD layered architecture.
Class diagrams have no diagram-IR kind yet, so produce Mermaid classDiagram blocks for each module, and put %% alt: <what the figure shows> and %% caption: <caption> comment lines inside every block so the rendered figure carries real alt text and a caption. Classes shall include:
String, Integer, DECIMAL(19,4) for monetary values, DateTime)<|--), composition (*--), dependency (..>), association (-->)%% alt: Class diagram of the order module: Order contains OrderItem lines and calculates its total.
%% caption: Order module classes
classDiagram
class Order {
-orderId : UUID
-totalAmount : DECIMAL(19,4)
+calculateTotal() : DECIMAL(19,4)
+applyDiscount(rate : DECIMAL(5,4)) : void
}
class OrderItem {
-quantity : Integer
-unitPrice : DECIMAL(19,4)
}
Order *-- OrderItem : contains
Author one sequence IR figure (<doc-dir>/diagrams/<name>.ir.json, see ../01-high-level-design/references/diagram-ir-authoring.md) for each of 5-8 critical workflows derived from SRS Section 3.2 stimulus-response pairs. Participants are nodes (role participant); messages are edges with order and kind (sync, async, return). Each figure shall show:
diagram/unmapped-sequence)semantic_checks.required_paths entryAuthor one state IR figure for every entity that has lifecycle states: roles start, state and terminal, transition guards as edge labels (for example payment_verified), and the terminal states the data model allows in semantic_checks.allowed_terminals. A non-terminal state without an outgoing transition fails with diagram/dead-end-state. 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, and embed each figure with <!-- diagram-ir: FIG-nnn -->. If the kernel cannot run, follow the reference's degraded mode and report the check as NOT_ASSESSED.
For each complex business rule in business_rules.md, produce structured pseudocode. Use LaTeX notation for all calculations:
Include preconditions, postconditions, and edge-case guards for every algorithm. Document time complexity where relevant.
Define a comprehensive error handling strategy:
ORD-4001: Invalid order state transition -> 409 Conflict).ApplicationException -> ValidationException, BusinessRuleException, IntegrationException).For each input accepted by a module, define validation constraints per ISO/IEC 25062:
endDate > startDate)Produce a traceability table mapping every LLD module to its HLD component and originating SRS requirement ID:
| LLD Module | HLD Component | SRS Requirement IDs |
|---|---|---|
| OrderService | Order Management | FR-3.2.1, FR-3.2.3 |
| PaymentGatewayAdapter | Payment Processing | FR-3.2.5, FR-3.2.6 |
Below the module matrix, embed the generated figure trace table with <!-- diagram-ir: trace-table -->; never type the figure-to-requirement rows by hand. Write the completed document to projects/<ProjectName>/<phase>/<document>/LLD.md. Log the total module count, diagram count, and algorithm count.
The generated LLD.md shall follow this structure:
# Low-Level Design: [Project Name]
## Document Header
## 1. Introduction and Scope
## 2. Module Decomposition
### 2.x [Module Name] -- Responsibility, Class Diagram, Dependencies
## 3. Interaction Sequences
### 3.x [Workflow Name] Sequence Diagram
## 4. State Machine Models
### 4.x [Entity Name] State Diagram
## 5. Algorithm Specifications
### 5.x [Rule Name] Pseudocode
## 6. Error Handling Design (Taxonomy, Hierarchy, Recovery)
## 7. Data Validation Rules
## 8. Traceability Matrix
## Appendix A: Glossary
DECIMAL(19,4) for monetary values) and parameterized methods.python -m engine diagrams validate with no HIGH finding; every class diagram block carries %% alt: and %% caption:.| Direction | Skill | Relationship |
|---|---|---|
| Upstream | 03-design-documentation/01-high-level-design | Consumes HLD.md component architecture |
| Downstream | 03-design-documentation/03-api-specification | Feeds module interfaces for API contracts |
| Downstream | 03-design-documentation/04-database-design | Feeds entity models for schema design |
| Downstream | Phase 05 Testing | Feeds algorithms and state models for test case generation |
logic.prompt -- executable prompt for automated LLD generation.README.md -- quick-start guide for this skill.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 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-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./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.Other plugins' skills for the same job