Loading...
Loading...
Use when content needs a diagram or visual — auto-detects content shape, picks the best format per the active-selection rule, and renders it.
npx skill4agent add camacho/ai-skills visualizeai-workspace/rules/visualizations.md/visualize # visualize the last discussed concept
/visualize <topic or file> # visualize specific content
/visualize --format mermaid <topic> # force a specific format| Content shape | Signal | Format |
|---|---|---|
| Graph with nodes + edges | architecture, dependencies, flow between components | Mermaid |
| Sequence / interaction | request flow, API calls, multi-step protocol | Mermaid |
| State transitions | modes, lifecycle, status changes | Mermaid |
| Comparison (3+ items) | options, tradeoffs, feature matrix | Markdown table |
| Hierarchy / tree | file structure, org chart, simple nesting | ASCII art |
| Contrast (2 items) | before/after, good/bad, do/don't | Inline pairs |
| Entity relationships | data model, schema | Mermaid |
.mdmermaidnode --import tsx scripts/render-mermaid.ts --input <mermaid-file> --output <png-path> --width 2400 --height 1800--format| Condition | Behavior |
|---|---|
| Content shape ambiguous | Ask: "This could be a [X] or [Y] — which fits better?" |
| Mermaid syntax error | Show the error, offer to fix |
| mmdc not available | Fall back to fenced Mermaid block (renders on GitHub/web) |
scripts/render-mermaid.ts