/autorun-skills:mermaid-diagramsfrom autorun-skills
Renders Mermaid .mmd diagram files to themed SVG using beautiful-mermaid and bun. Supports all diagram types with 15 themes including tokyo-night.
Ships in autorun-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Render Mermaid .mmd files into styled SVG using beautiful-mermaid v1.0.2 and bun.
| File | Purpose |
|---|---|
render-mermaid.ts | CLI tool: renders .mmd files to SVG |
render-mermaid.ts sits in this skill's own directory. Every command below
runs it by full path through $MERMAID, so it works from any directory.
Only bun is required. The beautiful-mermaid dependency is auto-installed by bun on first run.
# macOS
brew install oven-sh/bun/bun
# Or universal installer
curl -fsSL https://bun.sh/install | bash
render-mermaid — Render Mermaid .mmd files to themed SVG
Usage:
bun run render-mermaid.ts [options] <input.mmd...>
echo 'graph TD; A --> B' | bun run render-mermaid.ts -o out.svg
Options:
-o, --output <file> Output file (single input only)
--outdir <dir> Output directory for multiple files
-t, --theme <name> Theme (default: tokyo-night)
--list-themes List available themes
--help Show this help
Output defaults: Without -o or --outdir, writes <name>.svg next to each input file (-d is swallowed by bun run; use --outdir).
Set MERMAID once to the script's full path: the directory this skill is
installed in, plus /render-mermaid.ts. For example
MERMAID=~/.agents/skills/mermaid-diagrams/render-mermaid.ts for the shared
skills root, or MERMAID=~/.config/opencode/skills/mermaid-diagrams/render-mermaid.ts
on OpenCode. In a checkout of the autorun repository it is
plugins/autorun-skills/skills/mermaid-diagrams/render-mermaid.ts.
MERMAID=~/.agents/skills/mermaid-diagrams/render-mermaid.ts # see "Set MERMAID once"
# Render single file (output next to input)
bun run "$MERMAID" diagram.mmd
# Render to specific output
bun run "$MERMAID" diagram.mmd -o pretty.svg
# Render all .mmd files to output directory
bun run "$MERMAID" docs/diagrams/*.mmd --outdir docs/diagrams
# Different theme
bun run "$MERMAID" -t dracula diagram.mmd
# Pipe from stdin
echo 'graph TD; A --> B --> C' | bun run "$MERMAID" -o quick.svg
# List themes
bun run "$MERMAID" --list-themes
%%{init:...}%% front matter is stripped automatically (beautiful-mermaid applies its own theming).A --> B). beautiful-mermaid reads A-->B as one node labelled A-- and still exits 0, so check the SVG's data-label values when a diagram looks wrong.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mermaid, diagram-rendering, svg-generation, beautiful-mermaid
npx claudepluginhub ahundt/autorun --plugin autorun-skills11 skills in this plugin
/ai-skill-builderGuides creation, audit, and improvement of portable Agent Skills using the shared SKILL.md format and Anthropic's established methodology, without confusing the portable specification with runtime-specific extensions. Use when the user wants to "create a skill", "create an agent skill", "build a skill", "make a new skill", "write a new skill", "improve an existing skill", "audit my skill", "audit a SKILL.md", "refine my skill", "test a skill", "test skill discovery", "install skills across harnesses", "package a skill for distribution", or needs guidance on skill structure, semantic XML regions, progressive disclosure, description quality, frontmatter, scripts, arguments, security, testing, cross-harness compatibility, or distribution./cli-demo-recorderCreate demo videos for CLI and TUI tools. Use when user asks to "record a demo", "make a demo GIF", "create a demo video", "record my CLI tool", "asciinema demo", "demo recording script". Covers asciinema+agg+ffmpeg pipeline, tmux recording, multi-shell, and dual-purpose demo+test harnesses in Python, Rust, TypeScript, and Bash./function-signature-and-parameter-guidanceDesign and review caller-facing names and contracts: functions, tools, commands, CLI flags,
parameters, config keys, env vars, profiles, event types, and node/edge identifiers.
Check names, descriptions, help, docstrings, schemas, defaults, bounds, units, errors,
outputs, mutation, and whether values reach behavior.
Use when asked to "name a parameter", "parameter naming", "name this tool or command",
"choose a flag, option, or config key", "design an options object", "one tool or two",
"bool or enum here", "name a profile, field, event, node, or edge",
"make names clear and unambiguous", "check ISO, platform, or language naming",
"audit CLI/MCP/JSON-Schema help", "define accepted values or defaults",
"what should this return on failure", "rename this without breaking callers",
"improve an error message", "why did the caller pass the wrong argument",
"why did this parameter do nothing", or "red-team these descriptions".
Not for local variables, general prose, README copy, release notes, or commits.
/streamline-textEdit prose for brevity and scanability without losing facts. Use for requests to "revise", "rewrite", "edit", "polish", "clean up", "clarify", "simplify", "condense", "tighten", "shorten", "streamline", "de-fluff", remove bloat/repetition or unnecessary newlines, fix spelling/typos without changing meaning, make text concise/compact/skimmable, or finalize drafts, messages, notes, docs, reports, issues, or reviews. Activate for "too verbose", "very verbose", or "remove unnecessary newlines", and proactively when text is verbose, wordy, meandering, dense, hard to scan, or has duplicates, vague claims, undefined terms, or cold-reader problems. Preserve evidence, qualifiers, requirements, commands, numbers, and scope with a fact index and restore/cold-reader audit. For public Reddit, Hacker News, social posts, or release notes use public-facing-writing; for PRs use write-maintainer-ready-prs; pair with avoid-ai-isms when text sounds generated./synthesize-project-requirementsCreate one evidence-backed project requirements and gotchas note from cumulative notes, current repository state, git history, and human-authored messages found with AI Session Search. Use when asked to "go through all the notes", "recover project requirements", "mine prior sessions", "collect requirements and gotchas", "make a project memory note", "prepare a project handoff", or preserve decisions and corrections for a handoff. Do not use for a one-off log summary or direct factual answer unless durable project memory or a handoff is requested. Default to the project's notes directory; publish to its documentation only when requested and add a guidance-file pointer only with permission./task-lifecycle-workflowRun a full evidence-to-completion lifecycle for long, correction-heavy, multi-artifact, or release-bound work. Use when asked to "coordinate dependent work", "preserve cumulative requirements", "recover off-rails work", "cold-read the result", or "continue until fully ready". Do not use for planning alone, factual answers, typos, or reversible one-owner work with one check; use Autorun's focused plan skills for those.Other plugins' skills for the same job