diagram-design
# Diagram Design Philosophy
What this skill does
# Diagram Design Philosophy
## Core Principle: Semantic Redesign, Not Mechanical Conversion
**Don't convert diagrams between formats. Redesign them.**
Each diagram platform (Mermaid, PlantUML, Excalidraw) represents a different way of **thinking visually**. When creating multi-platform diagrams, analyze the slide's core concept and design platform-specific diagrams that leverage each tool's unique strengths.
## Platform Comparison
| Platform | Best For | Visual Paradigm | Key Strengths | When to Use |
|----------|----------|-----------------|---------------|-------------|
| **Mermaid** | Flow, process, sequences | Linear, structured | Clean syntax, real-time rendering, developer-friendly | Workflows, pipelines, state machines, API flows |
| **PlantUML** | Architecture, UML, formal models | Hierarchical, relational | Rich UML notation, component boundaries, deployment contexts | System architecture, class relationships, deployment diagrams |
| **Excalidraw** | Sketches, brainstorming, informal | Spatial, freeform | Hand-drawn style, flexible positioning, annotations | Whiteboard sessions, conceptual thinking, informal explanations |
## Design Process
### Step 1: Analyze Slide Semantics
Ask yourself:
- What is the **core concept** of this slide?
- Is it about:
- **Process/Flow?** (A→B→C progression)
- **Structure/Architecture?** (Components and relationships)
- **Concept/Idea?** (Abstract thinking, brainstorming)
- **State/Lifecycle?** (Transitions and conditions)
- **Comparison?** (Side-by-side options)
### Step 2: Match to Platform Strengths
| Slide Semantic | Best Platform | Why |
|----------------|---------------|-----|
| Process/workflow | **Mermaid flowchart** | Directional flow, clear entry/exit |
| API interactions | **Mermaid sequence** | Time-based message passing |
| System architecture | **PlantUML component** | Component boundaries, interfaces |
| Deployment topology | **PlantUML deployment** | Physical node placement |
| Class design | **PlantUML class** | Inheritance, relationships, methods |
| Brainstorming | **Excalidraw sketch** | Informal, flexible, annotatable |
| Conceptual relationships | **Excalidraw spatial** | Proximity, grouping, containers |
### Step 3: Design for Platform (Not Conversion)
**Don't think:** "How do I convert this diagram?"
**Think:**
- **Mermaid:** "What is the flow or sequence here?"
- **PlantUML:** "What are the components and their relationships?"
- **Excalidraw:** "How can I sketch this to make it clearer?"
## Platform-Specific Guidelines
### Mermaid: Flow and Direction
**Visual Thinking:** "How does this move/transform/progress?"
**Design Questions:**
1. What is the entry point and exit point?
2. What are the transformation steps?
3. Are there decision points or branches?
4. Is this better shown as a flowchart, sequence, or state diagram?
**Example:**
For a slide about "Device plugins transform GPUs into schedulable Kubernetes resources":
```mermaid
flowchart LR
GPU[GPU Hardware] -->|Discovery| DP[Device Plugin]
DP -->|Registration| Kubelet
Kubelet -->|Advertising| Scheduler
Scheduler -->|Allocation| Pod
```
**Why Mermaid?** Emphasizes the **flow of information** from hardware through orchestration to workload.
**Leverage Mermaid Features:**
- Subgraphs for logical grouping
- Different arrow types (solid, dotted, thick)
- Node shapes (rectangle, circle, diamond for decisions)
- Labels on edges
- Multiple diagram types (flowchart, sequence, state, class, ER, gantt)
### PlantUML: Structure and Relationships
**Visual Thinking:** "How do these components relate and interact?"
**Design Questions:**
1. What are the architectural components?
2. What are the boundaries (packages, layers, nodes)?
3. What interfaces or contracts exist?
4. Is this better shown as component, deployment, class, or activity diagram?
**Example:**
For the same slide, emphasizing architecture:
```plantuml
@startuml
!theme plain
package "Node" {
component [Device Plugin] as DP
component [Kubelet] as K
database "GPU Hardware" as GPU
}
package "Control Plane" {
component [Scheduler] as S
component [API Server] as API
}
GPU -down-> DP: Discovery
DP -right-> K: gRPC\nRegistration
K -up-> API: Advertise\nResources
API <-down-> S: Resource\nTracking
note right of DP
Implements Device
Plugin API v1beta1
end note
@enduml
```
**Why PlantUML?** Shows **component boundaries**, packages, and formal relationships. Emphasizes architectural structure over flow.
**Leverage PlantUML Features:**
- Packages and namespaces
- Stereotypes (<<service>>, <<database>>)
- Interface definitions
- Notes and annotations
- Deployment nodes and artifacts
- Rich UML notation
### Excalidraw: Spatial and Informal
**Visual Thinking:** "How can I sketch this to make it approachable and clear?"
**Design Questions:**
1. What spatial relationships matter (proximity, containment, separation)?
2. What annotations would add insight?
3. How can informal style make this more approachable?
4. What groupings or containers provide context?
**Example:**
For the same slide, emphasizing spatial/conceptual relationships:
**Visual Layout:**
```
┌──────────────────────────────────────────────────┐
│ Worker Node (hand-drawn container) │
│ │
│ ┌────────────┐ │
│ │ GPU 0 │ ←─────┐ │
│ │ GPU 1 │ │ │
│ └────────────┘ │ │
│ │ │
│ ┌───────────────────┴──────┐ │
│ │ Device Plugin │ │
│ │ "Discovers & exposes" │ │
│ └───────────┬──────────────┘ │
│ │ gRPC │
│ ↓ │
│ ┌────────────────────────┐ │
│ │ Kubelet │ │
│ │ "Advertises capacity" │ │
│ └────────────┬───────────┘ │
└───────────────┼──────────────────────────────────┘
│ HTTPS
↓
┌───────────────┐
│ Scheduler │ ← "Now aware of GPUs!"
│ (Control Plane) │
└───────────────┘
```
**Why Excalidraw?**
- Informal style makes architecture approachable
- Spatial positioning shows "inside node" vs "control plane"
- Annotations add narrative
- Editable for workshop/collaboration
**Leverage Excalidraw Features:**
- Hand-drawn aesthetic (automatic)
- Flexible positioning (pixel-perfect placement)
- Grouping and containers
- Arrows with label attachment
- Color-coded regions
- Free-form annotations
## Best Practices
### 1. Start with Slide Semantics
Always ask: "What is this slide trying to convey?" before choosing platform.
### 2. One Platform Primary
Choose the platform that best fits the slide's core concept. Embed that one inline in Slidev.
### 3. Others are Optional
Generate other platforms only if they add value or user requests multi-platform export.
### 4. Redesign, Don't Convert
Each platform should get a diagram designed for its strengths, not mechanically converted.
### 5. Leverage Platform Features
- **Mermaid:** Use appropriate diagram type (flowchart vs sequence vs state)
- **PlantUML:** Use stereotypes, packages, proper UML notation
- **Excalidraw:** Use spatial positioning, annotations, grouping
### 6. Keep It Simple
All platforms benefit from cognitive load limits (≤6-7 elements per diagram).
## Multi-Platform Workflow
When creating diagrams for multiple platforms:
**Option 1: Single Platform**
- Analyze slide semantics
- Choose best-fit platform
- Design diagram leveraging platform strengths
- Embed inline (Mermaid) or reference image
**Option 2: All Platforms (Semantic Redesign)**
- Analyze slide semantics once
- Design **three different diagrams** - each Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.