Install
openclaw skills install software-architecture-designProduces a complete software architecture design document following a 12-phase SOP. Supports web backend, mobile, ML/AI, data pipeline, embedded/IoT. Generates Mermaid and PlantUML diagrams. Use when asked to do architecture design, system design, technical design, or says: 做架构设计 系统设计 技术方案 架构文档.
openclaw skills install software-architecture-designBefore starting the 12 phases, identify the architecture type and load the matching specialization:
| Type | Trigger keywords | Specialization file |
|---|---|---|
| Web / API backend | API, 后端, 服务端, REST, 微服务, SaaS | {baseDir}/specializations/web-backend.md |
| ML / AI system | 模型, 推理, 训练, 算法平台, AI, LLM | {baseDir}/specializations/ml-system.md |
| Data pipeline | ETL, 数据仓库, 数据湖, Kafka, Spark | {baseDir}/specializations/data-pipeline.md |
| Embedded / IoT | 嵌入式, 固件, MCU, RTOS, 硬件, CAN | {baseDir}/specializations/embedded.md |
| Mobile app | iOS, Android, Flutter, React Native | {baseDir}/specializations/mobile.md |
| General / Mixed | (none of the above match clearly) | Use base SOP only |
Read the matched specialization file for domain-specific guidance on Phases 3, 6, 7, 9.
{baseDir}/reference.md).Input: Requirements doc, RFP, PRD, user stories, or verbal description.
/v1/) or header-based.Address all four areas:
| Area | Required content |
|---|---|
| High Availability | Per failure scenario: what breaks, recovery action, RTO target |
| Performance | Each NFR target + specific implementation strategy to achieve it |
| Security | Auth/authz model, data isolation, secrets management, audit logging |
| Observability | MVP-phase monitoring (health endpoints, key logs) → full metrics plan |
Risk table: description / probability (H/M/L) / impact (H/M/L) / mitigation strategy.
Must include at least one risk from each category:
For every diagram, produce Mermaid code (preferred) or PlantUML code. See {baseDir}/reference.md for templates and when to use which tool.
| Phase | Diagram | Tool |
|---|---|---|
| 2 | System Context | Mermaid C4 or PlantUML C4 |
| 3 | Layer Architecture | PlantUML component or Mermaid graph |
| 4 | Module Dependencies | Mermaid graph TD |
| 5 | Sequence / Flow | Mermaid sequenceDiagram / flowchart |
| 5 | State Machine | Mermaid stateDiagram-v2 |
| 6 | ER Diagram | Mermaid erDiagram |
| 9 | Deployment Topology | PlantUML deployment |
| 9 | CI/CD Pipeline | Mermaid flowchart LR |
Follow the document chapter structure in {baseDir}/template.md.
After all 12 phases, self-check against the phase-by-phase checklist in {baseDir}/reference.md.