一键导入
architecture-diagram
Generate architecture diagram with component relationship details from project analysis
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate architecture diagram with component relationship details from project analysis
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate API and service communication contracts with sequence diagram
Run application assessment for a single repository
Generate core business workflow documentation with sequence diagram
Generate comprehensive configuration and externalized settings inventory
Create a modernization plan to migrate the project to Azure
Generate task DAGs for modernization projects — select fragments from task catalog, produce initial DAG (Stage 1), and execute/validate DAG from plan artifacts (Stage 2).
| name | architecture-diagram |
| description | Generate architecture diagram with component relationship details from project analysis |
This skill generates a two-layer architecture visualization: a high-level application architecture diagram and a detailed component relationship diagram. Produce both in a single pass and save to .github/modernize/assessment/engines/facts/architecture-diagram.md.
workspace-path (optional): Path to the project to analyze (defaults to current directory)Analyze the project and produce the complete ## Application Architecture section in one pass:
Analysis:
Diagram — Mermaid flowchart TD:
subgraph for grouping)Do NOT include: individual classes/methods or migration directions.
Example:
flowchart TD
subgraph Client["Client Layer"]
Browser["Web Browser"]
end
subgraph App["Application Layer - Spring Boot 2.7"]
Web["Spring MVC + Thymeleaf"]
Security["Spring Security"]
Service["Business Services"]
end
subgraph Data["Data Layer"]
JPA["Spring Data JPA"]
DB[("PostgreSQL 14")]
Cache[("Redis")]
end
subgraph External["External Services"]
SMTP["SMTP Email Service"]
S3["AWS S3 Storage"]
end
Browser -->|"HTTP requests"| Web
Web --> Security -->|"authorized"| Service
Service -->|"CRUD operations"| JPA
JPA -->|"SQL queries"| DB
Service -->|"session cache"| Cache
Service -->|"send email"| SMTP
Service -->|"file upload"| S3
Textual explanations (write immediately after the diagram):
Analyze component interactions and produce the complete ## Component Relationships section in one pass:
Analysis:
Diagram — Mermaid flowchart LR:
subgraph (Presentation, Business Logic, Data Access, Infrastructure)Do NOT include: method signatures, private helpers, or external dependencies (covered by dependency-map skill).
Example:
flowchart LR
subgraph Presentation
UserCtrl["UserController"]
OrderCtrl["OrderController"]
end
subgraph Business["Business Logic"]
UserSvc["UserService"]
OrderSvc["OrderService"]
NotifSvc["NotificationService"]
end
subgraph DataAccess["Data Access"]
UserRepo["UserRepository"]
OrderRepo["OrderRepository"]
end
subgraph Infra["Infrastructure"]
AuthFilter["AuthenticationFilter"]
LogMiddleware["LoggingMiddleware"]
end
UserCtrl -->|"delegates"| UserSvc
OrderCtrl -->|"delegates"| OrderSvc
OrderSvc -->|"lookups"| UserSvc
OrderSvc -->|"triggers"| NotifSvc
UserSvc -->|"queries"| UserRepo
OrderSvc -->|"queries"| OrderRepo
AuthFilter -.->|"intercepts"| UserCtrl
AuthFilter -.->|"intercepts"| OrderCtrl
LogMiddleware -.->|"wraps"| Presentation
Textual explanation (write immediately after the diagram):
Save the combined output to .github/modernize/assessment/engines/facts/architecture-diagram.md with this exact structure:
# Architecture Diagram
A brief introduction (1-2 sentences).
## Application Architecture
< Layer 1 Mermaid flowchart TD here >
### Technology Stack Summary
[Table: Layer | Technology | Version | Purpose]
### Data Storage & External Services
[Short paragraph on databases, caches, external APIs]
### Key Architectural Decisions
[1-3 bullet points on notable patterns]
## Component Relationships
< Layer 2 Mermaid flowchart LR here >
### Component Inventory
[Table: Component | Layer | Type | Responsibility]
com.example.orders as one node instead of listing every class)The diagram must parse cleanly under Mermaid >= 9.x (the version used by GitHub, VS Code, Obsidian, and every modern renderer). Anything outside the legal subset crashes the entire diagram with Syntax error in text, not just the offending line.
flowchart TD for Layer 1 and flowchart LR for Layer 2@, #, $, %, &) in node labels — use plain text-->|"label"|subgraph for grouping, with a display name in quotes if it contains spaces\n for line breaks inside node labels. The literal \n escape was removed in modern Mermaid and is the #1 cause of "Syntax error in text" — every node containing \n will fail to render.<br/> instead for an explicit line break: Node["First line<br/>Second line"].MediaLib["Media Library\n(MediaScannerService\nMediaFileService)"]MediaLib["Media Library<br/>MediaScannerService<br/>MediaFileService"]MediaLib["Media Library"] (and list the sub-components in the inventory table)\n — if found, replace each with <br/> (or remove). Zero \n must remain.subgraph is closed by end.> ERROR: Unsupported project type. This skill supports Java, .NET, JavaScript, and TypeScript projects only.> ERROR: No recognized source files found at {workspace-path}. Verify the path is correct.Note["Some components could not be identified"].github/modernize/assessment/engines/facts/architecture-diagram.md