
mermaid-cli
Mermaid diagram skill that generates, validates, and repairs Mermaid markup via the mmdc CLI.
- version
- 1.0.0
- GitHub stars
- 27
What it does
- Adds a
mermaid-cliskill that generates, validates, and fixes diagrams using the mmdc tool - Covers flowcharts, sequence, class, state, ER, Gantt, pie, and mindmap diagram types
- Handles converting
.mmdfiles to images, SVG, or PDF, plus verifying and correcting Mermaid syntax - Designed for creating diagrams when you need flowcharts, sequence diagrams, or Mermaid syntax checks
Generate, validate, and fix diagrams from Mermaid markup using mmdc. Use when creating flowcharts, sequence diagrams, class diagrams, converting .mmd files to images/SVG/PDF, or validating and fixing Mermaid diagram syntax.
Add marketplace
/plugin marketplace add dashed/claude-marketplaceRun it inside Claude Code once, then install the plugin below.
Install
/plugin install mermaid-cli@alberto-marketplaceRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceMermaid CLI
Overview
mmdc (Mermaid CLI) converts Mermaid diagram definitions into SVG, PNG, or PDF output. It is the official command-line interface for the Mermaid diagramming library, enabling text-based diagram generation without a browser.
Write diagram definitions in .mmd files using Mermaid's declarative syntax, then run mmdc to produce publication-ready output. This is the primary tool for generating diagrams from text in automated and scripting workflows.
mmdc also serves as a syntax validator: any render attempt validates the diagram. If the Mermaid syntax is invalid, mmdc exits with a non-zero code and reports parse errors to stderr. This enables iterative validate-and-fix workflows.
Prerequisites
CRITICAL: Before proceeding, you MUST verify that mermaid-cli is installed:
mmdc --version
If mmdc is not installed:
- DO NOT attempt to install it automatically
- STOP and inform the user that mermaid-cli is required
- RECOMMEND manual installation with the following options:
# npm (global install)
npm install -g @mermaid-js/mermaid-cli
# npx (no install, run directly)
npx -p @mermaid-js/mermaid-cli mmdc --help
# Docker
docker pull minlag/mermaid-cli
# See https://github.com/mermaid-js/mermaid-cli for more options
If mmdc is not available, exit gracefully and do not proceed with the workflow below.
Basic Workflow
Step 1: Write the Diagram
Create a .mmd file with Mermaid syntax:
cat <<'EOF' > diagram.mmd
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[End]
EOF
Step 2: Generate Output
# Generate SVG (default, best for web)
mmdc -i diagram.mmd -o diagram.svg
# Generate PNG (raster image)
mmdc -i diagram.mmd -o diagram.png
# Generate PDF (document embedding)
mmdc -i diagram.mmd -o diagram.pdf
Step 3: Verify
On success, mmdc prints Generating single mermaid chart and exits with code 0. Check that the output file was created and is non-empty.
Common Patterns
Pattern 1: Generate SVG from File
The most common workflow. SVG is the default and recommended format.
mmdc -i flowchart.mmd -o flowchart.svg
Pattern 2: Generate PNG with Theme and Background
Customize appearance with theme and background color.
# Dark theme with white background
mmdc -i diagram.mmd -o diagram.png -t dark -b white
# Forest theme with transparent background
mmdc -i diagram.mmd -o diagram.png -t forest -b transparent
Pattern 3: Generate PDF with Fit-to-Page
Use --pdfFit to scale the diagram to fit the PDF page.
mmdc -i diagram.mmd -o diagram.pdf --pdfFit
Pattern 4: Inline Diagram via Heredoc
Write and render a diagram in one step without a separate file. Useful for scripted/automated workflows.
# Write diagram to temp file and convert
cat <<'EOF' > /tmp/seq.mmd
sequenceDiagram
Alice->>Bob: Hello Bob
Bob-->>Alice: Hi Alice
Alice->>Bob: How are you?
Bob-->>Alice: Great!
EOF
mmdc -i /tmp/seq.mmd -o sequence.svg
Pattern 5: Process Markdown File
Replace all mermaid code blocks in a Markdown file with generated images.
# Replace mermaid blocks with SVG images
mmdc -i README.md -o README-out.md
# Replace with PNG images
mmdc -i README.md -o README-out.md -e png
The output Markdown file will have each ```mermaid block replaced with an <img> tag pointing to the generated image file.
Pattern 6: Custom Configuration
Apply a Mermaid configuration file for consistent styling.
# Create a config file
cat <<'EOF' > mermaid-config.json
{
"theme": "forest",
"flowchart": {
"curve": "basis",
"useMaxWidth": true
}
}
EOF
# Use the config
mmdc -i diagram.mmd -o diagram.svg -c mermaid-config.json
Pattern 7: Validate Diagram Syntax
Use mmdc to check if a .mmd file has valid Mermaid syntax. Any render attempt validates the diagram — if the syntax is invalid, mmdc exits with a non-zero code and prints parse errors to stderr.
# Validate by rendering to a temp file
mmdc -i diagram.mmd -o /tmp/_validate.svg -q 2>&1
echo "Exit code: $?"
# 0 = valid, non-zero = invalid (error details printed above)
rm -f /tmp/_validate.svg
Pattern 8: Validate and Fix Workflow
Iteratively fix invalid Mermaid diagrams by rendering, reading errors, correcting syntax, and re-validating.
# Step 1: Attempt render to validate
mmdc -i diagram.mmd -o /tmp/_validate.svg -q 2>&1
# Step 2: If exit code is non-zero, read the error output
# Errors describe the syntax issue (e.g. "Parse error on line 3...")
# Fix the .mmd file based on the error messages
# Step 3: Re-validate after fixing
mmdc -i diagram.mmd -o /tmp/_validate.svg -q 2>&1
# Step 4: Once valid (exit code 0), generate final output
mmdc -i diagram.mmd -o diagram.svg
rm -f /tmp/_validate.svg
Quick Reference
| Flag | Description | Example |
|---|---|---|
-i <file> | Input file (.mmd or .md) | -i diagram.mmd |
-o <file> | Output file (format from extension) | -o out.svg |
-t <theme> | Theme: default, forest, dark, neutral | -t dark |
-e <format> | Output format override: svg, png, pdf | -e png |
-b <color> | Background color | -b transparent |
-w <px> | Width in pixels | -w 1024 |
-H <px> | Height in pixels | -H 768 |
-s <factor> | Scale factor (default: 1) | -s 2 |
-c <file> | Mermaid config JSON file | -c config.json |
-C <file> | CSS file for styling | -C custom.css |
-p <file> | Puppeteer config JSON file | -p puppeteer.json |
--pdfFit | Fit diagram to PDF page | --pdfFit |
-q | Quiet mode (suppress logs) | -q |
-I <id> | SVG element id attribute | -I my-diagram |
--iconPacks | Icon pack names (comma-separated) | --iconPacks logos |
Supported Diagram Types
Mermaid supports a wide range of diagram types. Use the appropriate syntax in your .mmd file:
- Flowchart (
graph TD/graph LR/flowchart TD) - Sequence Diagram (
sequenceDiagram) - Class Diagram (
classDiagram) - State Diagram (
stateDiagram-v2) - Entity Relationship (
erDiagram) - Gantt Chart (
gantt) - Pie Chart (
pie) - Mindmap (
mindmap) - Timeline (
timeline) - Git Graph (
gitGraph) - User Journey (
journey) - Sankey Diagram (
sankey-beta) - C4 Diagram (
C4Context/C4Container/C4Component) - Quadrant Chart (
quadrantChart) - XY Chart (
xychart-beta) - Block Diagram (
block-beta) - Architecture Diagram (
architecture-beta) - ZenUML (
zenuml)
See Mermaid documentation for diagram syntax reference.
Themes
Four built-in themes are available:
| Theme | Description |
|---|---|
default | Standard blue/gray palette |
forest | Green-oriented natural colors |
dark | Dark background with light text |
neutral | Grayscale, suitable for printing |
mmdc -i diagram.mmd -o diagram.svg -t forest
For custom theming, use a configuration file with themeVariables or a CSS file with -C. See references/configuration.md for details.
Advanced Usage
For comprehensive documentation beyond common workflows, see:
- references/cli-reference.md - Complete CLI flag reference with all options, detailed examples, and output format specifics
- references/configuration.md - Mermaid config, Puppeteer config, CSS customization, icon packs, layout engines, and theme variables
Troubleshooting
"mmdc: command not found"
- mermaid-cli is not installed. See Prerequisites section for manual installation instructions
- Do NOT attempt automatic installation
Chromium sandbox error on Linux
- Create a Puppeteer config to disable the sandbox:
cat <<'EOF' > puppeteer-config.json
{
"args": ["--no-sandbox", "--disable-setuid-sandbox"]
}
EOF
mmdc -i diagram.mmd -o diagram.svg -p puppeteer-config.json
Docker permission errors
- Run the Docker container with user flag:
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/data minlag/mermaid-cli -i /data/diagram.mmd -o /data/diagram.svg
Custom Chromium path
- Set
executablePathin a Puppeteer config file:
cat <<'EOF' > puppeteer-config.json
{
"executablePath": "/usr/bin/chromium-browser"
}
EOF
mmdc -i diagram.mmd -o diagram.svg -p puppeteer-config.json
Blank or empty output
- Verify the
.mmdfile has valid Mermaid syntax - Try running with verbose output (remove
-qflag) - Check that the diagram type keyword is correct (e.g.,
graph,sequenceDiagram)
Timeout errors
- Increase the Puppeteer timeout in a config file:
cat <<'EOF' > puppeteer-config.json
{
"timeout": 60000
}
EOF
mmdc -i diagram.mmd -o diagram.svg -p puppeteer-config.json
Known Limitations
- Requires Node.js (^18.19 or >=20) with Puppeteer and headless Chromium (~200MB)
- Large or complex diagrams may be slow to render (Puppeteer timeout)
- Icon packs require network access to download from unpkg.com
- PDF output does not support background color customization
From the dashed/claude-marketplace README
Alberto's Claude Marketplace
A local marketplace for personal Claude Code skills and Codex repo-local skills.
A curated collection of Agent Skills for extending Claude Code and Codex capabilities. This marketplace is configured for local use and makes it easy to install and manage custom skills.
[!WARNING] This is Alberto Leal's personal Claude Code plugin marketplace. It is built solely for my own workflow, and I am the only intended and supported user. The skills and MCP servers here encode my personal conventions and assumptions, and may change, break, or disappear at any time without notice or migration path.
You are welcome to read, fork, or borrow from it — but if you are not me, use it entirely at your own risk. There are no support, stability, or backward-compatibility guarantees for anyone else.
Claude Code Quick Start
# 1. Add the marketplace
/plugin marketplace add /path/to/claude-marketplace
# 2. Install skills
/plugin # Browse and install plugins → alberto-marketplace
# 3. Restart Claude Code to load new skills
/exit
Codex Quick Start
Codex can read this repo as a local plugin marketplace. Generate Codex-native plugin manifests and the Codex marketplace file from the Claude marketplace metadata:
./scripts/sync_codex_plugins.py
# or
make sync-codex-plugins
Then restart Codex or start a new Codex thread from this repo root. Re-run the sync after editing .claude-plugin/marketplace.json, plugin skills, or MCP configs:
./scripts/sync_codex_plugins.py --check
# or
make check-codex-plugins
The sync writes .agents/plugins/marketplace.json, each plugin's .codex-plugin/plugin.json, and Codex-specific MCP configs when needed. Generated plugin versions include a content hash so Codex can see a new installable version after plugin files change.
The older direct skill symlink flow is still available when you want repo-local .agents/skills entries instead of installing plugins:
./scripts/install_codex_skills.py
For day-to-day toggling, use the interactive manager:
./scripts/manage_codex_skills.py
# or
make manage-codex-skills
Useful options:
# Preview changes without creating links
./scripts/install_codex_skills.py --dry-run
# Replace existing symlinks that point somewhere else
./scripts/install_codex_skills.py --force
# Install links into a personal Codex skills directory
./scripts/install_codex_skills.py --dest "$HOME/.agents/skills"
# List current Codex skill state
./scripts/manage_codex_skills.py --list
# Enable, disable, or uninstall individual skills
./scripts/manage_codex_skills.py --enable tmux
./scripts/manage_codex_skills.py --disable tmux
./scripts/manage_codex_skills.py --uninstall tmux
By default, the scripts manage .agents/skills/<skill> symlinks back to plugins/<skill>. disable removes only a managed repo symlink, and uninstall removes symlinked entries from the Codex skills directory. Real files and directories are reported as conflicts instead of being deleted.
To check and test the Codex scripts:
make test-codex-skills
opencode Quick Start
opencode has no marketplace concept — it discovers skills by recursively scanning configured paths for **/SKILL.md, and MCP servers from explicit mcp: entries in its config. There is no install script to run; you just point opencode at this repo.
Add an opencode block to your global config at ~/.config/opencode/opencode.json (or .jsonc):
{
"$schema": "https://opencode.ai/config.json",
// 1. Skills — recursive **/SKILL.md scan picks up every plugin under plugins/.
// 48 skill plugins are auto-discovered this way. The 4 MCP-only plugins
// (no SKILL.md) are skipped here and wired explicitly under "mcp" below.
"skills": {
"paths": ["/absolute/path/to/claude-marketplace/plugins"]
},
// 2. MCP servers — opencode does not auto-discover; one entry per server.
// ${CLAUDE_PLUGIN_ROOT} from each plugin's .mcp.json is NOT interpolated
// by opencode, so substitute an absolute script path. "command" is a
// single array of strings, not a separate program + args.
"mcp": {
"sequential-thinking": {
"type": "local",
"command": [
"uv", "run", "--no-config", "--script",
"/absolute/path/to/claude-marketplace/plugins/sequential-thinking/scripts/mcp_sequential_thinking.py"
]
},
"file-search": {
"type": "local",
"command": [
"uv", "run", "--no-config", "--script",
"/absolute/path/to/claude-marketplace/plugins/file-search/scripts/mcp_fd_server.py"
]
},
"fuzzy-search": {
"type": "local",
"command": [
"uv", "run", "--no-config", "--script",
"/absolute/path/to/claude-marketplace/plugins/fuzzy-search/scripts/mcp_fuzzy_search.py"
]
},
"sqlite": {
"type": "local",
"command": [
"uv", "run", "--no-config", "--script",
"/absolute/path/to/claude-marketplace/plugins/sqlite/scripts/mcp_sqlite_server.py"
]
}
}
}
Then quit and restart opencode — config is loaded once at startup and is not hot-reloaded.
opencode MCP dependencies
The 4 MCP servers share uv and otherwise split their deps:
| Server | Requires | Optional |
|---|---|---|
sequential-thinking | uv | DISABLE_THOUGHT_LOGGING=true env |
file-search | uv, fd, fzf | — |
fuzzy-search | uv, rg, fzf | rga (for fuzzy_search_documents), pandoc (for HTML→Markdown in extract_pdf_pages) |
sqlite | uv | MCP_SQLITE_ALLOW_WRITES=true env, --db-path <path> arg |
brew install uv fd fzf ripgrep ripgrep-all
uv fetches each server's Python deps (mcp, PyMuPDF) on first run via PEP 723 inline metadata — do not pip install them globally.
Notes
- Skill plugins (the other 48 directories under
plugins/) are picked up automatically by the recursive**/SKILL.mdscan; they need no per-plugin wiring. If a skill appears missing on next session, check that itsSKILL.mdhas a non-emptydescriptionin frontmatter — opencode filters out skills without one. - If you move this checkout, update the four absolute script paths under
mcpin lockstep. Theskills.pathsentry only needs the single parent directory. - For a curated subset of skills instead of all 48, symlink individual plugin dirs into
~/.config/opencode/skill/<name>/(opencode auto-loads~/.config/opencode/skill/*/SKILL.mdand~/.agents/skills/*/SKILL.md). - Per-project opencode config (
.opencode/opencode.jsonin a workspace) deep-merges over the global config, so you can override or extendskills.paths/mcpper project. - Full opencode config schema: https://opencode.ai/config.json.
Available Skills
| Skill | Description | Source |
|---|---|---|
| ai-friendly-cli | Build and refactor CLIs for AI agent compatibility. Use when making CLI tools machine-readable with structured JSON output, input hardening, schema introspection, dry-run safety, and MCP surfaces. | dashed |
| skill-creator | Create new skills, modify and improve existing skills, and measure skill performance. Use when creating, updating, evaluating, or optimizing skills. | Anthropic |
| skill-reviewer | Review and ensure skills maintain high quality standards. Use when creating new skills, updating existing skills, or auditing skill quality. Checks for progressive disclosure, mental model shift, appropriate scope, and documentation clarity. | dashed |
| agent-skill-init | Create a repo-local Agent Skill following the open agentskills.io specification. Use when the user wants to create, scaffold, or initialize a new skill in the current repo, mentions a 'repo-local skill' or the agentskills.io spec, or needs a spec-compliant SKILL.md placed under .agents/skills/ (or .claude/skills/). Scaffolds the directory, writes valid name/description frontmatter, and validates with skills-ref. | dashed |
| git-absorb | Automatically fold uncommitted changes into appropriate commits. Use for applying review feedback and maintaining atomic commit history. Tool: git-absorb | dashed |
| tmux | Remote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output. Use when debugging applications, running interactive REPLs (Python, gdb, ipdb, psql, mysql, node), or automating terminal workflows. Works with stock tmux on Linux/macOS. | dashed |
| ultrathink | Invoke deep sequential thinking for complex problem-solving. Use when tackling problems that require careful step-by-step reasoning, planning, hypothesis generation, or multi-step analysis. Trigger with "use ultrathink". | dashed |
| conventional-commits | Format git commit messages following the Conventional Commits 1.0.0 specification. Use when creating git commits for consistent, semantic commit messages that support automated changelog generation and semantic versioning. | dashed |
| git-chain | Manage and rebase chains of dependent Git branches (stacked branches). Use when working with multiple dependent PRs, feature branches that build on each other, or maintaining clean branch hierarchies. Automates rebasing or merging entire branch chains. Tool: git-chain | dashed |
| jj | Jujutsu (jj) version control system - a Git-compatible VCS with automatic rebasing, first-class conflicts, and operation log. Use when working with jj repositories, stacked commits, revsets, or enhanced Git workflows. Tool: jj | dashed |
| fzf | Command-line fuzzy finder for interactive filtering. Use when searching files, command history (CTRL-R), creating interactive menus, or integrating with ripgrep, fd, and git. Shell keybindings: CTRL-T, CTRL-R, ALT-C, ** completion. Tool: fzf | dashed |
| playwright | Browser automation with Playwright for Python. Use when testing websites, taking screenshots, filling forms, scraping web content, or automating browser interactions. Uses uv with PEP 723 inline scripts for self-contained automation. Requires one-time browser setup (see below). Tool: Playwright | dashed |
| zellij | Terminal workspace and multiplexer for interactive CLI sessions. Use when managing terminal sessions, running interactive REPLs, debugging, or automating terminal workflows. Simpler alternative to tmux with native session management. Tool: Zellij | dashed |
| design-principles | Guide AI-assisted UI generation toward enterprise-grade, intentional design. Use when building UIs, creating dashboards, designing SaaS applications, or generating styled frontend code. Enforces 4px grids, typography hierarchies, and consistent depth strategies. | Dammyjay93 |
| mermaid-cli | Generate, validate, and fix diagrams from Mermaid markup using mmdc. Use when creating flowcharts, sequence diagrams, class diagrams, or converting .mmd files to images/SVG/PDF. Also validates and fixes Mermaid syntax. Tool: mermaid-cli | dashed |
| walkthrough-to-obsidian | Convert game walkthroughs and guides from plain text into structured, interlinked Obsidian markdown pages. Use when converting walkthroughs, FAQs, or reference documents into Obsidian vault pages. Supports agent team parallelization for large documents. | dashed |
| long-form-math | Write mathematics in a long-form, understanding-focused style with detailed proofs and rich exposition. Three-phase proof workflow, motivation-first exposition, and rigorous writing conventions. Inspired by Cummings' Real Analysis and Chartrand's Mathematical Proofs. | dashed |
| chrome-cdp | Interact with live Chrome browser sessions via Chrome DevTools Protocol. Use when inspecting, debugging, or interacting with pages open in Chrome — screenshots, accessibility trees, JS evaluation, clicking, navigating. Persistent per-tab daemon, works with 100+ tabs. Based on pasky/chrome-cdp-skill. Requires Chrome remote debugging (see below). | dashed |
| react-best-practices | React and Next.js performance optimization guidelines from Vercel Engineering. 62 rules across 8 categories covering waterfalls, bundle size, server-side, re-renders, and rendering. Use when writing, reviewing, or refactoring React/Next.js code. Source: vercel-labs/agent-skills | Vercel Engineering |
| linear | Managing Linear issues, projects, and teams. Use when working with Linear tasks, creating issues, updating status, querying projects, or managing team workflows. Tool: Linear SDK + MCP | wrsmith108 |
| gogcli | Drive Google Workspace from the terminal: Gmail, Calendar, Drive, Docs, Sheets, Slides, Chat, Tasks, Contacts, Admin, Keep, Forms, Classroom, Groups, Apps Script. JSON-first, multi-account, script-friendly. Use when sending mail, managing events, moving files, editing spreadsheets, or automating Workspace tasks. Tool: gogcli | steipete |
| pup | Datadog CLI (pup) for observability, monitoring, logs, APM, security, and infrastructure. Use when querying Datadog metrics, searching logs, managing monitors, investigating incidents, or performing Datadog API operations. 49 command groups, 300+ subcommands. Tool: pup | Datadog |
| style-extractor | Extract and document writing styles from source texts into reusable style guides. Four-phase workflow analyzing 17 style dimensions, producing a full style guide, voice card, do/don't checklist, and scoring rubric. Works with PDFs, documents, and any readable text. | dashed |
| style-writer | Write content using stored writing styles from the writing-styles/ collection. Discovers available styles, loads the right guide into context, applies it during writing, and self-evaluates against the style rubric. Companion to style-extractor. | dashed |
| anki-flashcards | Create and manage Anki flashcards via the AnkiConnect API. Use when creating flashcards, managing decks, reviewing statistics, or interacting with Anki. Comprehensive API reference covering 100+ actions, flashcard design best practices. Requires Anki with AnkiConnect add-on. Tool: AnkiConnect | dashed |
| statusline | Configure the Claude Code status line with VCS-aware scripts showing git branch, jj change ID, bookmarks, context usage, and costs. Use when setting up a statusline, customizing the status bar, or adding VCS info to the status line. | dashed |
| hledger | Plain-text double-entry accounting with hledger. Use when recording transactions, checking balances, generating financial reports, importing CSV bank statements, budgeting, tracking time, managing multiple currencies, or doing year-end closing. Tool: hledger | dashed |
| git | Advanced Git CLI mastery, recovery, and troubleshooting (git 2.54+). Use when recovering lost commits/branches/stashes (reflog, fsck), undoing a bad reset/merge/rebase, rewriting history (interactive rebase, filter-repo), resolving conflicts (rerere), or working with worktrees, bisect, cherry-pick, stash, refspecs, --force-with-lease, .gitattributes/hooks, git internals, or confusing git errors. Defers to conventional-commits, git-chain, git-absorb, and jj for their niches. | dashed |
| sequential-thinking | MCP server exposing a single sequentialthinking tool for dynamic, reflective, step-by-step problem-solving. Use when a task needs structured reasoning, planning, hypothesis generation, branching to explore alternatives, or revising earlier steps while keeping a running chain of thoughts. The marketplace's first MCP-server plugin. Requires uv. | dashed |
| file-search | MCP server exposing search_files (fd regex/glob) and filter_files (fzf fuzzy matching) tools for fast file-NAME discovery. Use when locating files by name or partial path — not for searching file contents. Requires uv, fd, and fzf. | dashed |
| fuzzy-search | MCP server exposing fuzzy content/file/document search tools (fuzzy_search_files, fuzzy_search_content, fuzzy_search_documents) built on ripgrep + fzf, plus PyMuPDF-backed PDF tools (extract_pdf_pages, get_pdf_outline, get_pdf_page_count, get_pdf_page_labels). Use when fuzzy-searching code/files/documents or inspecting/extracting PDF pages. Requires uv; rg+fzf (and rga for documents). | dashed |
| sqlite | MCP server exposing SQLite database tools (query, execute, list_tables, describe_table, create_table). Read-only by default; writes are opt-in via --allow-writes or MCP_SQLITE_ALLOW_WRITES=true. Use when inspecting, querying, or (when enabled) modifying SQLite databases. Requires uv. | dashed |
| fd | Fast, user-friendly command-line file/directory search with the fd tool (a simpler, faster find replacement). Use when searching for files/directories by name or regex/glob, filtering by type/extension/size/modified-time, respecting .gitignore, or running a command per result with -x/-X. Includes (fd X.Y+) version annotations + a version-features lookup. Tool: fd | dashed |
| ripgrep | Fast, gitignore-aware recursive content search with the ripgrep (rg) tool — a smarter, faster grep. Use when searching code/text for a regex across a tree, filtering by file type/glob, listing/counting matches, search-and-replace previews, or gitignore-aware code search. Includes (rg X.Y+) version annotations + a version-features lookup. Tool: ripgrep | dashed |
| fuzzy-filter | The non-interactive rg/fd/rga → fzf --filter pipeline — scan with a regex tool, then fuzzy-rank lines with no TUI (the CLI technique behind the fuzzy-search MCP). Use when fuzzy-matching paths, code lines, or PDF/document text from a script, or piping ranked results to xargs/an editor. Distinct from the fzf skill (interactive) and the fuzzy-search MCP (tool calls). Tools: ripgrep + fzf (+ rga for documents). | dashed |
| k3s | The k3s lightweight CNCF-certified Kubernetes distribution as a single binary (bundles containerd, flannel, CoreDNS, Traefik, ServiceLB, local-path-provisioner, metrics-server). Use when installing/running a lightweight cluster, bootstrapping single-node or HA control planes, joining agent nodes, choosing embedded etcd vs an external datastore, managing tokens, rotating certs, taking/restoring etcd snapshots, secrets encryption, airgap/private-registry installs, disabling bundled components, or upgrading. Includes (k3s vX.Y+) version annotations + a version-features lookup. Tool: k3s | dashed |
| teach | Run a Socratic teaching loop that quizzes you on a coding session until you've confirmed mastery of every concept. Use when you want to learn or lock in a Claude Code session, understand a transcript/PR/design decision, be quizzed on recent work, or prepare to teach someone else — or when the user runs /teach or asks to be taught or quizzed on a topic. Sources sessions from ~/.claude/projects/ and tracks a per-concept checklist until every item is confirmed. | alexknowshtml |
| ansible | ansible-core — the agentless, push-based SSH automation engine that runs idempotent tasks from declarative YAML playbooks. Use when writing/running playbooks, issuing ad-hoc commands, managing inventory, authoring roles, installing collections with ansible-galaxy, encrypting secrets with Ansible Vault, tuning ansible.cfg, or looking up docs with ansible-doc. Covers the ten ansible* CLIs, FQCN, become, variable precedence, and check/diff mode. Includes (ansible-core X.Y+) version annotations + a version-features lookup. Tool: ansible-core | dashed |
| obsidian-markdown | Create and edit Obsidian Flavored Markdown — the Obsidian-specific extensions on top of CommonMark/GFM: wikilinks ([[Note]]), block IDs, embeds (![[...]]), callouts (> [!type]), frontmatter properties, tags, comments, highlights, LaTeX math, Mermaid, and footnotes. Use when working with .md files in an Obsidian vault, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes. Ported from kepano's obsidian-skills (with minor local accuracy fixes). | |
| obsidian-bases | Create and edit Obsidian Bases (.base files) — the YAML format that turns notes into database-like table/cards/list/map views with filters, computed formulas, and summary aggregations. Use when working with .base files, building database-like views of notes, or when the user mentions Bases, table/card views, filters, or formulas in Obsidian. Ported from kepano's obsidian-skills (with minor local additions from the official docs); includes a complete per-type functions reference. | kepano |
| duckdb | DuckDB — the in-process, columnar OLAP SQL engine in a single zero-dependency binary ("SQLite for analytics"). Use when querying Parquet/CSV/JSON files directly with SQL, using the duckdb CLI shell (REPL or -c/-json one-shots for scripts/agents), writing friendly SQL (FROM-first, SELECT * EXCLUDE, GROUP BY ALL, SUMMARIZE, PIVOT), converting CSV↔Parquet↔JSON via COPY, reading HTTP/S3 data via httpfs, or ATTACH-ing a live Postgres/MySQL/SQLite database. Includes (duckdb vX.Y+) version annotations + a version-features lookup. Tool: duckdb | dashed |
| jq | jq — the command-line JSON processor and its filter language for filtering, transforming, and reshaping JSON. Use when extracting fields/nested paths on the CLI, select-ing arrays of objects, building new JSON, emitting CSV/TSV with @csv/@tsv, getting raw strings with jq -r, slurping (-s) and aggregating (add, group_by), NDJSON pipelines (-c), or injecting shell values with --arg/--argjson. Includes (jq 1.X+) version annotations + a version-features lookup. Tool: jq | dashed |
| psql | psql — PostgreSQL's interactive terminal client and SQL script runner. Use when connecting to or inspecting a Postgres database from a terminal, running SQL scripts or one-off queries in shells/CI/agents (-c/-f/-qAtX/--csv), using meta-commands (\d family, \copy, \watch, \gexec, \if scripting, \pset/\x, variables), .psqlrc, or fixing connection/auth problems. Includes (pgNN+) version annotations + a version-features lookup. Tool: PostgreSQL | dashed |
| postgres-sql | The PostgreSQL SQL dialect & data types that set Postgres apart from generic SQL. Use when writing or debugging Postgres-specific SQL — upsert (ON CONFLICT), RETURNING (incl. OLD/NEW), MERGE, CTEs, window frames, GROUPING SETS, LATERAL, generated/identity columns, declarative partitioning, jsonb/jsonpath/SQL-JSON (JSON_TABLE/IS JSON), arrays, ranges & multiranges, composite/enum/domain types, uuidv7()/gen_random_uuid(). Includes (pgNN+) version annotations + a version-features lookup. Tool: PostgreSQL | dashed |
| postgres-performance | PostgreSQL query & performance tuning — reading EXPLAIN/EXPLAIN ANALYZE plans, choosing & designing indexes, fixing planner row-estimate errors with statistics, and diagnosing MVCC bloat/VACUUM. Use when a query is slow, choosing an index type (btree/GIN/GiST/SP-GiST/BRIN/hash) or strategy (partial/expression/covering), autovacuum lags, or tuning planner GUCs (random_page_cost, work_mem, effective_cache_size). Includes (pgNN+) version annotations + a version-features lookup. Tool: PostgreSQL | dashed |
| postgres-admin | PostgreSQL server administration & operations (DBA work on a running cluster). Use when configuring a server (postgresql.conf, ALTER SYSTEM, GUCs), managing roles/privileges, authentication (pg_hba.conf, scram-sha-256), backup/restore (pg_dump, pg_basebackup, incremental, PITR), replication & HA (streaming, logical pub/sub, slots, failover), pg_upgrade, or monitoring (pg_stat_activity, pg_stat_io, pg_stat_progress_*). Includes (pgNN+) version annotations + a version-features lookup. Tool: PostgreSQL | dashed |
| postgres-extensions | PostgreSQL extension management and the bundled contrib catalog. Use when running CREATE EXTENSION/ALTER EXTENSION ... UPDATE/DROP EXTENSION, listing extensions (\dx), or choosing which contrib module enables a feature — FDWs (postgres_fdw, dblink), trigram/fuzzy search (pg_trgm, fuzzystrmatch), crypto/UUIDs (pgcrypto), hstore/ltree/citext/cube, query stats (pg_stat_statements, auto_explain), storage forensics (pageinspect, amcheck, pg_surgery). Covers trusted extensions & shared_preload_libraries. Includes (pgNN+) version annotations + a version-features lookup. Tool: PostgreSQL | dashed |
| kubernetes | Author and operate Kubernetes workloads with kubectl and YAML manifests — the kubectl CLI plus core resource authoring (Deployments, StatefulSets, Jobs/CronJobs, Services, Ingress, ConfigMaps/Secrets, PV/PVC, RBAC). Use when writing/debugging manifests, running kubectl (apply/diff/rollout/logs/exec/debug), fixing CrashLoopBackOff/Pending pods, managing contexts/namespaces, generating manifests with --dry-run=client, or checking RBAC with auth can-i. Includes (k8s 1.X+) version annotations + a version-features lookup. For installing/running a lightweight cluster see the k3s skill. Tool: kubernetes | dashed |
| uv | uv — Astral's fast Python package & project manager, one binary replacing pip/pipx/pyenv/poetry/virtualenv. Use when managing Python projects with pyproject.toml + uv.lock (uv init/add/sync/lock/run), running PEP 723 inline-dependency scripts, running one-off tools with uvx, installing/pinning Python versions (uv python), migrating from pip (uv pip), building/publishing packages, or configuring indexes/resolution/cache. Includes (uv 0.X+) version annotations + a version-features lookup. Tool: uv | dashed |
| handoff | Compact the current conversation into a handoff document for another agent to pick up. Use when ending a session with unfinished work, transferring context to a fresh agent or a new session, or approaching context limits. Saves timestamped docs to the OS temp dir, the workspace root with --workspace (auto-ignored via .git/info/exclude), or git-visible with --tracked (staged, commit+push offered for cross-machine transfer); follows a section template (decisions & rationale, dead ends tried, verify-state commands), suggests skills for the next agent, references artifacts instead of duplicating them, redacts secrets, and announces the path with a next-session starter. | mattpocock |
| pytest | pytest — the Python testing framework and the idioms that set it apart from unittest. Use when writing, running, debugging, or configuring pytest tests — plain assert (rewritten for rich introspection), dependency-injected @pytest.fixture (scopes/autouse/yield/conftest), @pytest.mark.parametrize, skip/skipif/xfail + custom markers, pytest.raises/warns/approx, builtin fixtures (tmp_path/monkeypatch/capsys/caplog), the CLI (-k/-m/-x/--lf/--pdb/node ids), config (pyproject.toml/pytest.ini, addopts, testpaths, --import-mode), and plugins/hooks (conftest.py, xdist/cov/asyncio/mock). Includes (pytest N.M+) version annotations + a version-features lookup. Tool: pytest | dashed |
| model-routing | Install and maintain a "model routing" section in a project's CLAUDE.md that teaches Claude Code which model to use for which work — a per-model cost/intelligence/taste rankings table with defaults-not-limits escalation rules, plus mechanics for reaching each model (Agent/Workflow model parameter for Claude models; codex exec for GPT models, including the thin-wrapper pattern for using Codex inside workflows and subagents). Use when setting up Codex/GPT as a delegation target or routing subagent work across models. Ships a customizable CLAUDE.md template and a verified codex exec flag reference. | dashed |
| code-walkthrough | Create a self-contained interactive HTML document that teaches a code change (branch, PR, diff, or subsystem) to a reviewer with no prior knowledge — before/after code toggles, mermaid diagrams, step-through code walkers, and playground widgets that mirror the logic under study. Use when the user wants to learn or review a code change interactively, asks for a walkthrough/teaching document of a branch or PR, or wants before/after explanations with visuals. Ships a generic HTML shell template (sidebar scrollspy, light/dark theme that also re-themes diagrams, syntax highlighting that keeps per-line diff colours, component library) and a 6-phase pipeline: extract (read-only agent fan-out) → verify claims → spiral structure → author fragments → browser-verify → deliver. | dashed |
| comment-slop | Find and remove AI-slop comments — ones that restate the code, describe another layer's behavior, or narrate planning that never shipped — while protecting the comments that carry real reasoning. Use when a reviewer calls a comment useless, unclear, or AI-written, when auditing comments and docstrings on a branch or PR, or before sending a change for review. Encodes a three-clause test (true at this layer, not already visible in the code, not stated better nearby), an eight-mode taxonomy with real examples and reviewer reactions (the eighth: comments that excuse a defect), a "what to keep" table with the asymmetry that a deleted rationale costs more than a bland comment, and a diff-scoped keep/rewrite/delete workflow. Includes why mechanically shortening comments makes slop worse. Repository-wide purges hand off to delete-comment. | dashed |
| delete-comment | Purge comments from a codebase or directory. Classifies every comment as a tautology, stale, an excuse, or a decision record; deletes it, files an issue for it, or moves its fact into a name, a type, a test, or an ADR; then reports the measured lines removed. Use when asked to delete or audit every comment in a codebase, move comment rationale into ADRs, or estimate the lines saved. Ships a pygments-based scanner that keeps tool directives and license notices and deletes only behind a code-token check, plus a reference for ADRs recovered from comments. | dashed |
| doc-quality | Review engineering Markdown designs, analyses, plans, and ADRs by section; static readability, preservation-inventory, and local link/anchor checks while the agent makes targeted, meaning-preserving edits | dashed |
| jj-hunk | Programmatic hunk selection for the jj (Jujutsu) VCS. Select individual diff hunks with a query language instead of an interactive TUI, then split, commit, squash, diffedit, restore, or absorb them. Use when splitting a jj commit, committing or squashing part of the working copy, undoing single hunks, or selecting changes by file/content/function/class. Documents the traps an agent hits silently: restore reads its ids from a reversed listing, absorb exits 0 when it refuses, and content-level predicates never reach binaries, symlinks, mode flips, pure renames or empty adds. Tool: jj-hunk | dashed |
| ruff | Astral's one fast (Rust) binary that is both a Python linter (ruff check) and a Black-compatible formatter (ruff format). Use when linting/formatting Python, configuring [tool.ruff]/ruff.toml, choosing rules with select/extend-select/ignore, looking up codes (F401/E501/B008), applying fixes (--fix, --unsafe-fixes), or suppressing (# noqa, # ruff: ignore[...]). Verified against ruff 0.16.3, incl. the 0.16 default-rule-set expansion (59 → 413) and preview gating. Tool: ruff | dashed |
| ty | Astral's extremely fast Python type checker and language server (beta). Use when running/configuring ty check, reading diagnostics, setting rule levels in [tool.ty]/ty.toml, writing # ty: ignore[rule] suppressions, debugging environment/module resolution, wiring ty into CI, or migrating from mypy/pyright. Pinned to ty 0.0.72. Tool: ty | dashed |
| oxlint | The extremely fast Rust JavaScript/TypeScript linter from the oxc project — an ESLint alternative needing no config to start. Use when linting JS/TS/JSX/Vue, writing .oxlintrc.json, selecting rules via plugins + categories, running --fix/--fix-suggestions/--fix-dangerously, or migrating from ESLint. Verified against oxlint 1.79.0. Tool: oxlint | dashed |
| oxfmt | The fast Rust formatter from the oxc project — a Prettier-compatible alternative for JS/TS/JSX plus JSON, CSS, YAML, TOML, GraphQL, Markdown and Vue. Use when formatting or checking with oxfmt, configuring .oxfmtrc.json, or migrating off Prettier/Biome. Pinned to oxfmt 0.64.0; note bare oxfmt rewrites files in place. Tool: oxfmt | dashed |
| jev | Consult Jev for typed second opinions on plans, evidence, and priorities; configurable providers, optional without a key | dashed |
| python-complexity | Two censuses of Python complexity, no project install: per function (ruff check --select C901 cyclomatic + complexipy cognitive, read as a pair) and per call path (hops, pass-through layers, selector parameters) for code where every function scores low but the path is hard to follow. Use when asking which functions to refactor first, whether a function or call path is too complex or over-layered, when triaging a legacy codebase, or when verifying a refactor reduced rather than relocated complexity. | dashed |
| test-sloc-cut | Shrink a test suite without losing an asserted fact or a covered branch: a fact matrix of what each test pins plus per-test branch coverage and a verified covering set, deleting only on the intersection, with a mutant check for every relocated fact. Use when asked to trim, dedupe, consolidate, or reduce tests or test SLOC, when a suite grew by accretion, when deciding whether to delete, fold, or parametrize tests, or before cutting a test on 'coverage is unchanged' alone. Python/pytest. | dashed |
| test-audit | Decide whether a test earns its place: an authoring gate for new and changed tests (what it protects, which regression fails it, why coverage misses it, no test-only production seams, regression tests proven red before the fix), low-value patterns (assertion-free tests, expected values from the code under test, duplicate bodies that hide a missing test, mocks that answer their own assertions, negative controls that pass for the wrong reason), a retention bar, and an evidence ledger before deletes. Use when writing or reviewing tests, when asked for a regression test, or when auditing a suite for junk tests or test-only production code. Ships a pytest smell scanner and a test-only-symbol finder; consolidation hands off to test-sloc-cut. Adapted from OpenClaw. | dashed |
| show-me | Explain the current topic visually with the smallest view that makes the point: pseudocode, a call tree, a component or file tree, a Mermaid diagram, a diff of the shape that changes, or one focused HTML page. Use when you ask to see the topic instead of reading about it ("show me", "diagram this", /show-me), not for ordinary explanations. | HumanLayer |
Chrome CDP Setup
The chrome-cdp skill requires Chrome with remote debugging enabled and Python 3.10+ with the websockets library:
# 1. Enable remote debugging in Chrome
# Navigate to chrome://inspect/#remote-debugging and toggle the switch
# 2. Install the websockets dependency
uv pip install websockets
Linear Setup
The linear skill requires Node.js dependencies and a Linear API key:
# 1. Install dependencies in the plugin cache directory
cd ~/.claude/plugins/cache/alberto-marketplace/linear/2.3.1
npm install
# 2. Create a Linear API key at https://linear.app/settings/api
# 3. Add to your shell profile (~/.zshrc or ~/.bashrc)
export LINEAR_API_KEY="lin_api_..."
Restart Claude Code after setup.
Playwright Setup
The playwright skill requires a one-time browser installation (~200MB). Claude will suggest these commands but will not run them directly—run them manually:
# Install Chromium (recommended, ~200MB)
uv run --with playwright playwright install chromium
# Or install all browsers
uv run --with playwright playwright install
Usage
Add this marketplace locally
/plugin marketplace add /path/to/claude-marketplace
Update the marketplace
/plugin marketplace update alberto-marketplace
Install skills
- Select
/pluginand thenBrowse and install plugins - Select
alberto-marketplace - Choose the skills to install
- Restart Claude Code
Install skills for Codex
./scripts/sync_codex_plugins.py
Codex can then discover the local plugin marketplace from .agents/plugins/marketplace.json when launched from this repository or one of its subdirectories.
For legacy direct skill links:
./scripts/install_codex_skills.py
To enable, disable, or uninstall skills interactively:
./scripts/manage_codex_skills.py
# or
make manage-codex-skills
Adding Skills to This Marketplace
Method 1: Add to Marketplace (Recommended)
- Add your skill directory to
plugins/ - Edit
.claude-plugin/marketplace.jsonand add a new entry:
{
"name": "your-skill-name",
"source": "./plugins/your-skill-name",
"description": "Brief description of what the skill does",
"strict": false,
"skills": ["./skills"]
}
Important: The skills field is required to load skills from the marketplace. It tells Claude Code which directories contain SKILL.md files.
- Update the CHANGELOG.md
- Commit your changes
- Re-run
./scripts/sync_codex_plugins.pyif you use Codex with this repo.
Method 2: Direct Installation
Skills can also be installed directly without using the Claude Code marketplace:
# Claude Code personal (available everywhere)
cp -r plugins/your-skill ~/.claude/skills/
# Claude Code project (shared with team)
cp -r plugins/your-skill .claude/skills/
# Codex repo-local links
./scripts/install_codex_skills.py
# Codex plugin marketplace metadata
./scripts/sync_codex_plugins.py
# Codex personal links
./scripts/install_codex_skills.py --dest "$HOME/.agents/skills"
# Codex interactive manager
./scripts/manage_codex_skills.py
Structure
claude-marketplace/
├── .agents/
│ ├── plugins/
│ │ └── marketplace.json # Generated Codex plugin marketplace
│ └── skills/ # Optional generated Codex symlinks
├── .claude-plugin/
│ └── marketplace.json # Marketplace manifest
├── plugins/
│ └── skill-creator/ # Plugin directory
│ ├── .codex-plugin/
│ │ └── plugin.json # Generated Codex plugin manifest
│ └── skills/
│ └── skill-creator/
│ ├── SKILL.md # Skill definition
│ ├── scripts/ # Optional scripts
│ └── references/ # Optional documentation
├── scripts/
│ ├── install_codex_skills.py # Codex symlink installer
│ ├── manage_codex_skills.py # Codex interactive manager
│ └── sync_codex_plugins.py # Codex plugin metadata sync
├── CHANGELOG.md # Version history
└── README.md # This file
Resources
- Claude Code Skills Documentation
- Plugin Marketplaces Guide
- Anthropic Skills Repository
- OpenAI Codex Skills Documentation
- OpenAI Codex Plugins Documentation
- OpenAI Skills Catalog
Version
Current version: 0.61.0
See CHANGELOG.md for version history.
Details
- Marketplace
- dashed/claude-marketplace
- Source
- plugins/mermaid-cli
- Author
- Alberto Leal
- Category
- Community
- License
- MIT
- Keywords
- mermaid, diagrams, flowchart, sequence-diagram, svg, png, pdf, visualization, cli, mmdc
- Listed since
- Apr 7, 2026
More from dashed/claude-marketplace
All 66- model-routingv1.1.0
- obsidian-basesv1.0.1
- obsidian-markdownv1.0.1
- oxfmtv1.0.0
- oxlintv1.0.0
- playwrightv1.0.0
- postgres-adminv1.0.0
- postgres-extensionsv1.0.0
- postgres-performancev1.0.0
- postgres-sqlv1.0.0
- psqlv1.0.0
- pupv1.0.0
- pytestv1.0.0
- python-complexityv1.6.0
- react-best-practicesv1.0.0
- ripgrepv1.0.0
- ruffv1.0.0
- sequential-thinkingv1.0.4
- show-mev1.2.0
- skill-creatorv2.0.0
- skill-reviewerv1.1.0
- sqlitev1.0.2
- statuslinev1.3.3
- style-extractorv1.0.1
Similar to mermaid-cli
More Technical Documentation
mermaid-diagramSkillwanshuiyin/auto-claude-code-research-in-sleep556 installsGenerates Mermaid diagrams from plain-language requirements, writing both raw .mmd and markdown-embedded files.
draw.ioMCP serverjgraph5.9K starsCreate and display interactive draw.io diagrams from Mermaid or draw.io XML, with 10,000+ library shapes.
mermaid-diagramsPluginmahidalhan/claude-hacks34 starsGenerate publication-quality Mermaid diagrams for flowcharts, sequences, ERDs, and more.
mermaidPluginchujianyun/skills756 starsMermaid 图绘制助手。适用于用户明确要求绘制 Mermaid 图,或提到流程图、架构图、时序图、状态图、甘特图、ER 图、用户旅程图、类图,并希望直接输出 Mermaid 代码块时使用。会先判断最合适的图类型,再生成可渲染、结构清晰的 Mermaid 代码。
agent-mermaid-diagram-specialistPluginsoftaworks/agent-toolkit2.7K starsMermaid diagram specialist for creating flowcharts, sequence diagrams, ERDs, and architecture visualizations.