Skip to content
Back to skills

Diagram

ASecurity

Create and validate Mermaid diagrams. Use when creating, editing, or reviewing Mermaid diagrams in markdown files.

  • 18 stars
  • 0 votes
  • 0 copies
  • 20 views
  • Added February 7, 2026
documentationbashnodeapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add bendrucker/claude --skill diagram --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diagram?

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

Security grade badge for Diagram
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bendrucker-diagram/badge)](https://www.skillsdirectory.com/skills/bendrucker-diagram)

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: mermaid
description: Create and validate Mermaid diagrams. Use when creating, editing, or reviewing Mermaid diagrams in markdown files.
user-invocable: true
---

# Mermaid Diagrams

Write Mermaid diagrams in markdown that parse cleanly. The work is done when the validator exits 0 on every file you touched:

```bash
bun ${CLAUDE_SKILL_DIR}/scripts/validate.ts <file.md>...
```

It prints each failing block's line and parser message. Add `--json` for structured output.

## Diagram Types

| Type | Directive | Use For | Reference |
|------|-----------|---------|-----------|
| Flowchart | `flowchart TB` | Process flows, decision trees, architecture | [flowchart.md](./references/flowchart.md) |
| Sequence | `sequenceDiagram` | API interactions, message passing, protocols | [sequence.md](./references/sequence.md) |
| State | `stateDiagram-v2` | State machines, lifecycles | [state.md](./references/state.md) |
| ER | `erDiagram` | Database schemas, entity relationships | [er.md](./references/er.md) |

Write node and message labels in a few words, with full descriptions in the surrounding prose.

Files in this skill

  • SKILL.md1.3 KB
  • package.json228 B
  • references/er.md2.1 KB
  • references/flowchart.md2.4 KB
  • references/sequence.md3 KB
  • references/state.md2.2 KB
  • scripts/fixtures/invalid.md745 B
  • scripts/fixtures/no-mermaid.md88 B
  • scripts/fixtures/valid.md2.5 KB
  • scripts/validate.test.ts2.8 KB
  • scripts/validate.ts4.2 KB

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.

View all in documentation →

Comments

Loading comments…

Newsletter

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