SkillsGrove
SkillsGrove/Productivité/vladignatyev/brain-map-skill/brain-map

brain-map

Installation

$npx skills add https://github.com/vladignatyev/brain-map-skill --skill brain-map
$git clone --depth 1 https://github.com/vladignatyev/brain-map-skill.git /tmp/brain-map-skill && mkdir -p ~/.claude/skills && cp -r /tmp/brain-map-skill/. ~/.claude/skills/brain-map
Installe pour moi cette Agent Skill : https://github.com/vladignatyev/brain-map-skill/tree/f2971b987429432bba02b7a9d30fe2d496d72006/ — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MITRender an interactive HTML knowledge map from a folder of Markdown notes (an Obsidian vault or a `gbrain export` directory) — a force-directed graph coloured by theme, with a brushable timeline that shows the knowledge base growing over time and a click-to-inspect detail panel. Use when the user says "visualize my notes/vault/brain", "show me the knowledge graph", "make a brain map", "graph of my gbrain/obsidian", "/brain-map", or wants an at-a-glance picture of what's in their notes for analysis or a presentation/demo.
Le SKILL.md ci-dessous est reproduit depuis vladignatyev/brain-map-skill (commit f2971b9) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2026 Vladimir Ignatev. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

brain-map — interactive knowledge map from your notes

One command turns a folder of Markdown into a single self-contained .html: a force-directed graph (themes as colour, note types as shape, hubs labelled), a timeline you can scrub to watch the base grow, search + theme/type filters, and a detail panel for any node. Reads plain Markdown — pairs with the save-note skill, but works on any Obsidian vault.

Try the bundled demo first (no setup)

A prebuilt map ships in this skill — no notes to generate, no embeddings, no gbrain, no Python. Just open it:

open demo/brain-map.html        # macOS   (xdg-open on Linux, start on Windows)

992 fictional notes across three themes (work · study · life). Scrub the timeline, hit Play, click nodes, toggle filters. That's the whole experience.

Build from the user's own notes

The builder reads a directory of Markdown with YAML frontmatter (tags, created) and [[wikilinks]]. Two common sources:

  • Obsidian vault — point straight at the vault folder. This always works.
  • gbrain — GBRAIN_HOME=<brain> gbrain export --dir <out>, then point at <out>.
python3 scripts/build_map.py <notes_dir> out.html --title "My Second Brain"

Open out.html. It's one file, Cytoscape loaded from CDN.

Dependencies are optional

  • None required. With only stdlib Python, the builder ships no positions and the browser computes the force layout (Cytoscape cose) — works anywhere, rougher on big/disconnected graphs.
  • Prettier + instant for 1000+ node maps: pip install networkx numpy scipy (see requirements.txt). Then layout is pre-computed and the file opens immediately. The builder auto-detects networkx and picks the better path.

How it reads the notes

  • Theme = top-level folder — your own folders become the themes, each given a stable colour from a palette (no fixed taxonomy is imposed). Work/, Study/, Life/ keep their legacy colours when present; root-level notes → "Other". Drives node + edge colour.
  • Type = subfolder/tags → node shape: People/→person, Meetings/→meeting, Journal/→journal, Lectures/→lecture, Project/→project, Links/→link, todo/index tags → those; else note.
  • Edges = resolved [[wikilinks]] (matched by note title). Node size scales with degree; nodes with ≥7 links get a permanent label (the hubs).
  • Timeline = created timestamps bucketed by month, stacked by theme. When a note has no created in its frontmatter, the file's own birth/modified time is used instead, so vanilla Obsidian vaults still get a timeline.

Richer cross-linking (people cards, meeting attendees, index/MOC pages) ⇒ a more legible map. save-note's people-registry + [[links]] are what make it cluster.

What the user can do in the HTML

  • Scrub / Play the timeline → graph filters to notes up to that month; Play animates the base growing from empty to today.
  • Filter by theme and type (live counts); search highlights matches.
  • Click a node → dim the rest, light up its neighbourhood, open a panel with summary, tags, date, and a clickable list of connected notes.
  • Responsive: collapses to a phone-friendly layout on narrow screens.

Regenerate the demo corpus (optional)

scripts/generate_demo_notes.py writes the 992-note fictional vault (all invented — no real data) in save-note format:

python3 scripts/generate_demo_notes.py /tmp/demo-vault
python3 scripts/build_map.py /tmp/demo-vault demo.html --title "Demo"

Report

Give the user the output path, headline counts (nodes/edges/date span), and the theme + type breakdown. Offer open out.html, or screenshot it headless:

"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
  --headless=new --disable-gpu --window-size=1600,1000 \
  --virtual-time-budget=9000 --screenshot=preview.png "file://$PWD/out.html"

Notes

  • Read-only: never writes to the vault or the brain.
  • Title collisions get a short hash suffix so no note is dropped.
  • Re-run after adding notes to refresh; it's idempotent.
Voir le texte intégral de la licence (MIT)
MIT License

Copyright (c) 2026 Vladimir Ignatev

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.