Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Konwersja i formaty

mermaid

/mermaid

Renderuje diagramy Mermaid jako SVG lub ASCII, na przykład schematy przepływu, sekwencji, stanów i klas.

Repozytorium
poundingcore ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
06.08.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść30 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 06.08.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/render.ts

Co robi i kiedy

Renderuje diagramy Mermaid jako SVG lub ASCII, na przykład schematy przepływu, sekwencji, stanów i klas.

Oryginalny opis (EN)

Render Mermaid diagrams as SVG or ASCII art using beautiful-mermaid. Use when users need to create flowcharts, sequence diagrams, state diagrams, class diagrams, or ER diagrams. Supports both graphical SVG output and terminal-friendly ASCII/Unicode output.

Jak działa

  1. Quick Start
  2. Supported Diagrams
  3. Theming (SVG only)
  4. Resources
Sekcje z nagłówków SKILL.md, w oryginale · 76 linii, 426 słów
Podgląd SKILL.md
---
name: mermaid
description: Render Mermaid diagrams as SVG or ASCII art using beautiful-mermaid. Use when users need to create flowcharts, sequence diagrams, state diagrams, class diagrams, or ER diagrams. Supports both graphical SVG output and terminal-friendly ASCII/Unicode output.
---

> **⚠️ Platform note — read before running any command.** The shell snippets in this skill are written for **macOS / Linux** (bash/zsh). Always check which OS you are on first. On **Windows** do **not** run them verbatim — the underlying tool/CLI commands are usually cross-platform, but the surrounding shell syntax is not. Translate it to PowerShell before running:
>
> | bash (macOS / Linux) | PowerShell (Windows) |
> | --- | --- |
> | `a && b` | run as two steps, or `a; if ($?) { b }` |
> | `cat <<'EOF' \| tool …` (heredoc) | write the text to a temp file, then pipe/pass that file to the tool |
> | `VAR=$(cmd)` … `$VAR` | `$VAR = cmd` … `$VAR` |
> | `cmd > /dev/null` | `cmd > $null` |
> | `… \| grep PAT` | `… \| Select-String PAT` |
> | `… \| jq …` | `… \| ConvertFrom-Json`, then read the fields |
> | `python3 x.py` | `python x.py` (or `py x.py`) |
> | `~/dir`, `/tmp` | `$env:USERPROFILE\dir`, `$env:TEMP` |
> | `cp` / `mkdir -p` / `rm -rf` | `Copy-Item` / `New-Item -ItemType Directory -Force` / `Remove-Item -Recurse -Force` |
>
> If a command has no obvious Windows equivalent, prefer the built-in file/HTTP tools over raw shell.

# Mermaid Diagram Renderer

Render Mermaid diagrams using `beautiful-mermaid` library. Supports 5 diagram types with dual output modes.

## Quick Start

> Dependencies (`beautiful-mermaid`) auto-install on first run.

### SVG Output (Default)

```bash
# From file
npx tsx scripts/render.ts diagram.mmd --output diagram.svg

# From stdin
echo "graph LR; A-->B-->C" | npx tsx scripts/render.ts --stdin --output flow.svg
```

### ASCII Output (Terminal)

```bash
# ASCII art for terminal display
npx tsx scripts/render.ts diagram.mmd --ascii

# Pipe directly
echo "graph TD; Start-->End" | npx tsx scripts/render.ts --stdin --ascii
```

Output example:

```
┌───────┐     ┌─────┐
│ Start │────▶│ End │
└───────┘     └─────┘
```

## Supported Diagrams

| Type      | Syntax            | Best For                |
| --------- | ----------------- | ----------------------- |
| Flowchart | `graph TD/LR`     | Processes, decisions    |
| Sequence  | `sequenceDiagram` | API calls, interactions |
| State     | `stateDiagram-v2` | State machines          |
| Class     | `classDiagram`    | OOP design              |
| ER        | `erDiagram`       | Database schemas        |

## Theming (SVG only)

```bash
npx tsx scripts/render.ts diagram.mmd --theme github-dark --output out.svg
```

Use invalid theme name to see available themes list (e.g., `--theme ?`)

## Resources

- `scripts/render.ts` - Main rendering script
- `references/syntax.md` - Mermaid syntax quick reference
Pliki w paczce (3)
  • SKILL.md 3 KB
  • references/syntax.md 1 KB
  • scripts/render.ts 4 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · halojerry/poundingcore95Apache-2.0
rp1-run/rp1100Apache-2.0
TerminalSkills/skills100Apache-2.0
bex-co/beancount-io100MIT
antoinebou12/uml-mcp100MIT
microclaw/microclaw100MIT
greedychipmunk/agent-skills100MIT
fprochazka/claude-code-plugins100MIT
carlheath/ogmios100MIT

Migawka bazy z 28.10.2026 · wersja paczki bb55000407f9 (skrót SHA-256 całej paczki)

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100beautiful-mermaid
    Renderuje diagramy Mermaid, takie jak schematy blokowe, sekwencji, klas i ER, jako grafikę ASCII w terminalu lub pliki SVG, z 17 motywami kolorystycznymi.
  • 100plantuml-ascii
    Generuje diagramy ASCII z PlantUML w trybie tekstowym: diagramy sekwencji, klas i przepływu, także w wersji Unicode z flagą -utxt.
  • 100beautiful-mermaid
    Renderuje diagramy Mermaid do plików SVG i PNG za pomocą biblioteki Beautiful Mermaid.
  • 95pretty-mermaid
    Renderuje diagramy Mermaid jako SVG, PNG lub ASCII w wybranym motywie do dokumentacji, PR-ów i terminala, także wsadowo.
  • 100mermaid-architecture
    Generuje, dokumentuje i aktualizuje diagramy architektury, schematy blokowe oraz diagramy sekwencji, ER, klas i stanów w Mermaid w katalogu docs/architecture/.
  • 100mermaid-js
    Tworzy diagramy Mermaid, w tym schematy blokowe, diagramy sekwencji, maszyny stanów i grafy architektury.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.