Claude-skill-registry-data memory-graph
Persistent memory graph skill using the MCP Memory server
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/memory-graph" ~/.claude/skills/majiayu000-claude-skill-registry-data-memory-graph && rm -rf "$T"
manifest:
data/memory-graph/SKILL.mdsource content
Memory Graph Skill
This skill teaches you how to create, update, search, and prune a persistent knowledge graph using the Model Context Protocol (MCP) Memory server.
When connected, Memory tools appear as MCP tools named like
mcp__memory__<tool>. Use these tools proactively whenever you identify durable facts, entities, or relationships you want to persist across sessions.
See
operations.md for exact tool I/O shapes and playbooks.md for common patterns and routing rules.
When To Use
- New durable facts emerge (requirements, decisions, owners, IDs, endpoints)
- You meet a new entity (person, team, service, repository, dataset)
- You discover relationships ("Service A depends on Service B", "Alice owns Repo X")
- You want to reference prior sessions or quickly search memory
- You need to prune or correct stale memory
Golden Rules
- Prefer small, well-typed entities over long notes
- Record relationships in active voice:
describes howrelationType
relates tofromto - Add observations as atomic strings; include dates or sources when helpful
- Before creating, search existing nodes to avoid duplicates
- When correcting, prefer
thendelete_observations
over overwritingadd_observations
Auto Triggers
- UserPromptSubmit adds a Memory Graph activation block when durable facts or explicit memory intents are detected. Disable with
.LAZYDEV_DISABLE_MEMORY_SKILL=1 - PostToolUse emits lightweight suggestions when tool results include durable facts. Disable with
.LAZYDEV_DISABLE_MEMORY_SUGGEST=1
Tooling Summary (server "memory")
,create_entities
,add_observationscreate_relations
,delete_entities
,delete_observationsdelete_relations
,read_graph
,search_nodesopen_nodes
Always call tools with the fully-qualified MCP name, for example:
mcp__memory__create_entities.
Minimal Flow
for likely duplicatesmcp__memory__search_nodes
as neededmcp__memory__create_entities
with concise factsmcp__memory__add_observations
to wire the graphmcp__memory__create_relations- Optional:
to verify saved nodesmcp__memory__open_nodes
Error Handling
- If create fails due to existing name, switch to
add_observations - If
fails (unknown entity), retry withadd_observationscreate_entities - All delete tools are safe on missing targets (no-op)
Examples
See
examples.md for end-to-end examples covering projects, APIs, and people.