This skill should be used when the user asks to "create diagrams", "generate Mermaid", "visualize architecture", "diagram flows", "draw a sequence diagram", "create a C4 diagram", "add visual diagrams", or mentions diagramming, visualization, flowcharts, sequence diagrams, Mermaid syntax, architecture diagrams, or visual documentation. Use this skill to embed precise, syntactically valid Mermaid diagrams in any discovery deliverable. [EXPLICIT]
From jm-adknpx claudepluginhub javimontano/jm-adk-alfaThis skill is limited to using the following tools:
agents/guardian.mdagents/lead.mdagents/specialist.mdagents/support.mdevals/evals.jsonknowledge/body-of-knowledge.mdknowledge/knowledge-graph.mdprompts/meta.mdprompts/primary.mdprompts/variations/deep.mdprompts/variations/quick.mdreferences/mermaid-patterns.mdtemplates/output.docx.mdtemplates/output.htmlGenerates syntactically valid, semantically precise Mermaid diagrams for discovery deliverables. Every diagram earns its place — no decorative visuals. Each diagram must compress complexity into clarity, replacing paragraphs of prose with a single visual that a reader grasps in seconds. [EXPLICIT]
Un diagrama que no comprime complejidad en claridad no merece existir. Cada diagrama Mermaid debe reemplazar párrafos de prosa con una visual que el lector comprende en segundos. Decoración ≠ documentación — solo diagramas que ganan su lugar sobreviven.
| Argument | Required | Description |
|---|---|---|
$CONTEXT | Yes | Source material: deliverable content, code analysis, or structured data to visualize |
$DIAGRAM_TYPE | No | Specific type requested (auto-selected if omitted based on content) |
$AUDIENCE | No | Target reader: executive (simplified), technical (detailed), operational (actionable) |
Parameters:
{MODO}: piloto-auto (default) | desatendido | supervisado | paso-a-paso
{FORMATO}: markdown (default, fenced code blocks) | html (pre class="mermaid") | dual{VARIANTE}: ejecutiva (simplified, ≤10 nodes) | técnica (full detail, default)Analyze the content and select the optimal diagram type:
| Content Pattern | Diagram Type | Mermaid Syntax |
|---|---|---|
| System components + relationships | C4 Context/Container | C4Context / C4Container |
| Sequential process steps | Flowchart | flowchart TD/LR |
| Actor interactions over time | Sequence Diagram | sequenceDiagram |
| Entity relationships | Entity Relationship | erDiagram |
| State transitions | State Diagram | stateDiagram-v2 |
| Project timeline / phases | Gantt Chart | gantt |
| Hierarchical decomposition | Mindmap | mindmap |
| 2-axis positioning (e.g., risk vs impact) | Quadrant Chart | quadrantChart |
| Class/module structure | Class Diagram | classDiagram |
| Git/decision branching | Gitgraph | gitGraph |
| User journey steps | User Journey | journey |
| Data flow / pipeline | Flowchart with subgraphs | flowchart LR + subgraph |
Selection criteria: Choose the type that maximizes information density while minimizing cognitive load. [EXPLICIT]
authService not A1). Wrap display labels in quotes if they contain spaces. [EXPLICIT]TD (top-down) for hierarchies, LR (left-right) for flows/sequences. [EXPLICIT]classDef for semantic coloring (e.g., classDef critical fill:#f96,stroke:#333). Max 4 style classes per diagram. [EXPLICIT]Each discovery deliverable has recommended diagram types:
| Deliverable | Primary Diagram | Secondary Diagram |
|---|---|---|
| 01_Stakeholder_Map | Quadrant (influence × interest) | Mindmap (org structure) |
| 02_Brief_Tecnico | Mindmap (stack overview) | Quadrant (health semaphore) |
| 03_Analisis_AS-IS | C4 Context + Container | Class (module dependencies) |
| 04_Mapeo_Flujos | Sequence (E2E flows) | Flowchart (integration map) |
| 05_Escenarios | Flowchart (decision tree) | Quadrant (score positioning) |
| 06_Solution_Roadmap | Gantt (phase timeline) | Flowchart (pivot decision tree) |
| 07_Spec_Funcional | Flowchart (use case flows) | ER (data model) |
| 08_Pitch_Ejecutivo | Mindmap (value pillars) | Gantt (investment timeline) |
| 09_Handover | Flowchart (governance flow) | Gantt (90-day plan) |
Minimum: 1 diagram per deliverable. Recommended: 2. Maximum: 4 (avoid visual overload). [EXPLICIT]
Every diagram passes through validation:
| Criterion | Check |
|---|---|
| Syntax | Renders without errors in Mermaid Live Editor |
| Semantics | Accurately represents the source data |
| Readability | Understandable in <10 seconds for target audience |
| Information density | Conveys info that would take ≥3 sentences in prose |
| Consistency | Uses same terminology as the surrounding document |
| Cross-reference | Node names match entity names used elsewhere in the deliverable |
In Markdown deliverables (default):
> **Figure N**: [1-line description for accessibility]
```mermaid
[diagram code]
```
*Source: [CÓDIGO] / [DOC] / [INFERENCIA]*
In HTML deliverables (on demand):
Embed Mermaid via <pre class="mermaid"> tag with Mermaid JS CDN include. Add alt attribute with text description. [EXPLICIT]
| Decision | Enables | Constrains | When to Use |
|---|---|---|---|
| Max 20 nodes | Readability, quick comprehension | Cannot show full system in one view | Always — split complex diagrams |
| Max 4 style classes | Visual clarity | Limited visual differentiation | Always — more colors = more cognitive load |
| Descriptive IDs | Source readability, self-documenting | Longer Mermaid code | Always — readability > brevity |
| Text summary before diagram | Accessibility, fallback rendering | Minor overhead per diagram | Always — non-negotiable for accessibility |
| C4 extension usage | Rich architecture notation | Limited renderer support | When architecture visualization is primary |
Before delivering any diagram:
| Format | Default | Description |
|---|---|---|
markdown | ✅ | Rich Markdown + Mermaid diagrams. Token-efficient. |
html | On demand | Branded HTML (Design System). Visual impact. |
dual | On demand | Both formats. |
Default output is Markdown with embedded Mermaid diagrams. HTML generation requires explicit {FORMATO}=html parameter. [EXPLICIT]
Primary: Mermaid diagram code blocks ready to embed in Markdown or HTML deliverables. Each diagram includes accessibility text summary, source evidence tag, and figure numbering.
Supported diagram types: C4Context, C4Container, flowchart, sequenceDiagram, erDiagram, stateDiagram-v2, gantt, mindmap, quadrantChart, classDiagram, gitGraph, journey.
Author: Javier Montaño | Last updated: 2026-03-12
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.