xiaohongshu
xiaohongshu
generating-architecture-diagrams
Generate C4 architecture diagrams from subsystem catalogs - codifies abstraction strategies, notation conventions, and selection criteria
Full skill instructions
Generate C4 architecture diagrams (Context, Container, Component levels) from subsystem catalogs, producing readable visualizations that communicate architecture without overwhelming readers.
02-subsystem-catalog.md03-diagrams.mdReadable diagrams communicate architecture. Overwhelming diagrams obscure it.
Your goal: Help readers understand the system, not document every detail.
When writing to 03-diagrams.md, include:
Required sections:
For each diagram:
Purpose: System boundary and external interactions
Show:
Don't show:
Example scope: "User Data Platform and its external dependencies"
Purpose: Major subsystems and their relationships
Show:
Abstraction strategies:
Don't show:
Example scope: "15 plugins organized into 6 domain categories"
Purpose: Internal architecture of selected subsystems
Selection criteria (choose 2-3 subsystems that):
Show:
Document selection rationale:
**Selection Rationale**:
- Plugin A: Largest (13 skills), shows router pattern
- Plugin B: Different organization (platform-based vs algorithm-based)
- Plugin C: Process orchestration (vs knowledge routing)
**Why Not Others**: 8 plugins follow similar pattern to A (redundant)
When facing many subsystems (10+):
Look for existing structure:
Example:
subgraph "AI/ML Domain"
YzmirRouter[Router: 1 skill]
YzmirRL[Deep RL: 13 skills]
YzmirLLM[LLM: 8 skills]
end
Benefit: Aligns with how users think about the system
Add context without detail:
Benefit: Conveys scale without visual clutter
For Component diagrams, sample ~20%:
Benefit: Readers see architectural variety without information overload
Use different line styles for different semantics:
-->) - Data dependencies, function calls, HTTP requests-.->) - Routing relationships, optional dependencies, logical groupingExample:
Router -.->|"Routes to"| SpecializedSkill # Logical routing
Gateway -->|"Calls"| AuthService # Data flow
Use color to create visual hierarchy:
Document in legend: Explain what colors mean
Add metadata in labels:
AuthService[Authentication Service<br/>Python<br/>342 lines]
Inferred components (reasonable):
Missing dependencies (don't guess):
Catalog says "Patterns Observed: Circuit breaker"
Reasonable: Add circuit breaker component to diagram (it's architectural)
Document: "Circuit breaker shown based on pattern observation (not explicit component)"
After diagrams, include:
## Assumptions and Limitations
### Assumptions
1. **Component X**: Inferred from Y references in catalog
2. **Protocol**: Assumed HTTP/REST based on API Gateway pattern
3. **Grouping**: Used faction categories from metadata
### Limitations
1. **Incomplete Catalog**: Only 5/10 subsystems documented
2. **Missing Details**: Database schema not available
3. **Deployment**: Scaling/replication not shown
### Diagram Constraints
- **Format**: Mermaid syntax (may not render in all viewers)
- **Abstraction**: Component diagrams for 3/15 subsystems only
- **Trade-offs**: Visual clarity prioritized over completeness
### Confidence Levels
- **High**: Subsystems A, B, C (well-documented)
- **Medium**: Subsystem D (some gaps in dependencies)
- **Low**: Subsystem E (minimal catalog entry)
Default to Mermaid unless task specifies otherwise.
Mermaid advantages:
PlantUML when requested:
@startuml
!include <C4/C4_Context>
Person(user, "User")
System(platform, "Platform")
Rel(user, platform, "Uses")
@enduml
You succeeded when:
You failed when:
✅ Faction-based grouping - Reduce visual complexity (15 → 6 groups) ✅ Metadata enrichment - Skill counts, line counts convey scale ✅ Strategic sampling - 20% Component diagrams showing diversity ✅ Clear rationale - Document why you chose these examples ✅ Notation for relationships - Dotted (routing) vs solid (data) ✅ Color hierarchy - Visual grouping by domain ✅ Trade-off documentation - Explicit "what's visible vs abstracted"
Router pattern visualization:
Layered architecture:
Microservices:
This skill is typically invoked as:
Your role: Translate catalog into readable visual architecture using abstraction and selection strategies.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience