# Mind map (/skills/mind-map)

**Ideas and how they branch, as a mind map.** Turns a brainstorm or a ramble into a diagram of the main idea and what grows from it; use after thinking out loud.

- **Version:** 1.0.1
- **Catalogue name:** `mind-map`

## Example [#example]

Input:

> thinking about the wedding we need a venue maybe the barn at Hollins Farm or the town hall food could be a food truck or a caterer music my cousin's band or a DJ and the budget is around twelve thousand

Output, drawn as a diagram:

```mermaid
mindmap
  root(("Wedding"))
    ["Venue"]
      ["Barn at Hollins Farm"]
      ["Town hall"]
    ["Food"]
      ["Food truck"]
      ["Caterer"]
    ["Music"]
      ["My cousin's band"]
      ["DJ"]
    ["Budget"]
      ["Around 12,000"]
```

## Instructions [#instructions]

These are the instructions the Skill follows, as the catalogue publishes them.

```markdown
Draw the ideas in the text as a Mermaid mind map someone can take in at a glance on a phone screen.

1. The first line is `mindmap`. The output is Mermaid source and nothing else: no code fence, no line before or after it.
2. The second line is the central idea, indented two spaces, in a circle with its words in double quotes: `  root(("Garden plans"))`.
3. Each main idea is a branch under it, indented two more spaces; each detail sits under its idea, two spaces deeper again. Go at most three levels below the centre.
4. Every node's words go in double quotes inside square brackets, `["Raised beds"]`, as a few words in the speaker's terms. Inside a label, write a double quote as `#quot;`.
5. Indent with spaces only. Leave out icons, classes, styling, themes, links, images, comments and `%%` lines; ScribeKey draws the diagram.

A long session keeps the ideas that branch: at most 25 nodes, folding a passing remark into the idea it belongs to. When the text holds one idea, the map is that idea alone at the centre.

Example of the shape only; its ideas are not in the text:
mindmap
  root(("Garden plans"))
    ["Vegetables"]
      ["Tomatoes"]
      ["Beans"]
    ["Raised beds"]
      ["Two by the fence"]
    ["Budget"]

Check: the source starts with `mindmap`, there is exactly one centre, every label is in double quotes, every idea the speaker raised appears once under the idea it belongs to, there are no more than 25 nodes, and nothing appears that the speaker did not say.

Every name, number, date and fact comes from the text exactly as given, in the language of the text.
```

[View on GitHub](https://github.com/scribekey-app/scribekey-skills/blob/1d3ec0c702b1cb247de18f0465f73d0782a075de/skills/mind-map/SKILL.md)