Skip to content
Development
Skill

/graphmind

graphmind gives Claude Code persistent memory and structural code intelligence across all registered projects. Auto-triggers in any registered project directory. MANDATORY: query graphmind before using grep, find, or reading source files.

From plugin
graphmind
2181 skill1 MCP

Claude Code

$ npx -y skills add aouicher/graphmind --skill graphmind --agent claude-code

SKILL.md

graphmind.SKILL.md
description: >
  graphmind gives Claude Code persistent memory and structural code intelligence
  across all registered projects. Auto-triggers in any registered project directory.
  MANDATORY: query graphmind before using grep, find, or reading source files.
allowed-tools: Bash, Read, Write

graphmind — Persistent Code Intelligence

MANDATORY: Search through graphmind FIRST

**Before using Grep, find, rg, ag, or reading files to understand code:** You MUST query graphmind first. Only fall back to grep/find if graphmind cannot answer (e.g., string literals, config values, non-code patterns).

| Need | Command | MCP tool | |------|---------|----------| | Find a symbol | `graphmind fn <symbol>` | `gm_fn` | | Search by intent | `graphmind search "<query>"` | `gm_search` | | File dependencies | `graphmind deps <file>` | `gm_deps` | | Who calls X | `graphmind query <symbol>` | `gm_query` | | Blast radius | `graphmind fn-impact <symbol>` | `gm_fn_impact` | | Git change impact | `graphmind diff-impact` | `gm_diff_impact` | | Project overview | `graphmind map` | `gm_map` | | File outline | `graphmind outline <file>` | `gm_outline` | | Raw file content | `graphmind file <file>` | `gm_file` | | Who calls chain | — | `gm_who_calls_chain` | | Dead code | — | `gm_dead_code` | | Cross-project | `graphmind cross query <symbol>` | `gm_cross_query` | | Memory search | `graphmind memory search "<query>"` | `gm_memory_search` |

Is this project registered?

Check: `graphmind status` Register if not: `graphmind register .`

The 3-Layer Rule — always follow this order

Layer 1 — Structural graph (what the code IS)

Query before touching any code:

  • Find a symbol: `graphmind fn <symbol>` or MCP `gm_fn`
  • File dependencies: `graphmind deps <file>` or MCP `gm_deps`
  • Blast radius before editing: `graphmind fn-impact <symbol> --no-tests`
  • Impact of current git changes: `graphmind diff-impact`
  • Entry points: `graphmind map`
  • File structure: `graphmind outline <file>` or MCP `gm_outline`
  • Transitive callers: MCP `gm_who_calls_chain`

Layer 2 — Persistent memory (what was DECIDED, PREFERRED, KNOWN)

Query for context, decisions, conventions:

  • `graphmind memory search "<query>"` or MCP `gm_memory_search`

**AUTO-RECALL:** The hook automatically searches memory on each prompt. Use `gm_memory_search` for deeper/targeted recall.

**AUTO-SAVE:** When the conversation reveals any of the following, immediately save via `gm_memory_add`:

  • **Decisions** (type: decision) — architecture choices, tech choices, trade-off resolutions
  • **Patterns** (type: pattern) — recurring approaches, solutions, code patterns
  • **Conventions** (type: convention) — naming, style, workflow rules
  • **Bugs** (type: bug) — known issues, workarounds, gotchas
  • **Context** (type: context) — business context, project goals, stakeholder info, user preferences

Save rules:

  • Do NOT ask "should I save this?" — just save it
  • Use `project=<slug>` for project-specific facts (or the absolute path of the checkout — in a git worktree, its path selects its own graph and the repo's shared memory)
  • Use `global=true` for user preferences, team conventions, cross-project knowledge
  • Keep entries atomic: one fact per entry, clear and reusable
  • Do NOT save ephemeral task progress or things derivable from code/git

Layer 3 — Raw files (only when layers 1-2 are insufficient)

Read source files only when editing or when the graph doesn't have the answer.

Cross-project queries

When a symbol or pattern might exist in another project: `graphmind cross query <symbol>` or MCP `gm_cross_query`

Session workflow

**Start of session:** run `graphmind session start` → loads graph summary + recent memory **End of session:** run `graphmind session save` → saves decisions and progress to memory

When to rebuild the graph

  • After adding/removing modules or major refactors
  • After `git merge` with structural changes
  • NOT every session — the graph persists between sessions
  • Command: `graphmind build` (fast, SHA256-cached)

NEVER

  • Never use grep/find/rg to search for symbols — use graphmind
  • Never re-read the entire codebase if graphmind can answer it
  • Never manually edit files in `~/.graphmind/`
  • Never rebuild the graph every session
  • Never skip the 3-layer rule
Read more
@aouicher
Ships withgraphmind

Your codebase has a shape. Now your AI can see it. And remember it. GraphMind turns your codebase into a knowledge graph your AI can query, navigate, and remember.

2181 skill1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
218
Star history of aouicher/graphmind on GitHub, a chart by star-history.com

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about graphmind.

Which coding agents can use graphmind?
graphmind installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.