Convert Mermaid diagrams into animated GIFs with rich animation effects. Supports .mmd files and extracting ```mermaid code blocks from .md files.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmermaid-to-gifExecute the skills CLI command in your project's root directory to begin installation:
Fetches mermaid-to-gif from zc277584121/marketing-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate mermaid-to-gif. Access via /mermaid-to-gif in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
2
total installs
2
this week
0
upvotes
Run in your terminal
2
installs
2
this week
—
stars
Convert Mermaid diagrams into animated GIFs with rich animation effects. Supports .mmd files and extracting ```mermaid code blocks from .md files.
Prerequisites: FFmpeg, Python 3.8+, Playwright (
pip install playwright && playwright install chromium)
.mmd files or .md files containing mermaid code blocksIMPORTANT: When converting mermaid blocks from .md files, read the surrounding markdown context to choose the most appropriate animation style for each diagram. Do NOT blindly apply the same style to all blocks.
| Context Clue | Recommended Style | Reasoning |
|---|---|---|
| Data pipeline, ETL flow, request/response path | pulse-flow |
Flowing dashed lines convey data movement |
| Architecture layers, org chart, hierarchy | progressive |
Elements activate layer-by-layer |
| Step-by-step process, tutorial walkthrough | highlight-walk |
Spotlight guides the reader through each step |
| System overview, title diagram, simple reference | wave |
Brightness ripple adds life without distraction |
| Sequence diagram with message flow | progressive |
Messages activate one by one in conversation order |
| Class/ER diagram (reference/static) | progressive or wave |
Structure lights up or gets a subtle ripple |
Consider special handling:
pulse-flow even for a simple flowchartprogressive to activate layer-by-layerwave to keep it simplewave or shorter --duration to keep GIF size reasonablePer-block style override: When batch-processing a .md file, you may need to run the script multiple times with different styles, extracting specific blocks. Or process the whole file with a sensible default and re-run individual blocks that need different treatment.
## Data Ingestion Pipeline ← context: "pipeline" → pulse-flow
[mermaid block: graph LR with ETL stages]
## System Architecture ← context: "architecture" → progressive
[mermaid block: graph TD with layers]
## Quick Reference ← context: "reference" → wave
[mermaid block: simple diagram]
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py diagram.mmd
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py document.md -o ./images/
This extracts all ```mermaid code blocks and generates one GIF per block.
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py *.mmd -o ./gifs/
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py doc1.md doc2.md -o ./gifs/
After generating GIFs, replace the original ```mermaid code blocks with image references:

Use descriptive alt text based on the diagram content. The image path should be relative to the markdown file.
All styles keep the diagram fully visible from frame 1 — no elements start hidden or fade in from zero. Every style adds motion while the user can see the complete diagram structure at all times.
| Style | Effect | Best For |
|---|---|---|
progressive (default) |
All elements start dimmed (25% opacity), activate sequentially to full brightness; edges draw in with stroke animation | Flowcharts, architecture, hierarchy |
highlight-walk |
All elements start dimmed (15%); a spotlight with blue glow moves through each element, leaving visited ones bright | Step-by-step process, tutorials |
pulse-flow |
All elements fully visible; edges become flowing dashed lines (uniform dash size and speed) | Data flow, pipelines, request paths |
wave |
All elements fully visible; a brightness pulse + blue glow ripple sweeps through elements sequentially | Simple diagrams, overviews, reference |
| Flag | Default | Description |
|---|---|---|
-o, --output-dir |
Same as input | Output directory for generated GIFs |
-s, --style |
progressive |
Animation style (see table above) |
--fps |
10 |
Frames per second |
--duration |
4.0 |
Animation duration in seconds |
--hold |
1.0 |
Hold last frame before looping (seconds) |
--theme |
default |
Mermaid theme: default, dark, forest, neutral |
--bg |
#ffffff |
Background color (hex) |
--padding |
40 |
Padding around diagram in pixels |
--scale |
2 |
Render scale factor (2 = retina quality) |
--custom-css |
— | Path to custom CSS file |
--no-loop |
— | Play GIF once instead of looping |
# Dark theme with faster animation
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py arch.mmd --theme dark --bg "#1a1a2e" --duration 3
# High FPS for smoother animation
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py flow.mmd --fps 15 --duration 5
# Batch convert all mermaid blocks from a doc
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py README.md -o ./images/
# Custom CSS for special effects
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py diagram.mmd --custom-css my-style.css
# No loop, suitable for one-time playback
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py intro.mmd --no-loop --duration 6
# Lower resolution for smaller file size
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py diagram.mmd --scale 1
Create a CSS file to customize the appearance of the diagram during animation:
/* Rounded nodes with shadow */
.node rect {
rx: 10;
filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}
/* Thicker edge lines */
.edgePath path {
stroke-width: 2.5;
}
/* Custom background for actors (sequence diagram) */
.actor {
fill: #e8f4f8;
}
Pass it via --custom-css:
python ${CLAUDE_SKILL_ROOT}/scripts/mermaid_to_gif.py diagram.mmd --custom-css my-style.css
.mmd or .md filessetProgress(t) for frame-by-frame control (t: 0→1). Elements are collected, sorted by position (respecting LR/TB direction), and animated in interleaved node-edge order--scale 1 for smaller files--scale 1, or use wave stylePrerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
intellectronica/agent-skills
imxv/pretty-mermaid-skills
davila7/claude-code-templates
am-will/codex-skills
sickn33/antigravity-awesome-skills
myzy-ai/dokie-ai-ppt
mermaid-to-gif fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
mermaid-to-gif reduced setup friction for our internal harness; good balance of opinion and flexibility.
I recommend mermaid-to-gif for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
mermaid-to-gif is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
We added mermaid-to-gif from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
mermaid-to-gif is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Useful defaults in mermaid-to-gif — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Keeps context tight: mermaid-to-gif is the kind of skill you can hand to a new teammate without a long onboarding doc.
mermaid-to-gif reduced setup friction for our internal harness; good balance of opinion and flexibility.
mermaid-to-gif is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
showing 1-10 of 55