[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXMKJCFWXDNK99DNBRF72X":3,"skill-same:01M6BXMKJCFWXDNK99DNBRF72X":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":17,"ownerHtmlUrl":45,"ownerBlogUrl":46,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M6BXMKJCFWXDNK99DNBRF72X","V3 Memory Unification","V3 内存系统统一化","Unify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Memory Backend).","将 6 个以上的内存系统统一到 AgentDB，采用 HNSW 索引，实现 150 倍至 12,500 倍的搜索性能提升。实现 ADR-006（统一内存服务）和 ADR-009（混合内存后端）。","diegopacheco\u002Fai-playground","diegopacheco","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121278?v=4","01M6BXCP8P7GGSJ8M1W2MFDTGT","Diego Pacheco","01M6BXCPD3WM51H465XW9YM4BV",21,"Unlicense",null,"https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fclaude-flow-fun\u002F.claude\u002Fskills\u002Fv3-memory-unification\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS1P4QM1G70C9FKMTZ88VK","数据库管理","SCENARIO","使用场景",[31,5,32,33,34],"memory","search","HNSW","adr","2026-11-10 10:12:30",false,"---\nname: \"V3 Memory Unification\"\ndescription: \"Unify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Memory Backend).\"\n---\n\n# V3 Memory Unification\n\n## What This Skill Does\n\nConsolidates disparate memory systems into unified AgentDB backend with HNSW vector search, achieving 150x-12,500x search performance improvements while maintaining backward compatibility.\n\n## Quick Start\n\n```bash\n# Initialize memory unification\nTask(\"Memory architecture\", \"Design AgentDB unification strategy\", \"v3-memory-specialist\")\n\n# AgentDB integration\nTask(\"AgentDB setup\", \"Configure HNSW indexing and vector search\", \"v3-memory-specialist\")\n\n# Data migration\nTask(\"Memory migration\", \"Migrate SQLite\u002FMarkdown to AgentDB\", \"v3-memory-specialist\")\n```\n\n## Systems to Unify\n\n### Legacy Systems → AgentDB\n```\n┌─────────────────────────────────────────┐\n│  • MemoryManager (basic operations)     │\n│  • DistributedMemorySystem (clustering) │\n│  • SwarmMemory (agent-specific)         │\n│  • AdvancedMemoryManager (features)     │\n│  • SQLiteBackend (structured)           │\n│  • MarkdownBackend (file-based)         │\n│  • HybridBackend (combination)          │\n└─────────────────────────────────────────┘\n                    ↓\n┌─────────────────────────────────────────┐\n│       ? AgentDB with HNSW             │\n│  • 150x-12,500x faster search          │\n│  • Unified query interface             │\n│  • Cross-agent memory sharing          │\n│  • SONA learning integration           │\n└─────────────────────────────────────────┘\n```\n\n## Implementation Architecture\n\n### Unified Memory Service\n```typescript\nclass UnifiedMemoryService implements IMemoryBackend {\n  constructor(\n    private agentdb: AgentDBAdapter,\n    private indexer: HNSWIndexer,\n    private migrator: DataMigrator\n  ) {}\n\n  async store(entry: MemoryEntry): Promise\u003Cvoid> {\n    await this.agentdb.store(entry);\n    await this.indexer.index(entry);\n  }\n\n  async query(query: MemoryQuery): Promise\u003CMemoryEntry[]> {\n    if (query.semantic) {\n      return this.indexer.search(query); \u002F\u002F 150x-12,500x faster\n    }\n    return this.agentdb.query(query);\n  }\n}\n```\n\n### HNSW Vector Search\n```typescript\nclass HNSWIndexer {\n  constructor(dimensions: number = 1536) {\n    this.index = new HNSWIndex({\n      dimensions,\n      efConstruction: 200,\n      M: 16,\n      speedupTarget: '150x-12500x'\n    });\n  }\n\n  async search(query: MemoryQuery): Promise\u003CMemoryEntry[]> {\n    const embedding = await this.embedContent(query.content);\n    const results = this.index.search(embedding, query.limit || 10);\n    return this.retrieveEntries(results);\n  }\n}\n```\n\n## Migration Strategy\n\n### Phase 1: Foundation\n```typescript\n\u002F\u002F AgentDB adapter setup\nconst agentdb = new AgentDBAdapter({\n  dimensions: 1536,\n  indexType: 'HNSW',\n  speedupTarget: '150x-12500x'\n});\n```\n\n### Phase 2: Data Migration\n```typescript\n\u002F\u002F SQLite → AgentDB\nconst migrateFromSQLite = async () => {\n  const entries = await sqlite.getAll();\n  for (const entry of entries) {\n    const embedding = await generateEmbedding(entry.content);\n    await agentdb.store({ ...entry, embedding });\n  }\n};\n\n\u002F\u002F Markdown → AgentDB\nconst migrateFromMarkdown = async () => {\n  const files = await glob('**\u002F*.md');\n  for (const file of files) {\n    const content = await fs.readFile(file, 'utf-8');\n    await agentdb.store({\n      id: generateId(),\n      content,\n      embedding: await generateEmbedding(content),\n      metadata: { originalFile: file }\n    });\n  }\n};\n```\n\n## SONA Integration\n\n### Learning Pattern Storage\n```typescript\nclass SONAMemoryIntegration {\n  async storePattern(pattern: LearningPattern): Promise\u003Cvoid> {\n    await this.memory.store({\n      id: pattern.id,\n      content: pattern.data,\n      metadata: {\n        sonaMode: pattern.mode,\n        reward: pattern.reward,\n        adaptationTime: pattern.adaptationTime\n      },\n      embedding: await this.generateEmbedding(pattern.data)\n    });\n  }\n\n  async retrieveSimilarPatterns(query: string): Promise\u003CLearningPattern[]> {\n    return this.memory.query({\n      type: 'semantic',\n      content: query,\n      filters: { type: 'learning_pattern' }\n    });\n  }\n}\n```\n\n## Performance Targets\n\n- **Search Speed**: 150x-12,500x improvement via HNSW\n- **Memory Usage**: 50-75% reduction through optimization\n- **Query Latency**: \u003C100ms for 1M+ entries\n- **Cross-Agent Sharing**: Real-time memory synchronization\n- **SONA Integration**: \u003C0.05ms adaptation time\n\n## Success Metrics\n\n- [ ] All 7 legacy memory systems migrated to AgentDB\n- [ ] 150x-12,500x search performance validated\n- [ ] 50-75% memory usage reduction achieved\n- [ ] Backward compatibility maintained\n- [ ] SONA learning patterns integrated\n- [ ] Cross-agent memory sharing operational","# V3 Memory Unification\n\n## What This Skill Does\n\nConsolidates disparate memory systems into unified AgentDB backend with HNSW vector search, achieving 150x-12,500x search performance improvements while maintaining backward compatibility.\n\n## Quick Start\n\n```bash\n# Initialize memory unification\nTask(\"Memory architecture\", \"Design AgentDB unification strategy\", \"v3-memory-specialist\")\n\n# AgentDB integration\nTask(\"AgentDB setup\", \"Configure HNSW indexing and vector search\", \"v3-memory-specialist\")\n\n# Data migration\nTask(\"Memory migration\", \"Migrate SQLite\u002FMarkdown to AgentDB\", \"v3-memory-specialist\")\n```\n\n## Systems to Unify\n\n### Legacy Systems → AgentDB\n```\n┌─────────────────────────────────────────┐\n│  • MemoryManager (basic operations)     │\n│  • DistributedMemorySystem (clustering) │\n│  • SwarmMemory (agent-specific)         │\n│  • AdvancedMemoryManager (features)     │\n│  • SQLiteBackend (structured)           │\n│  • MarkdownBackend (file-based)         │\n│  • HybridBackend (combination)          │\n└─────────────────────────────────────────┘\n                    ↓\n┌─────────────────────────────────────────┐\n│       ? AgentDB with HNSW             │\n│  • 150x-12,500x faster search          │\n│  • Unified query interface             │\n│  • Cross-agent memory sharing          │\n│  • SONA learning integration           │\n└─────────────────────────────────────────┘\n```\n\n## Implementation Architecture\n\n### Unified Memory Service\n```typescript\nclass UnifiedMemoryService implements IMemoryBackend {\n  constructor(\n    private agentdb: AgentDBAdapter,\n    private indexer: HNSWIndexer,\n    private migrator: DataMigrator\n  ) {}\n\n  async store(entry: MemoryEntry): Promise\u003Cvoid> {\n    await this.agentdb.store(entry);\n    await this.indexer.index(entry);\n  }\n\n  async query(query: MemoryQuery): Promise\u003CMemoryEntry[]> {\n    if (query.semantic) {\n      return this.indexer.search(query); \u002F\u002F 150x-12,500x faster\n    }\n    return this.agentdb.query(query);\n  }\n}\n```\n\n### HNSW Vector Search\n```typescript\nclass HNSWIndexer {\n  constructor(dimensions: number = 1536) {\n    this.index = new HNSWIndex({\n      dimensions,\n      efConstruction: 200,\n      M: 16,\n      speedupTarget: '150x-12500x'\n    });\n  }\n\n  async search(query: MemoryQuery): Promise\u003CMemoryEntry[]> {\n    const embedding = await this.embedContent(query.content);\n    const results = this.index.search(embedding, query.limit || 10);\n    return this.retrieveEntries(results);\n  }\n}\n```\n\n## Migration Strategy\n\n### Phase 1: Foundation\n```typescript\n\u002F\u002F AgentDB adapter setup\nconst agentdb = new AgentDBAdapter({\n  dimensions: 1536,\n  indexType: 'HNSW',\n  speedupTarget: '150x-12500x'\n});\n```\n\n### Phase 2: Data Migration\n```typescript\n\u002F\u002F SQLite → AgentDB\nconst migrateFromSQLite = async () => {\n  const entries = await sqlite.getAll();\n  for (const entry of entries) {\n    const embedding = await generateEmbedding(entry.content);\n    await agentdb.store({ ...entry, embedding });\n  }\n};\n\n\u002F\u002F Markdown → AgentDB\nconst migrateFromMarkdown = async () => {\n  const files = await glob('**\u002F*.md');\n  for (const file of files) {\n    const content = await fs.readFile(file, 'utf-8');\n    await agentdb.store({\n      id: generateId(),\n      content,\n      embedding: await generateEmbedding(content),\n      metadata: { originalFile: file }\n    });\n  }\n};\n```\n\n## SONA Integration\n\n### Learning Pattern Storage\n```typescript\nclass SONAMemoryIntegration {\n  async storePattern(pattern: LearningPattern): Promise\u003Cvoid> {\n    await this.memory.store({\n      id: pattern.id,\n      content: pattern.data,\n      metadata: {\n        sonaMode: pattern.mode,\n        reward: pattern.reward,\n        adaptationTime: pattern.adaptationTime\n      },\n      embedding: await this.generateEmbedding(pattern.data)\n    });\n  }\n\n  async retrieveSimilarPatterns(query: string): Promise\u003CLearningPattern[]> {\n    return this.memory.query({\n      type: 'semantic',\n      content: query,\n      filters: { type: 'learning_pattern' }\n    });\n  }\n}\n```\n\n## Performance Targets\n\n- **Search Speed**: 150x-12,500x improvement via HNSW\n- **Memory Usage**: 50-75% reduction through optimization\n- **Query Latency**: \u003C100ms for 1M+ entries\n- **Cross-Agent Sharing**: Real-time memory synchronization\n- **SONA Integration**: \u003C0.05ms adaptation time\n\n## Success Metrics\n\n- [ ] All 7 legacy memory systems migrated to AgentDB\n- [ ] 150x-12,500x search performance validated\n- [ ] 50-75% memory usage reduction achieved\n- [ ] Backward compatibility maintained\n- [ ] SONA learning patterns integrated\n- [ ] Cross-agent memory sharing operational",{"name":5,"description":7},"main","90d379e95fcc23dd9759654c345424e1752b0f3a","pocs\u002Fclaude-flow-fun\u002F.claude\u002Fskills\u002Fv3-memory-unification",9,"https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground","https:\u002F\u002Fgithub.com\u002Fdiegopacheco","http:\u002F\u002Fdiego-pacheco.blogspot.com","Brazilian Hands-on Software Architect | 20+ years in Tech | Author | Father. Opinions are my own!","2026-11-15 01:01:48",{"source":9,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add diegopacheco\u002Fai-playground --skill \"V3 Memory Unification\"",{"tool":55,"command":56},"bunx","bunx skills add diegopacheco\u002Fai-playground --skill \"V3 Memory Unification\"",{"tool":58,"command":59},"pnpm","pnpm dlx skills add diegopacheco\u002Fai-playground --skill \"V3 Memory Unification\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fclaude-flow-fun\u002F.claude\u002Fskills\u002Fv3-memory-unification\u002FSKILL.md",true,[],[64,77,87,100,116,135],{"skillNo":65,"name":66,"nameZh":17,"description":67,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":35},"01M6WJ537DN520XY8MSW9ZV0RP","word-count","Counts the words, lines and characters of a text or a file.","https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fskills-gateway-router\u002Fupstream-skills\u002Ftext-skills\u002Fword-count\u002FSKILL.md",[],[71,72,73,74,75,76],"count","word count","Word","characters","text","file",{"skillNo":78,"name":79,"nameZh":17,"description":80,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":35},"01M6WJ4Y2GT5SECWAKKYHGES4F","slugify","Turns a title or a sentence into a URL slug, lowercase words joined by hyphens with accents removed.","https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fskills-gateway-router\u002Fupstream-skills\u002Ftext-skills\u002Fslugify\u002FSKILL.md",[],[79,84,85,86],"title","with","URL",{"skillNo":88,"name":89,"nameZh":17,"description":90,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":35},"01M6WJ4V9CWHT9NVCD441VK5MH","json-format","Validates a JSON file and pretty prints it with two space indentation, or reports where the JSON is invalid.","https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fskills-gateway-router\u002Fupstream-skills\u002Fdev-skills\u002Fjson-format\u002FSKILL.md",[],[94,95,96,76,97,98,99,85],"json","format","json format","reports","invalid","it",{"skillNo":101,"name":102,"nameZh":17,"description":103,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":35},"01M6WJ4QMRKW8EFP71F4KS2DHE","commit-message","Writes a conventional commit message for the staged git changes.","https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fskills-gateway-router\u002Fupstream-skills\u002Fdev-skills\u002Fcommit-message\u002FSKILL.md",[],[107,108,109,110,111,112,113,114,115],"commit","commit message","message","git","conventional commit","for","changes","staged","conventional commit message",{"skillNo":117,"name":118,"nameZh":17,"description":119,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":35},"01M6WJ4MAM2CJH0GWYXFBB9GQC","skills-gateway","Gateway and router to a catalog of skills that are not registered directly. Use it before any task a specialized skill could handle, such as text, JSON or git chores. It finds the right skill and loads its instructions.","https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fskills-gateway-router\u002F.claude\u002Fskills\u002Fskills-gateway\u002FSKILL.md",[],[123,124,99,125,126,110,127,94,75,128,129,130,131,132,133,134],"skills gateway","gateway","task","loads","Bash","node","specialized","instructions","catalog","use","router","as",{"skillNo":136,"name":137,"nameZh":17,"description":138,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":35},"01M6M2PYJJQKMWGX7XT7ZJK0H3","decision-log","Record, list, show and supersede architecture decisions that persist across sessions in the shared agent infra state store. Use when the user says \"record this decision\", \"log an ADR\", \"what did we decide about\", \"list decisions\", or \"supersede decision\".","https:\u002F\u002Fgithub.com\u002Fdiegopacheco\u002Fai-playground\u002Fblob\u002Fmain\u002Fpocs\u002Fagent-skills-infra-poc\u002Fskills\u002Fdecision-log\u002FSKILL.md",[],[142,143,144,145,146,147,34,148,149,150,132,151,152,153,154,155,156,157,158,159],"decision log","log","decision","persist","architecture","state","decide","decisions","list","show","infra","record","across","shared","store","about","supersede","sessions"]