Memory Skill — Claude

Retrieve relevant Markdown vault context and persist schema-compliant updates.

2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/Long-as-Python/Agent-memory-system --skill memory-skill-claude
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Memory Skill — Claude
Source: https://github.com/Long-as-Python/Agent-memory-system/tree/main/skills/claude
Command: npx skills add https://github.com/Long-as-Python/Agent-memory-system --skill memory-skill-claude

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps Claude reliably retrieve only the relevant long-term memory context and then write back updates without breaking the shared memory contract.

Core Features & Use Cases

  • Pre-task retrieval pipeline: Reads the vault index, selects appropriate starting nodes by type and tags, performs bounded link traversal, and extracts constraints, decisions, open questions, and active tasks into a working context.
  • Post-task write-back with guardrails: Applies a write gate (update canonical docs vs create new ones via templates), enforces link requirements, updates the vault index using the shared rules, and performs consolidation checks for related notes.
  • Claude-specific stance: Prefers converting ambiguity into notes over aggressive merges, while still respecting retrieval budget and frontmatter/schema requirements.

Quick Start

Use the Memory Skill — Claude to retrieve memory/indexes/mem-index-vault.md, build a bounded context for your current task, and then write back any new or updated memory documents using the shared adapter contract rules.

Frequently Asked Questions about Memory Skill — Claude

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I connect a long-term markdown vault to Claude for context retrieval?

To connect a long-term markdown vault to Claude, use a retrieval pipeline that reads the vault index, selects starting nodes, and performs bounded link traversal. This extracts constraints and active decisions into a working context for your tasks.

What is the best way to write updates back into a knowledge graph without breaking the schema contract?

Writing updates back into a knowledge graph requires applying a write gate to update canonical docs or create new ones via templates. This enforces mandatory links, updates the vault index following shared rules, and performs consolidation checks.

How does bounded link traversal work when retrieving memory from a markdown vault?

Bounded link traversal retrieves memory by reading the vault index and navigating linked entities up to depth 2 and a maximum of 10 nodes. This ensures the agent stays within a fixed document budget while gathering contextual constraints.

Can I use Claude to manage active decisions and open questions in a memory vault?

Yes, Claude can manage active decisions and open questions by retrieving them from your memory vault before a task. Post-task, it converts ambiguity into new notes rather than aggressively merging existing documents.

Does memory retrieval from a knowledge graph require a specific vault index format?

Memory retrieval requires a vault index formatted as mem-index-vault.md. The retrieval pipeline reads this index to select appropriate starting nodes by type and tags before performing bounded link traversal.

What are the limitations of using a fixed traversal and document budget for memory retrieval?

A fixed traversal and document budget limits the retrieved context to a maximum of 10 nodes at depth 2. This prevents context overflow but requires precise starting node selection from the vault index to avoid missing relevant constraints.