[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79MFFWKEP3YNBFN12D18TG5":3,"skill-same:01M79MFFWKEP3YNBFN12D18TG5":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":13,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":47,"install":48,"resources":61},"01M79MFFWKEP3YNBFN12D18TG5","memory-fabric",null,"Knowledge graph memory orchestration - entity extraction, query parsing, deduplication, and cross-reference boosting. Use when designing memory orchestration.","mattyatplay-coder\u002Ftetra","mattyatplay-coder","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237661224?v=4","01M79MB8R0Q82FE9WMCV637TT5","01M79MB8S4NJ64M0KCF455E716",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmattyatplay-coder\u002Ftetra\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmemory-fabric\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: memory-fabric\ndescription: Knowledge graph memory orchestration - entity extraction, query parsing, deduplication, and cross-reference boosting. Use when designing memory orchestration.\nlicense: MIT\nallowed-tools:\n- Read\n- Bash\n- mcp__memory__search_nodes\nmetadata:\n  category: mcp-enhancement\n  mcp-server: memory\n  compatibility: Claude Code 2.1.56+. Requires memory MCP server.\n  context: inherit\n  version: 2.1.0\n  author: OrchestKit\n  tags:\n  - memory\n  - orchestration\n  - graph-first\n  - graph\n  - unified-search\n  - deduplication\n  - cross-reference\n  user-invocable: false\n  complexity: high\n---\n\n# Memory Fabric - Graph Orchestration\n\nKnowledge graph orchestration via mcp**memory**\\* for entity extraction, query parsing, deduplication, and cross-reference boosting.\n\n## Overview\n\n- Comprehensive memory retrieval from the knowledge graph\n- Cross-referencing entities within graph storage\n- Ensuring no relevant memories are missed\n- Building unified context from graph queries\n\n## Architecture Overview\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    Memory Fabric Layer                      │\n├─────────────────────────────────────────────────────────────┤\n│                                                             │\n│   ┌─────────────┐              ┌─────────────┐              │\n│   │   Query     │              │   Query     │              │\n│   │   Parser    │              │   Executor  │              │\n│   └──────┬──────┘              └──────┬──────┘              │\n│          │                            │                     │\n│          ▼                            ▼                     │\n│   ┌──────────────────────────────────────────────┐          │\n│   │            Graph Query Dispatch              │          │\n│   └──────────────────────┬───────────────────────┘          │\n│                          │                                  │\n│                ┌─────────▼──────────┐                       │\n│                │  mcp__memory__*    │                       │\n│                │  (Knowledge Graph) │                       │\n│                └─────────┬──────────┘                       │\n│                          │                                  │\n│                          ▼                                  │\n│        ┌─────────────────────────────────────────┐          │\n│        │        Result Normalizer                │          │\n│        └─────────────────────┬───────────────────┘          │\n│                              │                              │\n│                              ▼                              │\n│        ┌─────────────────────────────────────────┐          │\n│        │     Deduplication Engine (>85% sim)     │          │\n│        └─────────────────────┬───────────────────┘          │\n│                              │                              │\n│                              ▼                              │\n│        ┌─────────────────────────────────────────┐          │\n│        │  Cross-Reference Booster                │          │\n│        └─────────────────────┬───────────────────┘          │\n│                              │                              │\n│                              ▼                              │\n│        ┌─────────────────────────────────────────┐          │\n│        │  Final Ranking: recency × relevance     │          │\n│        │                 × source_authority      │          │\n│        └─────────────────────────────────────────┘          │\n│                                                             │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Unified Search Workflow\n\n### Step 1: Parse Query\n\nExtract search intent and entity hints from natural language:\n\n```\nInput: \"What pagination approach did database-engineer recommend?\"\n\nParsed:\n- query: \"pagination approach recommend\"\n- entity_hints: [\"database-engineer\", \"pagination\"]\n- intent: \"decision\" or \"pattern\"\n```\n\n### Step 2: Execute Graph Query\n\n**Query Graph (entity search):**\n\n```javascript\nmcp__memory__search_nodes({\n  query: 'pagination database-engineer',\n});\n```\n\n### Step 3: Normalize Results\n\nTransform results to common format:\n\n```json\n{\n  \"id\": \"graph:original_id\",\n  \"text\": \"content text\",\n  \"source\": \"graph\",\n  \"timestamp\": \"ISO8601\",\n  \"relevance\": 0.0-1.0,\n  \"entities\": [\"entity1\", \"entity2\"],\n  \"metadata\": {}\n}\n```\n\n### Step 4: Deduplicate (>85% Similarity)\n\nWhen two results have >85% text similarity:\n\n1. Keep the one with higher relevance score\n2. Merge metadata\n3. Mark as \"cross-validated\" for authority boost\n\n### Step 5: Cross-Reference Boost\n\nIf a result mentions an entity that exists elsewhere in the graph:\n\n- Boost relevance score by 1.2x\n- Add graph relationships to result metadata\n\n### Step 6: Final Ranking\n\nScore = `recency_factor × relevance × source_authority`\n\n| Factor           | Weight | Description                                 |\n| ---------------- | ------ | ------------------------------------------- |\n| recency          | 0.3    | Newer memories rank higher                  |\n| relevance        | 0.5    | Semantic match quality                      |\n| source_authority | 0.2    | Graph entities boost, cross-validated boost |\n\n## Result Format\n\n```json\n{\n  \"query\": \"original query\",\n  \"total_results\": 4,\n  \"sources\": {\n    \"graph\": 4\n  },\n  \"results\": [\n    {\n      \"id\": \"graph:cursor-pagination\",\n      \"text\": \"Use cursor-based pagination for scalability\",\n      \"score\": 0.92,\n      \"source\": \"graph\",\n      \"timestamp\": \"2026-01-15T10:00:00Z\",\n      \"entities\": [\"cursor-pagination\", \"database-engineer\"],\n      \"graph_relations\": [\n        { \"from\": \"database-engineer\", \"relation\": \"recommends\", \"to\": \"cursor-pagination\" }\n      ]\n    }\n  ]\n}\n```\n\n## Entity Extraction\n\nMemory Fabric extracts entities from natural language for graph storage:\n\n```\nInput: \"database-engineer uses pgvector for RAG applications\"\n\nExtracted:\n- Entities:\n  - { name: \"database-engineer\", type: \"agent\" }\n  - { name: \"pgvector\", type: \"technology\" }\n  - { name: \"RAG\", type: \"pattern\" }\n- Relations:\n  - { from: \"database-engineer\", relation: \"uses\", to: \"pgvector\" }\n  - { from: \"pgvector\", relation: \"used_for\", to: \"RAG\" }\n```\n\nSee `references\u002Fentity-extraction.md` for detailed extraction patterns.\n\n## Graph Relationship Traversal\n\nMemory Fabric supports multi-hop graph traversal for complex relationship queries.\n\n### Example: Multi-Hop Query\n\n```\nQuery: \"What did database-engineer recommend about pagination?\"\n\n1. Search for \"database-engineer pagination\"\n   → Find entity: \"database-engineer recommends cursor-pagination\"\n\n2. Traverse related entities (depth 2)\n   → Traverse: database-engineer → recommends → cursor-pagination\n   → Find: \"cursor-pagination uses offset-based approach\"\n\n3. Return results with relationship context\n```\n\n### Integration with Graph Memory\n\nMemory Fabric uses the knowledge graph for entity relationships:\n\n1. **Graph search** via `mcp__memory__search_nodes` finds matching entities\n2. **Graph traversal** expands context via entity relationships\n3. **Cross-reference** boosts relevance when entities match\n\n## Integration Points\n\n### With memory Skill\n\nWhen memory search runs, it can optionally use Memory Fabric for unified results.\n\n### With Hooks\n\n- `prompt\u002Fmemory-fabric-context.sh` - Inject unified context at session start\n- `stop\u002Fmemory-fabric-sync.sh` - Sync entities to graph at session end\n\n## Configuration\n\n```bash\n# Environment variables\nMEMORY_FABRIC_DEDUP_THRESHOLD=0.85    # Similarity threshold for merging\nMEMORY_FABRIC_BOOST_FACTOR=1.2        # Cross-reference boost multiplier\nMEMORY_FABRIC_MAX_RESULTS=20          # Max results per source\n```\n\n## MCP Requirements\n\n**Required:** Knowledge graph MCP server:\n\n```json\n{\n  \"mcpServers\": {\n    \"memory\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@anthropic\u002Fmemory-mcp-server\"]\n    }\n  }\n}\n```\n\n## Error Handling\n\n| Scenario          | Behavior                          |\n| ----------------- | --------------------------------- |\n| graph unavailable | Error - graph is required         |\n| Query empty       | Return recent memories from graph |\n\n## Related Skills\n\n- `ork:memory` - User-facing memory operations (search, load, sync, viz)\n- `ork:remember` - User-facing memory storage\n- `caching` - Caching layer that can use fabric\n\n## Key Decisions\n\n| Decision         | Choice      | Rationale                                          |\n| ---------------- | ----------- | -------------------------------------------------- |\n| Dedup threshold  | 85%         | Balances catching duplicates vs. preserving nuance |\n| Parallel queries | Always      | Reduces latency, both sources are independent      |\n| Cross-ref boost  | 1.2x        | Validated info more trustworthy but not dominant   |\n| Ranking weights  | 0.3\u002F0.5\u002F0.2 | Relevance most important, recency secondary        |\n","# Memory Fabric - Graph Orchestration\n\nKnowledge graph orchestration via mcp**memory**\\* for entity extraction, query parsing, deduplication, and cross-reference boosting.\n\n## Overview\n\n- Comprehensive memory retrieval from the knowledge graph\n- Cross-referencing entities within graph storage\n- Ensuring no relevant memories are missed\n- Building unified context from graph queries\n\n## Architecture Overview\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│                    Memory Fabric Layer                      │\n├─────────────────────────────────────────────────────────────┤\n│                                                             │\n│   ┌─────────────┐              ┌─────────────┐              │\n│   │   Query     │              │   Query     │              │\n│   │   Parser    │              │   Executor  │              │\n│   └──────┬──────┘              └──────┬──────┘              │\n│          │                            │                     │\n│          ▼                            ▼                     │\n│   ┌──────────────────────────────────────────────┐          │\n│   │            Graph Query Dispatch              │          │\n│   └──────────────────────┬───────────────────────┘          │\n│                          │                                  │\n│                ┌─────────▼──────────┐                       │\n│                │  mcp__memory__*    │                       │\n│                │  (Knowledge Graph) │                       │\n│                └─────────┬──────────┘                       │\n│                          │                                  │\n│                          ▼                                  │\n│        ┌─────────────────────────────────────────┐          │\n│        │        Result Normalizer                │          │\n│        └─────────────────────┬───────────────────┘          │\n│                              │                              │\n│                              ▼                              │\n│        ┌─────────────────────────────────────────┐          │\n│        │     Deduplication Engine (>85% sim)     │          │\n│        └─────────────────────┬───────────────────┘          │\n│                              │                              │\n│                              ▼                              │\n│        ┌─────────────────────────────────────────┐          │\n│        │  Cross-Reference Booster                │          │\n│        └─────────────────────┬───────────────────┘          │\n│                              │                              │\n│                              ▼                              │\n│        ┌─────────────────────────────────────────┐          │\n│        │  Final Ranking: recency × relevance     │          │\n│        │                 × source_authority      │          │\n│        └─────────────────────────────────────────┘          │\n│                                                             │\n└─────────────────────────────────────────────────────────────┘\n```\n\n## Unified Search Workflow\n\n### Step 1: Parse Query\n\nExtract search intent and entity hints from natural language:\n\n```\nInput: \"What pagination approach did database-engineer recommend?\"\n\nParsed:\n- query: \"pagination approach recommend\"\n- entity_hints: [\"database-engineer\", \"pagination\"]\n- intent: \"decision\" or \"pattern\"\n```\n\n### Step 2: Execute Graph Query\n\n**Query Graph (entity search):**\n\n```javascript\nmcp__memory__search_nodes({\n  query: 'pagination database-engineer',\n});\n```\n\n### Step 3: Normalize Results\n\nTransform results to common format:\n\n```json\n{\n  \"id\": \"graph:original_id\",\n  \"text\": \"content text\",\n  \"source\": \"graph\",\n  \"timestamp\": \"ISO8601\",\n  \"relevance\": 0.0-1.0,\n  \"entities\": [\"entity1\", \"entity2\"],\n  \"metadata\": {}\n}\n```\n\n### Step 4: Deduplicate (>85% Similarity)\n\nWhen two results have >85% text similarity:\n\n1. Keep the one with higher relevance score\n2. Merge metadata\n3. Mark as \"cross-validated\" for authority boost\n\n### Step 5: Cross-Reference Boost\n\nIf a result mentions an entity that exists elsewhere in the graph:\n\n- Boost relevance score by 1.2x\n- Add graph relationships to result metadata\n\n### Step 6: Final Ranking\n\nScore = `recency_factor × relevance × source_authority`\n\n| Factor           | Weight | Description                                 |\n| ---------------- | ------ | ------------------------------------------- |\n| recency          | 0.3    | Newer memories rank higher                  |\n| relevance        | 0.5    | Semantic match quality                      |\n| source_authority | 0.2    | Graph entities boost, cross-validated boost |\n\n## Result Format\n\n```json\n{\n  \"query\": \"original query\",\n  \"total_results\": 4,\n  \"sources\": {\n    \"graph\": 4\n  },\n  \"results\": [\n    {\n      \"id\": \"graph:cursor-pagination\",\n      \"text\": \"Use cursor-based pagination for scalability\",\n      \"score\": 0.92,\n      \"source\": \"graph\",\n      \"timestamp\": \"2026-01-15T10:00:00Z\",\n      \"entities\": [\"cursor-pagination\", \"database-engineer\"],\n      \"graph_relations\": [\n        { \"from\": \"database-engineer\", \"relation\": \"recommends\", \"to\": \"cursor-pagination\" }\n      ]\n    }\n  ]\n}\n```\n\n## Entity Extraction\n\nMemory Fabric extracts entities from natural language for graph storage:\n\n```\nInput: \"database-engineer uses pgvector for RAG applications\"\n\nExtracted:\n- Entities:\n  - { name: \"database-engineer\", type: \"agent\" }\n  - { name: \"pgvector\", type: \"technology\" }\n  - { name: \"RAG\", type: \"pattern\" }\n- Relations:\n  - { from: \"database-engineer\", relation: \"uses\", to: \"pgvector\" }\n  - { from: \"pgvector\", relation: \"used_for\", to: \"RAG\" }\n```\n\nSee `references\u002Fentity-extraction.md` for detailed extraction patterns.\n\n## Graph Relationship Traversal\n\nMemory Fabric supports multi-hop graph traversal for complex relationship queries.\n\n### Example: Multi-Hop Query\n\n```\nQuery: \"What did database-engineer recommend about pagination?\"\n\n1. Search for \"database-engineer pagination\"\n   → Find entity: \"database-engineer recommends cursor-pagination\"\n\n2. Traverse related entities (depth 2)\n   → Traverse: database-engineer → recommends → cursor-pagination\n   → Find: \"cursor-pagination uses offset-based approach\"\n\n3. Return results with relationship context\n```\n\n### Integration with Graph Memory\n\nMemory Fabric uses the knowledge graph for entity relationships:\n\n1. **Graph search** via `mcp__memory__search_nodes` finds matching entities\n2. **Graph traversal** expands context via entity relationships\n3. **Cross-reference** boosts relevance when entities match\n\n## Integration Points\n\n### With memory Skill\n\nWhen memory search runs, it can optionally use Memory Fabric for unified results.\n\n### With Hooks\n\n- `prompt\u002Fmemory-fabric-context.sh` - Inject unified context at session start\n- `stop\u002Fmemory-fabric-sync.sh` - Sync entities to graph at session end\n\n## Configuration\n\n```bash\n# Environment variables\nMEMORY_FABRIC_DEDUP_THRESHOLD=0.85    # Similarity threshold for merging\nMEMORY_FABRIC_BOOST_FACTOR=1.2        # Cross-reference boost multiplier\nMEMORY_FABRIC_MAX_RESULTS=20          # Max results per source\n```\n\n## MCP Requirements\n\n**Required:** Knowledge graph MCP server:\n\n```json\n{\n  \"mcpServers\": {\n    \"memory\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@anthropic\u002Fmemory-mcp-server\"]\n    }\n  }\n}\n```\n\n## Error Handling\n\n| Scenario          | Behavior                          |\n| ----------------- | --------------------------------- |\n| graph unavailable | Error - graph is required         |\n| Query empty       | Return recent memories from graph |\n\n## Related Skills\n\n- `ork:memory` - User-facing memory operations (search, load, sync, viz)\n- `ork:remember` - User-facing memory storage\n- `caching` - Caching layer that can use fabric\n\n## Key Decisions\n\n| Decision         | Choice      | Rationale                                          |\n| ---------------- | ----------- | -------------------------------------------------- |\n| Dedup threshold  | 85%         | Balances catching duplicates vs. preserving nuance |\n| Parallel queries | Always      | Reduces latency, both sources are independent      |\n| Cross-ref boost  | 1.2x        | Validated info more trustworthy but not dominant   |\n| Ranking weights  | 0.3\u002F0.5\u002F0.2 | Relevance most important, recency secondary        |\n",{"name":5,"license":14,"metadata":23,"description":7,"allowed-tools":38},{"tags":24,"author":32,"context":33,"version":34,"category":35,"complexity":36,"mcp-server":25,"compatibility":37,"user-invocable":19},[25,26,27,28,29,30,31],"memory","orchestration","graph-first","graph","unified-search","deduplication","cross-reference","OrchestKit","inherit","2.1.0","mcp-enhancement","high","Claude Code 2.1.56+. Requires memory MCP server.",[39,40,41],"Read","Bash","mcp__memory__search_nodes","main","dbab3d24912220ba0f0185b5e59ef276a932f140",".claude\u002Fskills\u002Fmemory-fabric","https:\u002F\u002Fgithub.com\u002Fmattyatplay-coder\u002Ftetra","https:\u002F\u002Fgithub.com\u002Fmattyatplay-coder","2026-07-25 04:45:40",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add mattyatplay-coder\u002Ftetra --skill memory-fabric",{"tool":54,"command":55},"bunx","bunx skills add mattyatplay-coder\u002Ftetra --skill memory-fabric",{"tool":57,"command":58},"pnpm","pnpm dlx skills add mattyatplay-coder\u002Ftetra --skill memory-fabric","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmattyatplay-coder\u002Ftetra\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmemory-fabric\u002FSKILL.md",true,[62,68],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fentity-extraction.md","REFERENCE","参考文档",3143,"https:\u002F\u002Fgithub.com\u002Fmattyatplay-coder\u002Ftetra\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmemory-fabric\u002Freferences\u002Fentity-extraction.md",{"path":69,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fquery-merging.md",2278,"https:\u002F\u002Fgithub.com\u002Fmattyatplay-coder\u002Ftetra\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmemory-fabric\u002Freferences\u002Fquery-merging.md",[73],{"skillNo":74,"name":25,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M79MFX270E4D3YZ8GKZ5PXQ0","Read-side memory operations: search, recall, load, sync, history, visualize. Use when searching past decisions, loading session context, or viewing the knowledge graph.","https:\u002F\u002Fgithub.com\u002Fmattyatplay-coder\u002Ftetra\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmemory\u002FSKILL.md",[],[]]