Skill 详情
033-architecture-diagrams
Supports architecture diagrams, but is scoped to validated Java projects and an interactive workflow.
使用前先检查
自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。
SKILL.md
这段内容是审核时保存的快照。外部来源才是完整且最新的版本。
--- name: 033-architecture-diagrams description: Use when you need to generate Java project diagrams — including UML sequence diagrams, UML class diagrams, C4 model diagrams, UML state machine diagrams, UML Deployment Diagrams, ER (Entity Relationship) diagrams, and bounded-context diagrams — through a modular, step-based interactive process that adapts to your specific visualization needs. This should trigger for requests such as Generate UML diagram; Create sequence diagram; Create class diagram; Create state machine diagram; Create deployment diagram; Create C4 diagram; Create bounded-context diagram; Create context-map diagram. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.18.0 --- # Java Diagrams Generator with modular step-based configuration Generate comprehensive Java project diagrams through a modular, step-based interactive process that covers UML sequence diagrams, UML class diagrams, C4 model diagrams, UML state machine diagrams, UML Deployment Diagrams, ER (Entity Relationship) diagrams, and bounded-context diagrams using PlantUML syntax. **This is an interactive SKILL**. **What is covered in this Skill?** - UML sequence diagram generation for application workflows and API interactions - UML class diagram generation for package structure and class relationships - C4 model diagram generation for Context, Container, and Component diagrams - UML state machine diagram generation for entity lifecycles and business workflows - UML Deployment Diagram generation for runtime topology, nodes, execution environments, deployed components, data stores, queues, external systems, and communication paths - ER diagram generation from SQL schema (DDL, migrations) using PlantUML Chen notation - Bounded-context diagram generation for DDD context maps across one or more repositories - PlantUML syntax for all diagram types - File organization strategies: single-file, separate-files, or integrated with existing documentation - Final diagram validation with PlantUML syntax checking - PlantUML validation and PNG/SVG rendering with a trusted local PlantUML installation or repository-approved wrapper ## Constraints Before applying any diagram generation, ensure the project validates. If validation fails, stop immediately — do not proceed until all validation errors are resolved. - **MANDATORY**: Run `./mvnw validate` or `mvn validate` before applying any diagram generation - **SAFETY**: If validation fails, stop immediately — do not proceed until all validation errors are resolved - **BEFORE READING DIAGRAM REFERENCES**: Run the question flow embedded in this SKILL.md first. Ask the diagram preference questions one by one, collect selected diagram families and output preferences, then read only the implementation references selected by the user's answers - **C4 SCOPE**: C4 diagrams are restricted to Context, Container, and Component diagrams - **SUPPLY CHAIN**: Generated PlantUML diagrams must use trusted local includes only; do not use remote `!include` URLs for C4 or icon libraries - **TOOLING SAFETY**: Use only trusted local PlantUML tooling or a repository-approved wrapper; do not pull or run remote container images as part of this skill ## When to use this skill - Generate UML diagram - Create sequence diagram - Create class diagram - Create state machine diagram - Create deployment diagram - Create C4 diagram - Generate ER diagram - Create bounded-context diagram - Create context-map diagram ## Workflow 1. **Validate project state** Run `./mvnw validate` or `mvn validate` before applying any diagram generation. Step constraints: - If validation fails, stop and ask to resolve errors first 2. **Ask diagram assessment questions before reading references** Run this XML-included question flow before reading any diagram-family implementation reference. Ask questions one-by-one in strict order, wait for the user's answer to each question, and record selected diagram famili在 GitHub 阅读完整来源 (打开外部页面)