Skip to content
Back to skills

Creating Diagrams

ASecurity

This skill should be used when the user asks to "create a diagram", "draw a flowchart", "visualize the architecture", "show me how X works", "add a diagram to the docs", "create an ASCII diagram", "make a Mermaid chart", or needs visual representation of systems, workflows, data flows, or comparisons. Supports both ASCII (for AI-maintained docs, terminals, code comments) and Mermaid (for rendered markdown).

  • 666 stars
  • 0 votes
  • 0 copies
  • 17 views
  • Added February 8, 2026
documentationgobashreactnodegitfrontend

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill creating-diagrams --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Creating Diagrams?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Creating Diagrams
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-creating-diagrams/badge)](https://www.skillsdirectory.com/skills/majiayu000-creating-diagrams)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: creating-diagrams
description: This skill should be used when the user asks to "create a diagram", "draw a flowchart", "visualize the architecture", "show me how X works", "add a diagram to the docs", "create an ASCII diagram", "make a Mermaid chart", or needs visual representation of systems, workflows, data flows, or comparisons. Supports both ASCII (for AI-maintained docs, terminals, code comments) and Mermaid (for rendered markdown).
---

# Creating Diagrams

## Use Cases

Architecture docs, workflows, data flows, comparisons, file trees, sequence diagrams, state machines.

## Operations

### Format Selection

| Format      | Best For                                                 | Renders In         |
| ----------- | -------------------------------------------------------- | ------------------ |
| __ASCII__   | AI-maintained docs, terminals, code comments, git diffs  | Everywhere         |
| __Mermaid__ | Complex auto-layout, dependency trees, sequence diagrams | Markdown renderers |
| __Tables__  | Comparisons, feature matrices                            | Markdown           |

__Key tradeoffs:__

* ASCII: works everywhere, clear git diffs, but manual layout is tedious
* Mermaid: auto-layout, parseable (`@mermaid-js/parser`), but requires renderer

### Creating ASCII Diagrams

Reference `references/ascii-patterns.md` for: box diagrams, flows, file trees, decision branches, sequence diagrams, layered architecture.

### Creating Mermaid Diagrams

Reference `references/mermaid-syntax.md` for: flowcharts, sequence diagrams, state diagrams, class diagrams, Gantt charts.

### Adding Mermaid Live Links

Add one-click preview URLs above mermaid code blocks.

```bash
# Pipe diagram to script (run from project with pako installed)
echo 'sequenceDiagram
    A->>B: Hello' | node scripts/mermaid-url.js
```

Add URL on line before code fence for one-click preview.

## CRITICAL

### Right Edge Alignment

__All lines in a boxed diagram must end at the same column.__ Ragged right edges look broken.

__Technique:__

1. Decide width first (e.g., 60 chars)
2. Pad with spaces to hit that width
3. Avoid deep nesting - prefer flat layouts
4. Count characters when unsure

```
WRONG (ragged right edges):
┌───────────────────────────┐
│  Frontend                 │
│  ┌──────┐   ┌───────┐    │
│  │ React│   │ Redux │    │
│  └──────┘   └───────┘│
└───────────────────────────┘
     ↑ inner boxes don't reach right edge

RIGHT (all lines end at same column):
┌──────────────────────────────┐
│  Frontend                    │
│  ┌──────────┐   ┌──────────┐ │
│  │  React   │   │  Redux   │ │
│  └──────────┘   └──────────┘ │
└──────────────────────────────┘
```

## Notes

* Keep within 80-100 columns for terminal compatibility
* Label every box and arrow
* Prefer clarity over detail
* Follow logical flow: left-to-right or top-to-bottom

## Appendix

### Sources

Synthesized from:

* [ascii-visualizer](https://github.com/ArieGoldkin/devPrepAi/tree/main/.claude/skills/ascii-visualizer) by ArieGoldkin
* [Art](https://github.com/vdemeester/home/tree/main/dots/.config/claude/skills/Art) by vdemeester

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.