
mermaid-mind-map
Generates Mermaid mindmap diagrams from codebases, topics, files, or conversations. Visually summarizes source material as branching diagrams. Use when asked to create a Mermaid mind map, visualize a topic, map out a codebase, summarize a file as a diagram, generate a concept map, or create a visual overview.
- Installs
- 124
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/mblode/agent-skills --skill mermaid-mind-map- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads mermaid-mind-map automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Mermaid Mind Map
Analyze source material and produce a Mermaid mindmap diagram with 2-4 levels of branching hierarchy.
Reference Files
| File | Read When |
|---|---|
references/mermaid-syntax.md | Default: mind map node shapes, indentation, icons, known limitations |
references/generation-guidelines.md | Default: node text constraints, depth control, source-type strategies |
references/mermaid-reference.md | Generating non-mind-map Mermaid diagrams or needing broader syntax |
Workflow
Copy this checklist to track progress:
Mind map progress:
- [ ] Step 1: Determine source type
- [ ] Step 2: Set scope (depth, budget, central concept)
- [ ] Step 3: Extract structure
- [ ] Step 4: Generate Mermaid mind map
- [ ] Step 5: Validate output
- [ ] Step 6: Present to user
Step 1: Determine source type
Identify which source type applies and run the corresponding discovery actions:
- Topic exploration: User names a concept. Ask one clarifying question about scope or audience if ambiguous. No file scanning needed.
- Codebase overview: Scan project structure. Read key config files (
package.json,pyproject.toml, etc.). Map modules, entry points, and dependencies. - File/document summary: Read the target file. Extract key themes, sections, and relationships between ideas.
- Feature planning / debugging: Gather requirements or symptoms. Decompose into components, phases, or possible causes.
Step 2: Set scope
Choose a depth level using the table in references/generation-guidelines.md (overview, standard, or detailed). Ask the user only if unclear. Default to standard (3 levels, 15-30 nodes).
Set the central concept: one clear noun or short phrase (1-3 words) for the root node. Total node budget: 40 max.
Step 3: Extract structure
- Identify 3-7 main branches from the source material (5 is ideal).
- For each branch, identify 2-5 sub-nodes per the depth setting.
- Group related concepts under the same branch.
- Each node must be a single keyword or short phrase, never a sentence.
- See
references/generation-guidelines.mdfor node text word limits and keyword extraction techniques.
Step 4: Generate Mermaid mind map
Load references/mermaid-syntax.md for exact syntax. Generate inside a fenced mermaid code block.
Use node shapes intentionally (see references/generation-guidelines.md for the full shape strategy):
- Root:
((circle))for the central concept - Main branches:
[square]for categories,(rounded)for processes - Leaf nodes: default for general items,
{cloud}for uncertain items
Step 5: Validate
Run these checks before presenting. If any fail, revise and re-check:
- Total node count (including root) is 40 or fewer
- Maximum depth does not exceed selected level
- No node text exceeds 6 words
- Root node text is 1-3 words
- Each main branch has 2-7 children
- No single-child branches (merge upward if found)
- No unescaped
()[]{}in plain-text nodes (will break Mermaid parsing) - Branch depths are balanced (within 1 level of each other)
Step 6: Present output
Output the mind map in a fenced mermaid code block:
```mermaid
mindmap
root((Central Concept))
[Branch 1]
Sub-topic A
Sub-topic B
[Branch 2]
Sub-topic C
(Process D)
```
Note where it renders: GitHub markdown, Mermaid Live Editor, VS Code with Mermaid extension.
If the user requests a file, write to a .md file containing the fenced block.
Anti-patterns
- Sentences as node labels (split into parent concept with child details instead)
- Depth beyond 4 levels (Mermaid becomes unreadable; split into multiple maps)
- More than 40 nodes (split into multiple focused maps)
- Adding icons unless requested (require Font Awesome, may not render)
- Mixing
mindmapwith other Mermaid diagram types in one code block
Related skills
presentation-creatorfor slide decks that complement visual overviewsdefine-architecturefor detailed architecture decisions beyond visual mapping
FAQ
What does the mermaid-mind-map skill do?
Generates Mermaid mindmap diagrams from codebases, topics, files, or conversations. Visually summarizes source material as branching diagrams. Use when asked to create a Mermaid mind map, visualize a topic, map out a codebase, summarize a file as a diagram, generate a concept map, or create a visual overview.
How do I install mermaid-mind-map?
Run npx skills add https://github.com/mblode/agent-skills --skill mermaid-mind-map in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/mermaid-mind-map/ (personal) or .claude/skills/mermaid-mind-map/ (project).
Which AI agents can use mermaid-mind-map?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is mermaid-mind-map safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains mermaid-mind-map?
It is published by mblode in mblode/agent-skills. It has 124 recorded installs.
More from mblode/agent-skills
ui-animation
mblode/agent-skills
Builds, reviews, and measures UI motion, including springs, gestures, scroll effects, curve fitting from recordings, and sparse interface sound. Use when asked to "add animation", "match this easing", "reverse engineer this motion", "add a click sound", or find animation opportunities.
multi-tenant-architecture
mblode/agent-skills
Designs tenant isolation, hostname routing, custom-domain lifecycle, and plan limits on Cloudflare or Vercel. Use when asked to "isolate tenant data", "support custom domains", "build a white-label platform", or assess PSL registration. For general module structure use codebase-architecture; for SEO content use seo.
ui-design
mblode/agent-skills
Designs and builds React/Next/Tailwind UI, audits visual and interaction defects, and stress-tests components with worst-case data. Use when asked to "build a landing page", "extract our design system", "add dark mode", "make this responsive", "remove UI slop", "audit this component", "stress-test this component", "break this UI", or "show me the worst case".
typography-audit
mblode/agent-skills
Audits font loading, type scales, measure, spacing, OpenType, and rendered punctuation with 78 scoped rules. Use when asked to "audit typography", "fix the fonts", or "review my type system". For a new visual direction use ui-design Direction; for general UI defects use ui-design Audit.
agent-skills-creator
mblode/agent-skills
Creates and improves portable Agent Skills with a validator, routing scenarios, and evidence-based keep, cut, merge, or retire decisions. Use when asked to "write a skill", "update all skills", "audit my SKILL.md", "remove redundant instructions", or fix skill triggering.
docs-writing
mblode/agent-skills
Writes and audits technical docs with Diataxis type gating, runnable examples, and 51 documentation rules. Use when asked to "review my docs", "write an API reference", or improve a documentation page. For a whole README use readme-creator; for agent instructions use agents-md.
Popular docs & writing skills
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
lark-markdown
open.feishu.cn
飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。
writing-beats
mattpocock/skills
Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.
writing-shape
mattpocock/skills
Writing, exploit: shape raw material into an article, paragraph by paragraph.
writing-fragments
mattpocock/skills
Writing, explore: mine raw fragments, no structure yet.
writing-for-agents
mattpocock/skills
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.