/sdlc-documentation:06-infrastructure-designfrom sdlc-documentation
Designs infrastructure topology, capacity, observability, continuity and operating ownership when a scored gate shows needs beyond the HLD. Produces traceable Infrastructure Design artefacts with verified acceptance conditions.
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 |
|---|---|---|---|
| HLD, workloads and quality targets | Architecture and requirements artefacts | Required | Stop if availability, recovery or capacity targets are undefined. |
| Environment, security, cost and operating constraints | Platform, security, finance and operations owners | Required | Produce options and gaps when provider facts or budgets are unavailable. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| Infrastructure Design and decision-gate evidence | Platform, security, delivery and operations teams | Topology traces to measured targets; failure domains, capacity, observability, backup, recovery, cost and ownership have verification methods. |
| 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 Infrastructure Design and decision-gate evidence 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 |
|---|---|---|
| Score gate meets infrastructure threshold | Produce the full design | Complex needs receive operational depth |
| Score gate is below threshold | Keep deployment notes in HLD | Unneeded platform complexity is avoided |
This is the sixth skill in Phase 03 (Design Documentation). It produces an Infrastructure Design document covering scalability, caching, messaging, load balancing, database scaling, reliability patterns, monitoring, and disaster recovery. The skill is optional and gated by a score-based evaluation that determines whether the project's non-functional requirements warrant a dedicated infrastructure document. When the gate score falls below the threshold, infrastructure concerns shall be noted in HLD.md instead.
01-high-level-design completes and projects/<ProjectName>/<phase>/<document>/HLD.md exists.projects/<ProjectName>/<phase>/<document>/SRS_Draft.md contains non-functional requirements with measurable availability, scalability, or performance targets.projects/<ProjectName>/_context/tech_stack.md specifies cloud or distributed deployment targets.projects/<ProjectName>/_context/quality_standards.md defines SLA or compliance constraints.| Attribute | Value |
|---|---|
| Inputs | projects/<ProjectName>/<phase>/<document>/HLD.md, projects/<ProjectName>/<phase>/<document>/SRS_Draft.md, projects/<ProjectName>/_context/tech_stack.md; optionally projects/<ProjectName>/_context/quality_standards.md |
| Output | projects/<ProjectName>/<phase>/<document>/Infrastructure_Design.md |
| Tone | Technical, precise, infrastructure-focused |
| Standards | IEEE 1016-2009, ISO/IEC 25010, ISO/IEC 22237 |
| Sources | "System Design - The Big Archive" (ByteByteGo 2024) |
| File | Location | Required | Purpose |
|---|---|---|---|
| HLD.md | projects/<ProjectName>/<phase>/<document>/HLD.md | Yes | Architectural style, component boundaries, deployment topology |
| SRS_Draft.md | projects/<ProjectName>/<phase>/<document>/SRS_Draft.md | Yes | Non-functional requirements, constraints, performance targets |
| tech_stack.md | projects/<ProjectName>/_context/tech_stack.md | Yes | Infrastructure targets, cloud provider, runtime environment |
| quality_standards.md | projects/<ProjectName>/_context/quality_standards.md | No | SLA definitions, compliance constraints, uptime targets |
| File | Location | Description |
|---|---|---|
| Infrastructure_Design.md | projects/<ProjectName>/<phase>/<document>/Infrastructure_Design.md | Complete infrastructure design with scalability, reliability, caching, monitoring, and DR sections |
Follow these steps in order. Halt and notify the user if a required input file is missing.
Before generating the document, evaluate six criteria against the input files to determine whether a full infrastructure design is warranted.
| # | Criterion | Weight | Auto-Assessment Source |
|---|---|---|---|
| 1 | Expected concurrent users > 1,000 | 3 | SRS_Draft.md Section 3.5 (Performance Requirements) or quality_standards.md |
| 2 | 99.9%+ uptime requirement | 3 | SRS_Draft.md Section 3.5 or quality_standards.md SLA definitions |
| 3 | Geographic distribution needed | 2 | SRS_Draft.md Section 3.4 (Design Constraints) or tech_stack.md multi-region references |
| 4 | Real-time processing requirements | 2 | SRS_Draft.md Section 3.2 (Functional Requirements) -- WebSocket, streaming, sub-second latency |
| 5 | Data volume > 100 GB | 2 | SRS_Draft.md Section 3.5 or database sizing references in tech_stack.md |
| 6 | Regulatory data residency requirements | 2 | SRS_Draft.md Section 3.5.3 (Security) or quality_standards.md compliance section |
$$Score = \sum_{i=1}^{6} (Weight_i \times YesFlag_i)$$
Where $YesFlag_i = 1$ if the criterion is met, $0$ otherwise.
Maximum possible score: 14 (all criteria met) Minimum possible score: 0 (no criteria met)
| Score Range | Decision | Action |
|---|---|---|
| 7--14 | Full Document Recommended | Proceed with all infrastructure design sections. |
| 4--6 | Document Optional | Present score and rationale to user. Await confirmation before proceeding. |
| 0--3 | Document Not Recommended | Skip generation. Append a brief infrastructure summary to HLD.md Section 8 (Cross-Cutting Concerns). |
Tag all auto-assessed criteria with [AUTO-ASSESSED] and present to the user for confirmation before calculating the final score.
HLD.md.Read HLD.md and SRS_Draft.md from projects/<ProjectName>/<phase>/<document>/. Read tech_stack.md from projects/<ProjectName>/_context/. Optionally read quality_standards.md from projects/<ProjectName>/_context/. Log the absolute path of each file read. If any required file is missing, halt execution and report the gap.
Analyze the SRS performance requirements and HLD deployment topology to determine the scalability approach.
The system shall document:
references/scalability-patterns.md.The system shall define a multi-layer caching strategy aligned with the data flow paths in HLD.md.
Document each cache layer:
| Layer | Technology | TTL | Invalidation | Purpose |
|---|---|---|---|---|
| Browser | HTTP Cache-Control headers | Varies | Versioned URLs | Static asset caching |
| CDN | CloudFront / Cloudflare / Akamai | 1-24 hrs | Purge API | Geographic distribution |
| Reverse Proxy | Varnish / Nginx | 1-60 min | Event-driven | Full-page or fragment caching |
| Application | Redis / Memcached | 5-30 min | Write-through or write-behind | Session, query result, computed value caching |
| Database | Query cache / materialized views | Varies | Refresh on write | Expensive query optimization |
The system shall specify:
references/caching-strategies.mdThe system shall define asynchronous processing patterns for decoupled communication.
Document:
references/distributed-systems.mdThe system shall define load balancing configuration for each entry point identified in HLD.md.
Document:
The system shall define database scaling strategy aligned with data models from 04-database-design.
Document:
references/scalability-patterns.mdThe system shall define fault tolerance and resilience patterns per ISO 25010 reliability characteristics.
Document each pattern with configuration parameters:
references/reliability-patterns.mdThe system shall define a comprehensive observability strategy covering metrics, logging, tracing, and alerting.
timestamp, level, service, correlation_id, message, context.| Severity | Response Time | Example | Escalation |
|---|---|---|---|
| P1 - Critical | 15 min | Service down, data loss risk | On-call page, incident commander |
| P2 - High | 1 hour | Degraded performance, partial outage | On-call notification |
| P3 - Medium | 4 hours | Elevated error rate, capacity warning | Team channel alert |
| P4 - Low | Next business day | Non-critical anomaly | Dashboard review |
Reference references/monitoring-observability.md
The system shall define disaster recovery targets and procedures aligned with SRS availability requirements.
Document:
Produce a traceability table linking every infrastructure design decision to its originating SRS requirement and HLD component:
| Infrastructure Component | SRS Requirement | HLD Component | Rationale |
Every section from Steps 2-9 shall have at least one entry in this table.
The generated Infrastructure_Design.md shall contain these sections in order:
| Pitfall | Remedy |
|---|---|
| Scaling strategy without measurable triggers | Every auto-scaling rule shall reference a specific metric threshold |
| Cache invalidation not defined | Every cache layer shall specify its invalidation mechanism |
| Missing dead letter queue configuration | Every message queue shall define DLQ handling and retry limits |
| Reliability patterns without configuration values | Circuit breakers, retries, and timeouts shall include specific numeric parameters |
| Monitoring without alerting thresholds | Every metric shall map to at least one alert severity level |
| DR targets without testing schedule | RPO/RTO targets shall include validation frequency |
Infrastructure_Design.md exists in projects/<ProjectName>/<phase>/<document>/ with all sections populated (if gate passed).| Direction | Skill | Relationship |
|---|---|---|
| Upstream | 01-high-level-design | Consumes HLD.md for architecture and deployment topology |
| Upstream | Phase 02 (Requirements Engineering) | Consumes SRS_Draft.md for non-functional requirements |
| Peer | 04-database-design | Aligns database scaling with data model design |
| Downstream | Phase 05 (Testing) | Infrastructure design informs performance and reliability test plans |
| Downstream | Phase 06 (Deployment & Operations) | DR and monitoring sections feed deployment runbooks |
references/scalability-patterns.md -- Horizontal/vertical scaling, auto-scaling policies, database scaling patternsreferences/distributed-systems.md -- CAP theorem, consistency models, event-driven architecture, message queue patternsreferences/reliability-patterns.md -- Circuit breaker, retry, bulkhead, timeout, health check, graceful degradationreferences/caching-strategies.md -- Cache-aside, read/write-through, multi-layer caching, invalidation strategiesreferences/monitoring-observability.md -- RED/USE methods, structured logging, distributed tracing, alerting practicesREADME.md -- Quick-start guide for this skillREADME.md (opens in a new tab)references/caching-strategies.md (opens in a new tab)references/distributed-systems.md (opens in a new tab)references/monitoring-observability.md (opens in a new tab)references/reliability-patterns.md (opens in a new tab)references/scalability-patterns.md (opens in a new tab)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