agentleFS
aouicheraouicher/graphmind/SKILL.md

SKILL.md

Skill213 starsChanged 6 months agoMITView on GitHub

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.

200 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 9 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 119 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

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

    line 54
  2. Distinctive:

    Do NOT ask "should I save this?" — just save it

    line 62
  3. Very specific:

    Use project=<slug> for project-specific facts

    line 63
  4. Very specific:

    Use global=true for user preferences, team conventions, cross-project knowledge

    line 64
  5. Distinctive:

    Keep entries atomic: one fact per entry, clear and reusable

    line 65
  6. Distinctive:

    Do NOT save ephemeral task progress or things derivable from code/git

    line 66
  7. Distinctive:

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

    line 69
  8. Very specific:

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

    line 72
  9. Very specific:

    Start of session: run graphmind session start → loads graph summary + recent memory

    line 76
  10. Very specific:

    End of session: run graphmind session save → saves decisions and progress to memory

    line 77
  11. Distinctive:

    After adding/removing modules or major refactors

    line 80
  12. Distinctive:

    After git merge with structural changes

    line 81
  13. Distinctive:

    NOT every session — the graph persists between sessions

    line 82
  14. Very specific:

    Never use grep/find/rg to search for symbols — use graphmind

    line 86
  15. Very specific:

    Never re-read the entire codebase if graphmind can answer it

    line 87
  16. Very specific:

    Never manually edit files in ~/.graphmind/

    line 88
  17. Distinctive:

    Never rebuild the graph every session

    line 89
  18. Distinctive:

    Never skip the 3-layer rule

    line 90

“Common” is measured: kept by at least 6 in 10 of the 119 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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).

NeedCommandMCP tool
Find a symbolgraphmind fn <symbol>gm_fn
Search by intentgraphmind search "<query>"gm_search
File dependenciesgraphmind deps <file>gm_deps
Who calls Xgraphmind query <symbol>gm_query
Blast radiusgraphmind fn-impact <symbol>gm_fn_impact
Git change impactgraphmind diff-impactgm_diff_impact
Project overviewgraphmind mapgm_map
File outlinegraphmind outline <file>gm_outline
Raw file contentgraphmind file <file>gm_file
Who calls chain—gm_who_calls_chain
Dead code—gm_dead_code
Cross-projectgraphmind cross query <symbol>gm_cross_query
Memory searchgraphmind 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
  • 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.