Agent skill

Memory Fabric

by yonatangross in yonatangross/orchestkit

Memory retrieval internals: knowledge graph orchestration with entity extraction, natural language query parsing, deduplication (85% similarity), and cross-reference boosting over unified recency…

MITAuto-check: notesKnowledge Management

Install Memory Fabric

skills CLI
$ npx skills add yonatangross/orchestkit --skill memory-fabric -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yonatangross/orchestkit memory-fabric --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yonatangross/orchestkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/memory-fabric .claude/skills/memory-fabric && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
memory-fabric
GitHub stars
290
Token cost
~1.8k tokens
SKILL.md length
359 words
Files
7 (incl. references)
Skills in repo
108
Repo updated
First seen
Licence
MIT

At a glance

Memory retrieval internals: knowledge graph orchestration with entity extraction, natural language query parsing, deduplication (85% similarity), and cross-reference boosting over unified recency…

  • Works in 6 steps: Parse Query → Execute Graph Query → Normalize Results → …
  • Debugging how memory search itself works
  • SKILL.md covers Overview, Architecture Overview, Unified Search Workflow and Result Format, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Memory Fabric is an agent skill from yonatangross/orchestkit. Memory retrieval internals: knowledge graph orchestration with entity extraction, natural language query parsing, deduplication (85% similarity), and cross-reference boosting over unified recency, relevance, and authority ranking. Use when designing or debugging how memory search itself works. Everyday lookups belong to memory; entry storage to remember; consolidation to dream.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/entity-extraction.md`, `references/query-merging.md` and `rules/_sections.md`). Compatibility notes: Claude Code 2.1.277+. Requires memory MCP server.

It sits in Knowledge Management, covering Knowledge graphs and Data cleaning. It works with Model Context Protocol. The repository describes itself as: The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install ork for stable (v9.x), or ork-alpha for the v10 line, which ships daily. The licence is MIT.

When your agent uses it

  • Debugging how memory search itself works
  • Tasks that involve Knowledge graphs
  • Tasks that involve Data cleaning

Example prompts

  • “/memory-fabric”

Requirements

  • Compatibility (from SKILL.md): Claude Code 2.1.277+. Requires memory MCP server.
  • Pre-approved tools (allowed-tools): Read, Bash, mcp__memory__search_nodes

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Parse Query
  2. Execute Graph Query
  3. Normalize Results
  4. Deduplicate (>85% Similarity)
  5. Cross-Reference Boost
  6. Final Ranking

What it can do on your machine

Read from SKILL.md and the folder at commit 02bbf9a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash
    • mcp__memory__search_nodes

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json, javascript and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code 2.1.277+. Requires memory MCP server.

    From compatibility in the SKILL.md frontmatter.

Context cost

Memory Fabric loads about 1.8k tokens when it runs, and up to ~3.1k if it reads all its reference files. Until then it costs about 99 tokens; SKILL.md has 359 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Bash, mcp__memory__search_nodes

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yonatangross/orchestkit at commit 02bbf9a, republished under its MIT licence (© yonatangross). 359 words, ~1,833 tokens.

Download SKILL.mdSave it as .claude/skills/memory-fabric/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
memory-fabric
description
Memory retrieval internals: knowledge graph orchestration with entity extraction, natural language query parsing, deduplication (>85% similarity), and cross-reference boosting over unified recency, relevance, and authority ranking. Use when designing or debugging how memory search itself works. Everyday lookups belong to memory; entry storage to remember; consolidation to dream.
allowed-tools
Read, Bash, mcp__memory__search_nodes
compatibility
Claude Code 2.1.277+. Requires memory MCP server.
license
MIT
user-invocable
false
disable-model-invocation
true
effort
high
metadata.category
mcp-enhancement
metadata.mcp-server
memory
metadata.version
2.1.0
metadata.author
OrchestKit
metadata.complexity
high
metadata.tags
memory, orchestration, graph-first, graph, unified-search, deduplication, cross-reference

Memory Fabric - Graph Orchestration

Knowledge graph orchestration via mcp__memory__* for entity extraction, query parsing, deduplication, and cross-reference boosting.

Overview

  • Comprehensive memory retrieval from the knowledge graph
  • Cross-referencing entities within graph storage
  • Ensuring no relevant memories are missed
  • Building unified context from graph queries

Architecture Overview

Memory Fabric Layer
┌─────────────┐ ┌──────────────┐
│Query Parser │ │Query Executor│
└──────┬──────┘ └──────┬───────┘
       └───────┬───────┘
┌──────────────┴─────────────┐
│Graph Query Dispatch        │
└──────────────┬─────────────┘
┌──────────────┴─────────────┐
│mcp__memory__*              │
│(Knowledge Graph)           │
└──────────────┬─────────────┘
┌──────────────┴─────────────┐
│Result Normalizer           │
└──────────────┬─────────────┘
┌──────────────┴─────────────┐
│Deduplication Engine        │
│(>85% sim)                  │
└──────────────┬─────────────┘
┌──────────────┴─────────────┐
│Cross-Reference Booster     │
└──────────────┬─────────────┘
┌──────────────┴─────────────┐
│Final Ranking: recency ×    │
│relevance × source_authority│
└────────────────────────────┘

Unified Search Workflow

Step 1: Parse Query

Extract search intent and entity hints from natural language:

Input: "What pagination approach did database-engineer recommend?"

Parsed:
- query: "pagination approach recommend"
- entity_hints: ["database-engineer", "pagination"]
- intent: "decision" or "pattern"
Step 2: Execute Graph Query

Query Graph (entity search):

javascript
mcp__memory__search_nodes({
  query: "pagination database-engineer"
})
Step 3: Normalize Results

Transform results to common format:

json
{
  "id": "graph:original_id",
  "text": "content text",
  "source": "graph",
  "timestamp": "ISO8601",
  "relevance": 0.0-1.0,
  "entities": ["entity1", "entity2"],
  "metadata": {}
}
Step 4: Deduplicate (>85% Similarity)

When two results have >85% text similarity:

  1. Keep the one with higher relevance score
  2. Merge metadata
  3. Mark as "cross-validated" for authority boost
Step 5: Cross-Reference Boost

If a result mentions an entity that exists elsewhere in the graph:

  • Boost relevance score by 1.2x
  • Add graph relationships to result metadata
Step 6: Final Ranking

Score = recency_factor × relevance × source_authority

FactorWeightDescription
recency0.3Newer memories rank higher
relevance0.5Semantic match quality
source_authority0.2Graph entities boost, cross-validated boost

Result Format

json
{
  "query": "original query",
  "total_results": 4,
  "sources": {
    "graph": 4
  },
  "results": [
    {
      "id": "graph:cursor-pagination",
      "text": "Use cursor-based pagination for scalability",
      "score": 0.92,
      "source": "graph",
      "timestamp": "2026-01-15T10:00:00Z",
      "entities": ["cursor-pagination", "database-engineer"],
      "graph_relations": [
        { "from": "database-engineer", "relation": "recommends", "to": "cursor-pagination" }
      ]
    }
  ]
}

Entity Extraction

Memory Fabric extracts entities from natural language for graph storage:

Input: "database-engineer uses pgvector for RAG applications"

Extracted:
- Entities:
  - { name: "database-engineer", type: "agent" }
  - { name: "pgvector", type: "technology" }
  - { name: "RAG", type: "pattern" }
- Relations:
  - { from: "database-engineer", relation: "uses", to: "pgvector" }
  - { from: "pgvector", relation: "used_for", to: "RAG" }

Load Read("references/entity-extraction.md") for detailed extraction patterns.

Graph Relationship Traversal

Memory Fabric supports multi-hop graph traversal for complex relationship queries.

Example: Multi-Hop Query
Query: "What did database-engineer recommend about pagination?"

1. Search for "database-engineer pagination"
   → Find entity: "database-engineer recommends cursor-pagination"

2. Traverse related entities (depth 2)
   → Traverse: database-engineer → recommends → cursor-pagination
   → Find: "cursor-pagination uses offset-based approach"

3. Return results with relationship context
Show full SKILL.md (158 more words)Show less
Integration with Graph Memory

Memory Fabric uses the knowledge graph for entity relationships:

  1. Graph search via mcp__memory__search_nodes finds matching entities
  2. Graph traversal expands context via entity relationships
  3. Cross-reference boosts relevance when entities match

Integration Points

With memory Skill

When memory search runs, it can optionally use Memory Fabric for unified results.

With Hooks
  • prompt/memory-fabric-context.sh - Inject unified context at session start
  • stop/memory-fabric-sync.sh - Sync entities to graph at session end

Configuration

bash
# Environment variables
MEMORY_FABRIC_DEDUP_THRESHOLD=0.85    # Similarity threshold for merging
MEMORY_FABRIC_BOOST_FACTOR=1.2        # Cross-reference boost multiplier
MEMORY_FABRIC_MAX_RESULTS=20          # Max results per source

MCP Requirements

Required: Knowledge graph MCP server:

json
{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@anthropic/memory-mcp-server"]
    }
  }
}

Error Handling

ScenarioBehavior
graph unavailableError - graph is required
Query emptyReturn recent memories from graph
  • ork:memory - User-facing memory operations (search, load, sync, viz)
  • ork:remember - User-facing memory storage
  • caching - Caching layer that can use fabric

Key Decisions

DecisionChoiceRationale
Dedup threshold85%Balances catching duplicates vs. preserving nuance
Parallel queriesAlwaysReduces latency, both sources are independent
Cross-ref boost1.2xValidated info more trustworthy but not dominant
Ranking weights0.3/0.5/0.2Relevance most important, recency secondary

© yonatangross, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in src/skills/memory-fabric of yonatangross/orchestkit.

  • SKILL.md
  • references/entity-extraction.md
  • references/query-merging.md
  • rules/_sections.md
  • rules/graph-consistency.md
  • rules/stale-node-detection.md
  • test-cases.json

Open the folder on GitHubat commit 02bbf9a

Compare with similar skills

Memory Fabric next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Memory Fabric compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory Fabric this skillyonatangross/orchestkit290—~1.8kAutomated safety check: NotesMIT
GraphifyEBISPOT/ols41056 repos~9.5kAutomated safety check: PassApache-2.0
Explore Codebase with Graphtirth8205/code-review-graph32k1 repos~335Automated safety check: PassMIT
MemPalace MemoryMemPalace/mempalace59k—~2.7kAutomated safety check: PassMIT
Engraphdevwhodevs/engraph171—~792Automated safety check: PassMIT
Compasscrabbuild/compass169—~5kAutomated safety check: PassCustom licence

Similar skills

  • Graphify

    EBISPOT/ols4

    A skill your agent uses for any question about a codebase, its architecture, file relationships, or project content — especially when graphify-out/ exists, where the question should be treated as a…

    105 GitHub starsUsed in 6 repos~9.5k tokens
    Knowledge ManagementAuto-check passed
  • Explore Codebase with Graph

    tirth8205/code-review-graph

    Navigates a codebase through the code-review-graph MCP tools: architecture overview, symbol search, caller and callee tracing, flows and oversized functions.

    32k GitHub starsUsed in 1 repo~335 tokens
    DevelopmentAuto-check passed
  • MemPalace Memory

    MemPalace/mempalace

    Gives an agent a local memory palace over MCP: verbatim conversation memory, semantic search and a temporal knowledge graph, with a per-session recall protocol.

    59k GitHub stars~2.7k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Engraph

    devwhodevs/engraph

    Index and search document collections using hybrid semantic + graph + full-text search.

    171 GitHub stars~792 tokensUpdated 4 mo ago
    Knowledge ManagementAuto-check passed
  • Compass

    crabbuild/compass

    A skill your agent uses for graph-first AI coding sessions and repository analysis: session initialization, architecture maps, dependency or call-graph tracing, symbol and repository search…

    169 GitHub stars~5k tokensUpdated 6 days ago
    DevelopmentAuto-check passed
  • Manage and research DocsMint documents through its scoped MCP tools, including categories, folders, hybrid search, GraphRAG, rerank, and index refresh.

    118 GitHub stars~584 tokensUpdated 10 days ago
    Knowledge ManagementAuto-check passed

More from yonatangross/orchestkit

All 108 skills in this repo
  • API Design

    yonatangross/orchestkit

    API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, and OpenAPI specs.

    290 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Architecture Decision Record

    yonatangross/orchestkit

    ADR templates in the Nygard format with context, decision, consequences, and alternatives.

    290 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Audit Full

    yonatangross/orchestkit

    Single-pass codebase analysis leveraging a 1M-token context window for comprehensive security scanning, architecture review, and dependency auditing.

    290 GitHub stars~3.5k tokensUpdated today
    Auto-check: notes
  • Code Review Playbook

    yonatangross/orchestkit

    Structured review processes, conventional comments, language-specific checklists, and feedback templates.

    290 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Create PR

    yonatangross/orchestkit

    Creates GitHub pull requests with pre-flight validation, conventional title formatting, and structured summary generation.

    290 GitHub stars~4.5k tokensUpdated today
    Auto-check: notes
  • Explore

    yonatangross/orchestkit

    Multi-angle codebase exploration spawning 3-5 parallel agents for code structure, data flow, architecture patterns, and health assessment.

    290 GitHub stars~3.9k tokensUpdated today
    Auto-check: notes

Questions about Memory Fabric

What does Memory Fabric do?

Memory retrieval internals: knowledge graph orchestration with entity extraction, natural language query parsing, deduplication (85% similarity), and cross-reference boosting over unified recency…. Memory Fabric is an agent skill from yonatangross/orchestkit. Memory retrieval internals: knowledge graph orchestration with entity extraction, natural language query parsing, deduplication (85% similarity), and cross-reference boosting over unified recency, relevance, and authority ranking.

When should I use Memory Fabric?

Memory Fabric fits situations like: debugging how memory search itself works; tasks that involve Knowledge graphs; tasks that involve Data cleaning.

How do I install Memory Fabric in Claude Code?

Run `npx skills add yonatangross/orchestkit --skill memory-fabric -a claude-code`. Or copy the skill folder (src/skills/memory-fabric in yonatangross/orchestkit) into .claude/skills/memory-fabric in your project. Claude Code loads it when a task matches its description.

How do I install Memory Fabric in Codex?

Run `npx skills add yonatangross/orchestkit --skill memory-fabric -a codex`. Or copy the skill folder (src/skills/memory-fabric in yonatangross/orchestkit) into .agents/skills/memory-fabric in your project. Codex loads it when a task matches its description.

Can I use Memory Fabric in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yonatangross/orchestkit --skill memory-fabric -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory-fabric, .gemini/skills/memory-fabric, .github/skills/memory-fabric and .opencode/skills/memory-fabric in your project.

What does Memory Fabric need to run?

SKILL.md names no scripts, command-line tools or credentials: Memory Fabric is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Bash, mcp__memory__search_nodes. Compatibility (from SKILL.md): Claude Code 2.1.277+. Requires memory MCP server..

Does Memory Fabric access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Memory Fabric safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Memory Fabric use?

Memory Fabric is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory Fabric use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Memory Fabric?

Skills that share tags, products or a category with Memory Fabric: Graphify (EBISPOT/ols4, 105 stars), Explore Codebase with Graph (tirth8205/code-review-graph, 32k stars), MemPalace Memory (MemPalace/mempalace, 59k stars) and Engraph (devwhodevs/engraph, 171 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory Fabric?

yonatangross (a GitHub user) maintains it in yonatangross/orchestkit, which has 290 GitHub stars. The repository holds 108 skills in this directory. The repository was last updated on October 9, 2026.

Source: yonatangross/orchestkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.