Skip to content
Back to skills

Graph Memory

ASecurity

Push graph memory over a modelled corpus. Runs a SQLite walk before any model answers. Use when the user asks who signs something off, multi-hop policy/role/person questions, graph memory, or to compare graph recall against hybrid RAG. Do not use for ordinary vault search; that is fde-kb.

  • 30 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 8, 2026
ai-agentsbashsql

Works with

  • cli

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill graph-memory --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Graph Memory?

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

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

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: graph-memory
description: "Push graph memory over a modelled corpus. Runs a SQLite walk before any model answers. Use when the user asks who signs something off, multi-hop policy/role/person questions, graph memory, or to compare graph recall against hybrid RAG. Do not use for ordinary vault search; that is fde-kb."
---

# Graph memory (push recall)

`<skill>` is the directory that contains this SKILL.md.

Typed facts in SQLite. One recursive walk. The launcher prints the facts. Whatever model you already have reads them and answers. The skill does not pick, pin, or call a model.

This is a sibling of `fde-kb`. fde-kb is pull search over notes. This skill is push recall over asserted triples. Do not fold one into the other.

## STOP

First action is exactly one launcher command. Show stdout. Then answer from the printed facts with the model you already have. Do not switch models. Do not grep the corpus when recall returned facts. If the output says `(no memory matches for this prompt)`, say so and stop. Do not guess.

Never write a new graph walker, embedder, or HTTP client. Never dump `corpus/` into context. Never require a named vendor model or a vendor hook.

## Launcher (always this)

- **macOS / Linux:** `<skill>/scripts/graph-memory`
- **Windows:** `<skill>/scripts/graph-memory.cmd`

```bash
<skill>/scripts/graph-memory recall "the user's question"
```

```bat
<skill>\scripts\graph-memory.cmd recall "the user's question"
```

## Setup (once)

```bash
<skill>/scripts/graph-memory build
```

Writes `graph.db` next to the skill (or `GRAPH_MEMORY_DB`). Do not commit that file.

## Commands

| User says | Run |
|-----------|-----|
| who signs this off / what does the graph say | `graph-memory recall "question"` |
| rebuild the graph | `graph-memory build` |
| prove pull vs push | `graph-memory compare` (optional question; default is the refund trap) |

`compare` needs sibling `skills/fde-kb`. It indexes unstructured `corpus-before` as a throwaway vault and prints JSON for both paths.

## How to answer

1. Run `recall` with the user's actual question.
2. Put the printed facts in context.
3. Answer from those facts. Cite the `source_doc` on each triple.
4. Conditions (amounts, dates) live under `where:`. Apply them. The walk does not filter by date.
5. If there are no matches, say the graph has nothing. Do not invent a person.

Optional submit hook: [hooks.json](hooks.json) + `src/recall_hook.py`. This skill works without it. Prefer the CLI.

## Demo questions (shipped corpus)

- `A customer wants an £800 refund in March. Who signs it off?` → Marcus Webb
- `Who approves supplier payments over £2,000?` → Alex Doyle
- `What is the onboarding process?` → Ops Manager, day-one checklist
- `What does Priya do?` → Support Lead
- `Who is in charge when the boss is away?` → no memory matches

## Red flags

- Calling fde-kb search instead of `recall` for a graph-memory question
- Switching to a "smarter" model to compensate for missing facts
- Treating empty recall as a cue to read `corpus-before/`
- Committing `graph.db`

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.