Skip to content
Back to skills

claude-memory-graph

ASecurity

Visualize Claude Code's memories as an interactive graph. Builds one self-contained HTML file from every memory in ~/.claude/projects/*/memory, grouped by workspace, with [[links]] as edges, search, type filters and a detail panel. Use when the user asks to see, visualize, map or graph their Claude memories, wants to know what Claude remembers about them or their projects, or wants to refresh the graph after editing or cleaning up memories.

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

Works with

  • claude code
  • cursor
  • cli
  • api

Security analysis

A100/100

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

Scanned November 11, 2026

npx -y skills add jubscodes/claude-memory-graph --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of claude-memory-graph?

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

Security grade badge for claude-memory-graph
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jubscodes-claude-memory-graph/badge)](https://www.skillsdirectory.com/skills/jubscodes-claude-memory-graph)

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: claude-memory-graph
description: Visualize Claude Code's memories as an interactive graph. Builds one self-contained HTML file from every memory in ~/.claude/projects/*/memory, grouped by workspace, with [[links]] as edges, search, type filters and a detail panel. Use when the user asks to see, visualize, map or graph their Claude memories, wants to know what Claude remembers about them or their projects, or wants to refresh the graph after editing or cleaning up memories.
---

# Claude memory graph

The skill draws an interactive map of everything Claude Code remembers, across every project. Each memory is a node. Memories cluster around their project, and projects sit inside workspace regions. `[[links]]` between memories become edges.

## Build

Run the builder that sits next to this file (Python 3.8+, stdlib only):

```bash
python3 -I <this skill's directory>/build.py <output.html>
```

For a typical install that is:

```bash
python3 -I ~/.claude/skills/claude-memory-graph/build.py ~/claude-memory-graph.html
```

- If the user named an output path, use theirs. Otherwise pick a place they can easily open, and tell them the full path.
- If the user plans to share the graph, add `--no-bodies` so only names and descriptions are embedded, not the full memory text.
- Options: `--root` points at a different projects dir (by default `$CLAUDE_CONFIG_DIR/projects` or `~/.claude/projects`). `--home` sets the home path used to shorten labels.
- The builder prints `N memories, N links, N dangling, N projects, N workspaces -> path`. Report those numbers.
- It asserts that node ids are unique and that every edge points at a real node. If an assertion fails, report the error. Don't hand over a broken file.

On Windows, the interpreter is usually `python` or `py` rather than `python3`.

Open the file in a browser for the user if your environment allows it (`open` on macOS, `xdg-open` on Linux, `start ""` on Windows). If a sandbox blocks that, give them the command to run.

## How it reads memories

- **Nodes:** every `*.md` in each `<projects>/<dir>/memory/` except `MEMORY.md`. Temporary session dirs (`-private-…`, `-tmp-…`, `-var-folders-…`) are skipped.
- **Fields:** frontmatter `name`, `description` and `type`, whether top-level or nested under `metadata:`. A missing `type` shows as `unknown`.
- **Edges:** `[[target]]` in a memory's body. A link resolves by `name`, then by filename, and prefers the same project. Links that don't resolve are counted as "dangling".
- **Projects:** a dir's name is its working directory with every non-alphanumeric character replaced by `-`. The builder strips the home prefix and one container folder (`Projects`, `code`, `src`, `repos`, …), so `-Users-ana-Projects-acme-api` becomes `acme-api`. The home dir itself is `home`.
- **Workspaces:** a project joins the workspace of the shortest other project whose label prefixes it at a `-`, so `acme-api` and `acme-web` both join `acme`. Projects with no parent dir form their own workspace.

## Using the page

- Hover a node for its name and date. Click one for its description, file path and links in both directions.
- Search opens a results list in the side panel, grouped by workspace and showing a snippet of each description. Enter opens the first result. Clicking a result centers it and shows its details, with "← results" to go back.
- Clicking a memory opens a reader with its full text. `[[links]]` inside it jump to the linked memory.
- The theme menu offers Auto (follows the system light/dark setting), Paper, Ink, Blueprint, Neon, Print, Claude, Cursor, Skeuo and Cyber. Zoom with the +/−/fit buttons, F to fit, / to search. The choice is remembered in that browser.
- The type chips toggle memory types.
- Legend: clicking a workspace, project or type focuses it (shows only it), and clicking it again shows everything. ⇧/⌘-click adds or removes items; hovering a row previews it on the canvas; "Show all" resets the filters.
- Drag to pan, scroll to zoom, and drag nodes to move them. Esc closes the panel.

## Rules

- The page is read-only and never changes memories.
- The HTML embeds every memory's name, description and full text, unless it was built with `--no-bodies`. Tell the user that before they share it, and never commit it to a public repo.
- The output is a single offline file with no network requests. The one exception is Omarchy, where the page also loads its local `<output>.theme.js` sidecar (see below). Keep it that way if you change the template.
- On Omarchy, the builder reads the active theme from `~/.local/state/omarchy/current/theme/` (or the older `~/.config/omarchy/current/theme/`) and the page defaults to a matching "Omarchy" theme. The builder also writes `<output>.theme.js` beside the graph; the open page re-reads it every 2 seconds and re-themes itself live. To follow theme switches without a rebuild, install the bundled hook once with `omarchy hook install theme-set <this skill's directory>/hooks/omarchy-theme-set`: it runs `build.py --theme-only <output.html>` on every Omarchy theme change, which refreshes only that file. The hook assumes the graph is at `~/claude-memory-graph.html`; set `CLAUDE_MEMORY_GRAPH` in it for another path. Keep the two files together if the graph is moved.
- To add a theme, add a `:root[data-theme="…"]` token block to the template's CSS and an entry to its `THEMES` array. The canvas reads the same tokens.

Files in this skill

  • SKILL.md5.3 KB
  • build.py12.1 KB
  • demo/make_demo.py6.5 KB
  • fonts/Lora-Italic-wght.woff222.2 KB
  • fonts/Lora-wght.woff236.9 KB
  • fonts/OFL-Lora.txt4.3 KB
  • fonts/OFL-Poppins.txt4.3 KB
  • fonts/Poppins-400.woff27.7 KB
  • fonts/Poppins-600-Italic.woff28.5 KB
  • fonts/Poppins-600.woff27.8 KB
  • hooks/omarchy-theme-set530 B
  • template.html48.2 KB
  • test_build.py5 KB

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.