Skip to content
Back to skills

Mindmap

ASecurity

Generate mind map images using mind-elixir. Produces PNG or SVG files from plaintext input. Use when the user needs a mind map, concept map, or topic overview drawn as a radial tree. 中文说法 — "画思维导图", "梳理结构", "做个脑图". Not for flowcharts, sequence, causal, relationship or state diagrams (diagram).

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 11, 2026
ai-agentsbashnodeaws

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add clearsmog/claude-skills --skill mindmap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mindmap?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mindmap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/clearsmog-mindmap/badge)](https://www.skillsdirectory.com/skills/clearsmog-mindmap)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mindmap
description: Generate mind map images using mind-elixir. Produces PNG or SVG files from plaintext input. Use when the user needs a mind map, concept map, or topic overview drawn as a radial tree. 中文说法 — "画思维导图", "梳理结构", "做个脑图". Not for flowcharts, sequence, causal, relationship or state diagrams (diagram).
allowed-tools: Bash, Write, Read
argument-hint: <topic or "plaintext content"> [-o path] [--format png|svg] [--theme academic|latte|dark] [--direction side|right|left] [--typst] [--caption "..."]
---

Generate a mind map image from a topic or plaintext mind map content.

## Setup (first run only)

If `${CLAUDE_SKILL_DIR}/scripts/node_modules` does not exist, install from the committed
`package-lock.json` (npm is the lockfile owner here, so not `bun install`):

```bash
cd ${CLAUDE_SKILL_DIR}/scripts && npm ci
```

## Workflow

1. **Generate plaintext mind map content** from `$ARGUMENTS`. If the user provides a short topic, expand it into a full mind map tree (3-4 branches, 3-5 leaves each). If the user provides plaintext content, use it directly.

2. **Write the plaintext** to `mindmap-input.txt` in the session scratchpad directory (`<scratchpad>` below). A fixed `/tmp` path gets overwritten by parallel sessions.

3. **Run the script** to render the mind map:

```bash
node ${CLAUDE_SKILL_DIR}/scripts/generate_mindmap.mjs -i "<scratchpad>/mindmap-input.txt" -o "<output-path>" [flags...]
```

4. **Print the script's stdout** to the user, then Read the PNG to check it: every node label legible, no branch clipped at the edge.

**Done when:** the output file exists and you have read the rendered image.

## Plaintext format

Use mind-elixir plaintext: a markdown-style indented list. Two-space indentation per level.

```
- Root Topic
  - Branch 1
    - Leaf 1a
    - Leaf 1b
    - Leaf 1c
  - Branch 2
    - Leaf 2a
    - Leaf 2b
  - Branch 3
    - Leaf 3a
    - Leaf 3b
    - Leaf 3c
```

Keep topics **short** (2-5 words per node). Aim for 3-5 branches, 3-5 leaves per branch, max 3 levels deep.

For node colors, arrows, and summaries, see [references/advanced-syntax.md](references/advanced-syntax.md).

## Flags

`-i` input, `-o` output (`.png` or `.svg`; the format follows the extension), `-f png|svg`, `-t academic|latte|dark`, `-d side|right|left`, `-s` scale (default 3), `--typst`, `--caption "..."`, `--typst-width 90%`

The `.svg` output is the PNG render inside an SVG container (mind-elixir draws DOM, not SVG): it is raster, so prefer `.png` with a higher `-s` unless a file must end in `.svg`. `--typst` prints the path exactly as passed to `-o`, so pass it relative to the `.typ` file.

`-o` is required (the script has no `--dir` and no auto-naming): unless the user gives a path, use `mindmaps/<topic-slug>.png`.

## Example invocation

For `/mindmap "Portfolio Theory"`:

```bash
node ${CLAUDE_SKILL_DIR}/scripts/generate_mindmap.mjs \
  -i "<scratchpad>/mindmap-input.txt" \
  -o "mindmaps/portfolio-theory.png"
```

Files in this skill

  • SKILL.md2.1 KB
  • references/advanced-syntax.md928 B
  • scripts/generate_mindmap.mjs9.7 KB
  • scripts/package-lock.json40 KB
  • scripts/package.json150 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.