[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-mem0-memory-dream":3,"mdc--ag9un3-key":46,"related-repo-mem0-memory-dream":873,"related-org-mem0-memory-dream":963},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":41,"sourceUrl":44,"mdContent":45},"memory-dream","consolidate and clean agent memories","Memory consolidation protocol. Reviews all stored memories, merges duplicates, removes noise and credentials, rewrites unclear entries, and enforces TTL expiration. Use when the user asks to clean up, consolidate, or review their memories. Also triggers automatically after sufficient activity (configurable).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"mem0","Mem0","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmem0.png","mem0ai",[13,17,20],{"name":14,"slug":15,"type":16},"Automation","automation","tag",{"name":18,"slug":19,"type":16},"Memory","memory",{"name":21,"slug":22,"type":16},"Agents","agents",60691,"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0","2026-07-13T06:13:52.383831",null,7066,[22,29,30,31,32,33,34,35,36,19,37,38,39,40],"ai","ai-agents","application","chatbots","chatgpt","genai","llm","long-term-memory","memory-management","python","rag","state-management",{"repoUrl":24,"stars":23,"forks":27,"topics":42,"description":43},[22,29,30,31,32,33,34,35,36,19,37,38,39,40],"Universal memory layer for AI Agents","https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002FHEAD\u002Fintegrations\u002Fopenclaw\u002Fskills\u002Fmemory-dream","---\nname: memory-dream\ndescription: >\n  Memory consolidation protocol. Reviews all stored memories, merges duplicates,\n  removes noise and credentials, rewrites unclear entries, and enforces TTL expiration.\n  Use when the user asks to clean up, consolidate, or review their memories.\n  Also triggers automatically after sufficient activity (configurable).\nuser-invocable: true\nmetadata:\n  {\"openclaw\": {\"injected\": true, \"emoji\": \"💤\", \"requires\": {\"env\": [\"MEM0_API_KEY\", \"OPENAI_API_KEY\", \"ANTHROPIC_API_KEY\"], \"bins\": []}}}\n---\n\n# Memory Consolidation\n\nYou are performing a memory consolidation pass. Your goal is to review all stored memories for this user and improve their overall quality. Think of this as compressing raw observations into clean, durable knowledge.\n\n## Available Tools\n\n### memory_search\nSemantic search across stored memories.\n- `query` (required): search query\n- `limit`: max results\n- `userId`, `agentId`: scope overrides\n- `scope`: `\"all\"` (default), `\"session\"`, or `\"long-term\"`\n- `categories`: filter by category array\n\n### memory_add\nStore new facts in long-term memory.\n- `facts` (required): array of facts — ALL must share the same category\n- `category`: `\"identity\"`, `\"preference\"`, `\"decision\"`, `\"rule\"`, `\"project\"`, `\"configuration\"`, `\"technical\"`, `\"relationship\"`\n- `importance`: 0.0–1.0\n\n### memory_get\nRetrieve a single memory by ID.\n- `memoryId` (required): the memory ID\n\n### memory_list\nList all stored memories for a user or agent.\n- `userId`, `agentId`: scope overrides\n- `scope`: `\"all\"` (default), `\"session\"`, or `\"long-term\"`\n\n### memory_update\nUpdate an existing memory's text in place. Atomic and preserves edit history.\n- `memoryId` (required): the memory ID to update\n- `text` (required): the new text (replaces old)\n\n### memory_delete\nDelete memories by ID, query, or bulk.\n- `memoryId`: specific memory ID to delete\n- `all`: delete ALL memories (requires `confirm: true`)\n- `userId`, `agentId`: scope overrides\n\n### memory_event_list\nList recent background processing events (platform mode only).\n\n### memory_event_status\nGet status of a specific background event.\n- `event_id` (required): the event ID to check\n\nFollow these four phases in order. Do not skip phases.\n\n## Phase 1: Orient\n\nSurvey the current memory landscape before making any changes.\n\n1. Call `memory_list` to load all stored memories.\n2. Count memories by category. Note the total.\n3. Identify the oldest and newest memories by their timestamps.\n4. Note any obvious problems visible in the list: duplicates, very short entries, entries without temporal anchors.\n\nDo not modify anything in this phase. The goal is to understand what you are working with.\n\n## Phase 2: Gather Targets\n\nIdentify which memories need action. Use the tools to investigate.\n\n**Search for recent additions:**\nCall `memory_search` with a `created_at` filter to find memories added since the last consolidation. These are the most likely to need merging or cleanup.\n\n**Classify each target into one of these actions:**\n- DELETE: contains credentials, expired by TTL, pure noise, raw tool output, standalone timestamps\n- MERGE: two or more memories express the same fact in different words, or a series tracks incremental changes to the same entity\n- REWRITE: vague, missing temporal anchor, uses first person instead of third, wrong category, overly verbose\n\n## Phase 3: Consolidate\n\nExecute the actions identified in Phase 2. Work in this priority order:\n\n### 3a. Delete dangerous and expired entries\n\nDelete immediately using `memory_delete`:\n- Credentials, API keys, tokens, passwords, secrets (matching known credential prefixes and auth patterns injected by the plugin at runtime)\n- Pure timestamps with no context\n- Raw tool output stored as memory\n- Heartbeat or cron execution records\n- Generic acknowledgments stored as memory (\"ok\", \"got it\")\n- Operational memories older than 7 days\n- Project memories older than 90 days\n\n### 3b. Merge duplicates\n\nWhen two or more memories express the same fact:\n1. Pick the most complete version as the base\n2. Call `memory_update` on the best version to incorporate missing details from the others\n3. Call `memory_delete` on the redundant entries\n\n`memory_update` is preferred over forget-then-store because it is atomic and preserves edit history.\n\nWhen merging, follow these rules:\n- Keep the user's original words for opinions and preferences\n- Preserve temporal anchors from both versions\n- Do not exceed 50 words in the merged result\n- The merged memory must be self-contained (understandable without the deleted ones)\n\n### 3c. Rewrite unclear entries\n\nWhen a memory needs improvement but is not a duplicate:\n1. Call `memory_update` with the improved text\n\nRewrite when:\n- Memory uses first person (\"I prefer\") instead of third (\"User prefers\")\n- Memory lacks a temporal anchor for time-sensitive information\n- Memory is vague (\"likes python\") and can be made specific (\"User prefers Python for backend development\")\n- Memory has the wrong category assignment\n- Memory is over 50 words and can be compressed without losing information\n\n## Phase 4: Report\n\nAfter completing all operations, summarize what you did:\n\n```\nConsolidation complete.\n- Reviewed: [total count]\n- Deleted (credentials\u002Fsecrets): [count]\n- Deleted (expired\u002Fstale): [count]\n- Merged: [count] groups into [count] memories\n- Rewritten: [count]\n- Final count: [total remaining]\n- Issues found: [any notable problems or observations]\n```\n\n## Quality Targets\n\nAfter consolidation, the memory store should have:\n- Zero memories containing credentials or secrets\n- Zero duplicate memories (same fact in different words)\n- All project and operational memories have temporal anchors (\"As of YYYY-MM-DD\")\n- All memories use third person voice\n- All memories are correctly categorized\n- Each memory is 15-50 words, self-contained, and atomic (one fact per memory)\n",{"data":47,"body":58},{"name":4,"description":6,"user-invocable":48,"metadata":49},true,{"openclaw":50},{"injected":48,"emoji":51,"requires":52},"💤",{"env":53,"bins":57},[54,55,56],"MEM0_API_KEY","OPENAI_API_KEY","ANTHROPIC_API_KEY",[],{"type":59,"children":60},"root",[61,70,76,83,89,94,185,190,195,285,290,295,309,314,319,363,368,373,396,401,406,453,458,463,468,473,487,492,498,503,534,539,545,550,576,584,602,608,613,619,631,669,675,680,710,720,725,748,754,759,773,778,806,812,817,829,835,840],{"type":62,"tag":63,"props":64,"children":66},"element","h1",{"id":65},"memory-consolidation",[67],{"type":68,"value":69},"text","Memory Consolidation",{"type":62,"tag":71,"props":72,"children":73},"p",{},[74],{"type":68,"value":75},"You are performing a memory consolidation pass. Your goal is to review all stored memories for this user and improve their overall quality. Think of this as compressing raw observations into clean, durable knowledge.",{"type":62,"tag":77,"props":78,"children":80},"h2",{"id":79},"available-tools",[81],{"type":68,"value":82},"Available Tools",{"type":62,"tag":84,"props":85,"children":87},"h3",{"id":86},"memory_search",[88],{"type":68,"value":86},{"type":62,"tag":71,"props":90,"children":91},{},[92],{"type":68,"value":93},"Semantic search across stored memories.",{"type":62,"tag":95,"props":96,"children":97},"ul",{},[98,111,122,141,174],{"type":62,"tag":99,"props":100,"children":101},"li",{},[102,109],{"type":62,"tag":103,"props":104,"children":106},"code",{"className":105},[],[107],{"type":68,"value":108},"query",{"type":68,"value":110}," (required): search query",{"type":62,"tag":99,"props":112,"children":113},{},[114,120],{"type":62,"tag":103,"props":115,"children":117},{"className":116},[],[118],{"type":68,"value":119},"limit",{"type":68,"value":121},": max results",{"type":62,"tag":99,"props":123,"children":124},{},[125,131,133,139],{"type":62,"tag":103,"props":126,"children":128},{"className":127},[],[129],{"type":68,"value":130},"userId",{"type":68,"value":132},", ",{"type":62,"tag":103,"props":134,"children":136},{"className":135},[],[137],{"type":68,"value":138},"agentId",{"type":68,"value":140},": scope overrides",{"type":62,"tag":99,"props":142,"children":143},{},[144,150,152,158,160,166,168],{"type":62,"tag":103,"props":145,"children":147},{"className":146},[],[148],{"type":68,"value":149},"scope",{"type":68,"value":151},": ",{"type":62,"tag":103,"props":153,"children":155},{"className":154},[],[156],{"type":68,"value":157},"\"all\"",{"type":68,"value":159}," (default), ",{"type":62,"tag":103,"props":161,"children":163},{"className":162},[],[164],{"type":68,"value":165},"\"session\"",{"type":68,"value":167},", or ",{"type":62,"tag":103,"props":169,"children":171},{"className":170},[],[172],{"type":68,"value":173},"\"long-term\"",{"type":62,"tag":99,"props":175,"children":176},{},[177,183],{"type":62,"tag":103,"props":178,"children":180},{"className":179},[],[181],{"type":68,"value":182},"categories",{"type":68,"value":184},": filter by category array",{"type":62,"tag":84,"props":186,"children":188},{"id":187},"memory_add",[189],{"type":68,"value":187},{"type":62,"tag":71,"props":191,"children":192},{},[193],{"type":68,"value":194},"Store new facts in long-term memory.",{"type":62,"tag":95,"props":196,"children":197},{},[198,209,274],{"type":62,"tag":99,"props":199,"children":200},{},[201,207],{"type":62,"tag":103,"props":202,"children":204},{"className":203},[],[205],{"type":68,"value":206},"facts",{"type":68,"value":208}," (required): array of facts — ALL must share the same category",{"type":62,"tag":99,"props":210,"children":211},{},[212,218,219,225,226,232,233,239,240,246,247,253,254,260,261,267,268],{"type":62,"tag":103,"props":213,"children":215},{"className":214},[],[216],{"type":68,"value":217},"category",{"type":68,"value":151},{"type":62,"tag":103,"props":220,"children":222},{"className":221},[],[223],{"type":68,"value":224},"\"identity\"",{"type":68,"value":132},{"type":62,"tag":103,"props":227,"children":229},{"className":228},[],[230],{"type":68,"value":231},"\"preference\"",{"type":68,"value":132},{"type":62,"tag":103,"props":234,"children":236},{"className":235},[],[237],{"type":68,"value":238},"\"decision\"",{"type":68,"value":132},{"type":62,"tag":103,"props":241,"children":243},{"className":242},[],[244],{"type":68,"value":245},"\"rule\"",{"type":68,"value":132},{"type":62,"tag":103,"props":248,"children":250},{"className":249},[],[251],{"type":68,"value":252},"\"project\"",{"type":68,"value":132},{"type":62,"tag":103,"props":255,"children":257},{"className":256},[],[258],{"type":68,"value":259},"\"configuration\"",{"type":68,"value":132},{"type":62,"tag":103,"props":262,"children":264},{"className":263},[],[265],{"type":68,"value":266},"\"technical\"",{"type":68,"value":132},{"type":62,"tag":103,"props":269,"children":271},{"className":270},[],[272],{"type":68,"value":273},"\"relationship\"",{"type":62,"tag":99,"props":275,"children":276},{},[277,283],{"type":62,"tag":103,"props":278,"children":280},{"className":279},[],[281],{"type":68,"value":282},"importance",{"type":68,"value":284},": 0.0–1.0",{"type":62,"tag":84,"props":286,"children":288},{"id":287},"memory_get",[289],{"type":68,"value":287},{"type":62,"tag":71,"props":291,"children":292},{},[293],{"type":68,"value":294},"Retrieve a single memory by ID.",{"type":62,"tag":95,"props":296,"children":297},{},[298],{"type":62,"tag":99,"props":299,"children":300},{},[301,307],{"type":62,"tag":103,"props":302,"children":304},{"className":303},[],[305],{"type":68,"value":306},"memoryId",{"type":68,"value":308}," (required): the memory ID",{"type":62,"tag":84,"props":310,"children":312},{"id":311},"memory_list",[313],{"type":68,"value":311},{"type":62,"tag":71,"props":315,"children":316},{},[317],{"type":68,"value":318},"List all stored memories for a user or agent.",{"type":62,"tag":95,"props":320,"children":321},{},[322,337],{"type":62,"tag":99,"props":323,"children":324},{},[325,330,331,336],{"type":62,"tag":103,"props":326,"children":328},{"className":327},[],[329],{"type":68,"value":130},{"type":68,"value":132},{"type":62,"tag":103,"props":332,"children":334},{"className":333},[],[335],{"type":68,"value":138},{"type":68,"value":140},{"type":62,"tag":99,"props":338,"children":339},{},[340,345,346,351,352,357,358],{"type":62,"tag":103,"props":341,"children":343},{"className":342},[],[344],{"type":68,"value":149},{"type":68,"value":151},{"type":62,"tag":103,"props":347,"children":349},{"className":348},[],[350],{"type":68,"value":157},{"type":68,"value":159},{"type":62,"tag":103,"props":353,"children":355},{"className":354},[],[356],{"type":68,"value":165},{"type":68,"value":167},{"type":62,"tag":103,"props":359,"children":361},{"className":360},[],[362],{"type":68,"value":173},{"type":62,"tag":84,"props":364,"children":366},{"id":365},"memory_update",[367],{"type":68,"value":365},{"type":62,"tag":71,"props":369,"children":370},{},[371],{"type":68,"value":372},"Update an existing memory's text in place. Atomic and preserves edit history.",{"type":62,"tag":95,"props":374,"children":375},{},[376,386],{"type":62,"tag":99,"props":377,"children":378},{},[379,384],{"type":62,"tag":103,"props":380,"children":382},{"className":381},[],[383],{"type":68,"value":306},{"type":68,"value":385}," (required): the memory ID to update",{"type":62,"tag":99,"props":387,"children":388},{},[389,394],{"type":62,"tag":103,"props":390,"children":392},{"className":391},[],[393],{"type":68,"value":68},{"type":68,"value":395}," (required): the new text (replaces old)",{"type":62,"tag":84,"props":397,"children":399},{"id":398},"memory_delete",[400],{"type":68,"value":398},{"type":62,"tag":71,"props":402,"children":403},{},[404],{"type":68,"value":405},"Delete memories by ID, query, or bulk.",{"type":62,"tag":95,"props":407,"children":408},{},[409,419,438],{"type":62,"tag":99,"props":410,"children":411},{},[412,417],{"type":62,"tag":103,"props":413,"children":415},{"className":414},[],[416],{"type":68,"value":306},{"type":68,"value":418},": specific memory ID to delete",{"type":62,"tag":99,"props":420,"children":421},{},[422,428,430,436],{"type":62,"tag":103,"props":423,"children":425},{"className":424},[],[426],{"type":68,"value":427},"all",{"type":68,"value":429},": delete ALL memories (requires ",{"type":62,"tag":103,"props":431,"children":433},{"className":432},[],[434],{"type":68,"value":435},"confirm: true",{"type":68,"value":437},")",{"type":62,"tag":99,"props":439,"children":440},{},[441,446,447,452],{"type":62,"tag":103,"props":442,"children":444},{"className":443},[],[445],{"type":68,"value":130},{"type":68,"value":132},{"type":62,"tag":103,"props":448,"children":450},{"className":449},[],[451],{"type":68,"value":138},{"type":68,"value":140},{"type":62,"tag":84,"props":454,"children":456},{"id":455},"memory_event_list",[457],{"type":68,"value":455},{"type":62,"tag":71,"props":459,"children":460},{},[461],{"type":68,"value":462},"List recent background processing events (platform mode only).",{"type":62,"tag":84,"props":464,"children":466},{"id":465},"memory_event_status",[467],{"type":68,"value":465},{"type":62,"tag":71,"props":469,"children":470},{},[471],{"type":68,"value":472},"Get status of a specific background event.",{"type":62,"tag":95,"props":474,"children":475},{},[476],{"type":62,"tag":99,"props":477,"children":478},{},[479,485],{"type":62,"tag":103,"props":480,"children":482},{"className":481},[],[483],{"type":68,"value":484},"event_id",{"type":68,"value":486}," (required): the event ID to check",{"type":62,"tag":71,"props":488,"children":489},{},[490],{"type":68,"value":491},"Follow these four phases in order. Do not skip phases.",{"type":62,"tag":77,"props":493,"children":495},{"id":494},"phase-1-orient",[496],{"type":68,"value":497},"Phase 1: Orient",{"type":62,"tag":71,"props":499,"children":500},{},[501],{"type":68,"value":502},"Survey the current memory landscape before making any changes.",{"type":62,"tag":504,"props":505,"children":506},"ol",{},[507,519,524,529],{"type":62,"tag":99,"props":508,"children":509},{},[510,512,517],{"type":68,"value":511},"Call ",{"type":62,"tag":103,"props":513,"children":515},{"className":514},[],[516],{"type":68,"value":311},{"type":68,"value":518}," to load all stored memories.",{"type":62,"tag":99,"props":520,"children":521},{},[522],{"type":68,"value":523},"Count memories by category. Note the total.",{"type":62,"tag":99,"props":525,"children":526},{},[527],{"type":68,"value":528},"Identify the oldest and newest memories by their timestamps.",{"type":62,"tag":99,"props":530,"children":531},{},[532],{"type":68,"value":533},"Note any obvious problems visible in the list: duplicates, very short entries, entries without temporal anchors.",{"type":62,"tag":71,"props":535,"children":536},{},[537],{"type":68,"value":538},"Do not modify anything in this phase. The goal is to understand what you are working with.",{"type":62,"tag":77,"props":540,"children":542},{"id":541},"phase-2-gather-targets",[543],{"type":68,"value":544},"Phase 2: Gather Targets",{"type":62,"tag":71,"props":546,"children":547},{},[548],{"type":68,"value":549},"Identify which memories need action. Use the tools to investigate.",{"type":62,"tag":71,"props":551,"children":552},{},[553,559,561,566,568,574],{"type":62,"tag":554,"props":555,"children":556},"strong",{},[557],{"type":68,"value":558},"Search for recent additions:",{"type":68,"value":560},"\nCall ",{"type":62,"tag":103,"props":562,"children":564},{"className":563},[],[565],{"type":68,"value":86},{"type":68,"value":567}," with a ",{"type":62,"tag":103,"props":569,"children":571},{"className":570},[],[572],{"type":68,"value":573},"created_at",{"type":68,"value":575}," filter to find memories added since the last consolidation. These are the most likely to need merging or cleanup.",{"type":62,"tag":71,"props":577,"children":578},{},[579],{"type":62,"tag":554,"props":580,"children":581},{},[582],{"type":68,"value":583},"Classify each target into one of these actions:",{"type":62,"tag":95,"props":585,"children":586},{},[587,592,597],{"type":62,"tag":99,"props":588,"children":589},{},[590],{"type":68,"value":591},"DELETE: contains credentials, expired by TTL, pure noise, raw tool output, standalone timestamps",{"type":62,"tag":99,"props":593,"children":594},{},[595],{"type":68,"value":596},"MERGE: two or more memories express the same fact in different words, or a series tracks incremental changes to the same entity",{"type":62,"tag":99,"props":598,"children":599},{},[600],{"type":68,"value":601},"REWRITE: vague, missing temporal anchor, uses first person instead of third, wrong category, overly verbose",{"type":62,"tag":77,"props":603,"children":605},{"id":604},"phase-3-consolidate",[606],{"type":68,"value":607},"Phase 3: Consolidate",{"type":62,"tag":71,"props":609,"children":610},{},[611],{"type":68,"value":612},"Execute the actions identified in Phase 2. Work in this priority order:",{"type":62,"tag":84,"props":614,"children":616},{"id":615},"_3a-delete-dangerous-and-expired-entries",[617],{"type":68,"value":618},"3a. Delete dangerous and expired entries",{"type":62,"tag":71,"props":620,"children":621},{},[622,624,629],{"type":68,"value":623},"Delete immediately using ",{"type":62,"tag":103,"props":625,"children":627},{"className":626},[],[628],{"type":68,"value":398},{"type":68,"value":630},":",{"type":62,"tag":95,"props":632,"children":633},{},[634,639,644,649,654,659,664],{"type":62,"tag":99,"props":635,"children":636},{},[637],{"type":68,"value":638},"Credentials, API keys, tokens, passwords, secrets (matching known credential prefixes and auth patterns injected by the plugin at runtime)",{"type":62,"tag":99,"props":640,"children":641},{},[642],{"type":68,"value":643},"Pure timestamps with no context",{"type":62,"tag":99,"props":645,"children":646},{},[647],{"type":68,"value":648},"Raw tool output stored as memory",{"type":62,"tag":99,"props":650,"children":651},{},[652],{"type":68,"value":653},"Heartbeat or cron execution records",{"type":62,"tag":99,"props":655,"children":656},{},[657],{"type":68,"value":658},"Generic acknowledgments stored as memory (\"ok\", \"got it\")",{"type":62,"tag":99,"props":660,"children":661},{},[662],{"type":68,"value":663},"Operational memories older than 7 days",{"type":62,"tag":99,"props":665,"children":666},{},[667],{"type":68,"value":668},"Project memories older than 90 days",{"type":62,"tag":84,"props":670,"children":672},{"id":671},"_3b-merge-duplicates",[673],{"type":68,"value":674},"3b. Merge duplicates",{"type":62,"tag":71,"props":676,"children":677},{},[678],{"type":68,"value":679},"When two or more memories express the same fact:",{"type":62,"tag":504,"props":681,"children":682},{},[683,688,699],{"type":62,"tag":99,"props":684,"children":685},{},[686],{"type":68,"value":687},"Pick the most complete version as the base",{"type":62,"tag":99,"props":689,"children":690},{},[691,692,697],{"type":68,"value":511},{"type":62,"tag":103,"props":693,"children":695},{"className":694},[],[696],{"type":68,"value":365},{"type":68,"value":698}," on the best version to incorporate missing details from the others",{"type":62,"tag":99,"props":700,"children":701},{},[702,703,708],{"type":68,"value":511},{"type":62,"tag":103,"props":704,"children":706},{"className":705},[],[707],{"type":68,"value":398},{"type":68,"value":709}," on the redundant entries",{"type":62,"tag":71,"props":711,"children":712},{},[713,718],{"type":62,"tag":103,"props":714,"children":716},{"className":715},[],[717],{"type":68,"value":365},{"type":68,"value":719}," is preferred over forget-then-store because it is atomic and preserves edit history.",{"type":62,"tag":71,"props":721,"children":722},{},[723],{"type":68,"value":724},"When merging, follow these rules:",{"type":62,"tag":95,"props":726,"children":727},{},[728,733,738,743],{"type":62,"tag":99,"props":729,"children":730},{},[731],{"type":68,"value":732},"Keep the user's original words for opinions and preferences",{"type":62,"tag":99,"props":734,"children":735},{},[736],{"type":68,"value":737},"Preserve temporal anchors from both versions",{"type":62,"tag":99,"props":739,"children":740},{},[741],{"type":68,"value":742},"Do not exceed 50 words in the merged result",{"type":62,"tag":99,"props":744,"children":745},{},[746],{"type":68,"value":747},"The merged memory must be self-contained (understandable without the deleted ones)",{"type":62,"tag":84,"props":749,"children":751},{"id":750},"_3c-rewrite-unclear-entries",[752],{"type":68,"value":753},"3c. Rewrite unclear entries",{"type":62,"tag":71,"props":755,"children":756},{},[757],{"type":68,"value":758},"When a memory needs improvement but is not a duplicate:",{"type":62,"tag":504,"props":760,"children":761},{},[762],{"type":62,"tag":99,"props":763,"children":764},{},[765,766,771],{"type":68,"value":511},{"type":62,"tag":103,"props":767,"children":769},{"className":768},[],[770],{"type":68,"value":365},{"type":68,"value":772}," with the improved text",{"type":62,"tag":71,"props":774,"children":775},{},[776],{"type":68,"value":777},"Rewrite when:",{"type":62,"tag":95,"props":779,"children":780},{},[781,786,791,796,801],{"type":62,"tag":99,"props":782,"children":783},{},[784],{"type":68,"value":785},"Memory uses first person (\"I prefer\") instead of third (\"User prefers\")",{"type":62,"tag":99,"props":787,"children":788},{},[789],{"type":68,"value":790},"Memory lacks a temporal anchor for time-sensitive information",{"type":62,"tag":99,"props":792,"children":793},{},[794],{"type":68,"value":795},"Memory is vague (\"likes python\") and can be made specific (\"User prefers Python for backend development\")",{"type":62,"tag":99,"props":797,"children":798},{},[799],{"type":68,"value":800},"Memory has the wrong category assignment",{"type":62,"tag":99,"props":802,"children":803},{},[804],{"type":68,"value":805},"Memory is over 50 words and can be compressed without losing information",{"type":62,"tag":77,"props":807,"children":809},{"id":808},"phase-4-report",[810],{"type":68,"value":811},"Phase 4: Report",{"type":62,"tag":71,"props":813,"children":814},{},[815],{"type":68,"value":816},"After completing all operations, summarize what you did:",{"type":62,"tag":818,"props":819,"children":823},"pre",{"className":820,"code":822,"language":68},[821],"language-text","Consolidation complete.\n- Reviewed: [total count]\n- Deleted (credentials\u002Fsecrets): [count]\n- Deleted (expired\u002Fstale): [count]\n- Merged: [count] groups into [count] memories\n- Rewritten: [count]\n- Final count: [total remaining]\n- Issues found: [any notable problems or observations]\n",[824],{"type":62,"tag":103,"props":825,"children":827},{"__ignoreMap":826},"",[828],{"type":68,"value":822},{"type":62,"tag":77,"props":830,"children":832},{"id":831},"quality-targets",[833],{"type":68,"value":834},"Quality Targets",{"type":62,"tag":71,"props":836,"children":837},{},[838],{"type":68,"value":839},"After consolidation, the memory store should have:",{"type":62,"tag":95,"props":841,"children":842},{},[843,848,853,858,863,868],{"type":62,"tag":99,"props":844,"children":845},{},[846],{"type":68,"value":847},"Zero memories containing credentials or secrets",{"type":62,"tag":99,"props":849,"children":850},{},[851],{"type":68,"value":852},"Zero duplicate memories (same fact in different words)",{"type":62,"tag":99,"props":854,"children":855},{},[856],{"type":68,"value":857},"All project and operational memories have temporal anchors (\"As of YYYY-MM-DD\")",{"type":62,"tag":99,"props":859,"children":860},{},[861],{"type":68,"value":862},"All memories use third person voice",{"type":62,"tag":99,"props":864,"children":865},{},[866],{"type":68,"value":867},"All memories are correctly categorized",{"type":62,"tag":99,"props":869,"children":870},{},[871],{"type":68,"value":872},"Each memory is 15-50 words, self-contained, and atomic (one fact per memory)",{"items":874,"total":962},[875,887,899,913,927,941,953],{"slug":876,"name":876,"fn":877,"description":878,"org":879,"tags":880,"stars":23,"repoUrl":24,"updatedAt":886},"context-loader","load project context from Mem0","Searches and injects relevant memories into context before starting work on a task. Use when beginning a new task, switching context, or when project history, past decisions, or coding conventions need to be loaded.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[881,882,885],{"name":21,"slug":22,"type":16},{"name":883,"slug":884,"type":16},"Context","context",{"name":18,"slug":19,"type":16},"2026-07-13T06:13:15.682218",{"slug":888,"name":888,"fn":889,"description":890,"org":891,"tags":892,"stars":23,"repoUrl":24,"updatedAt":898},"dream","consolidate and prune stored memories","Consolidates stored memories by merging duplicates, resolving contradictions, and pruning stale entries. Use when memory count is high, search results feel noisy or repetitive, or periodic cleanup is needed to maintain memory quality.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[893,894,897],{"name":21,"slug":22,"type":16},{"name":895,"slug":896,"type":16},"Data Cleaning","data-cleaning",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:54.000421",{"slug":900,"name":900,"fn":901,"description":902,"org":903,"tags":904,"stars":23,"repoUrl":24,"updatedAt":912},"export","export project memories to Markdown files","Exports all project memories to a portable Markdown file for backup or migration. Use when backing up memories, migrating to another project, sharing memory state with teammates, or archiving before cleanup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[905,908,909],{"name":906,"slug":907,"type":16},"Backup","backup",{"name":18,"slug":19,"type":16},{"name":910,"slug":911,"type":16},"Migration","migration","2026-07-13T06:13:05.091831",{"slug":914,"name":914,"fn":915,"description":916,"org":917,"tags":918,"stars":23,"repoUrl":24,"updatedAt":926},"forget","delete outdated or incorrect memories","Deletes memories by search query or memory ID with confirmation before removal. Use when removing outdated decisions, incorrect memories, sensitive data, or cleaning up after experiments. Also handles undo of recent additions.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[919,922,923],{"name":920,"slug":921,"type":16},"Maintenance","maintenance",{"name":18,"slug":19,"type":16},{"name":924,"slug":925,"type":16},"Privacy","privacy","2026-07-13T06:13:00.862899",{"slug":928,"name":928,"fn":929,"description":930,"org":931,"tags":932,"stars":23,"repoUrl":24,"updatedAt":940},"health","diagnose Mem0 connectivity and health","Diagnoses mem0 connectivity, API key validity, and memory read\u002Fwrite functionality. Use when memory operations fail, searches return empty, add_memory errors occur, MCP connection drops, or to verify the plugin is working correctly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[933,936,937],{"name":934,"slug":935,"type":16},"Debugging","debugging",{"name":18,"slug":19,"type":16},{"name":938,"slug":939,"type":16},"Monitoring","monitoring","2026-07-13T06:13:06.569475",{"slug":942,"name":942,"fn":943,"description":944,"org":945,"tags":946,"stars":23,"repoUrl":24,"updatedAt":952},"import","import project memories from Markdown files","Imports memories from an exported Markdown file or MEMORY.md into the current project. Use when migrating from another project, restoring from backup, importing Claude Code native MEMORY.md content, or setting up a new project with existing knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[947,950,951],{"name":948,"slug":949,"type":16},"Markdown","markdown",{"name":18,"slug":19,"type":16},{"name":910,"slug":911,"type":16},"2026-07-13T06:12:59.389494",{"slug":954,"name":954,"fn":955,"description":956,"org":957,"tags":958,"stars":23,"repoUrl":24,"updatedAt":961},"list-projects","list projects with stored memories","Lists all projects with stored memories for the current user, showing memory counts and last activity dates. Use when checking which projects have memories, comparing memory distribution across repos, or finding a specific project scope.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[959,960],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},"2026-07-13T06:13:27.80043",23,{"items":964,"total":962},[965,971,977,983,989,995,1001,1006,1017,1029,1041,1051],{"slug":876,"name":876,"fn":877,"description":878,"org":966,"tags":967,"stars":23,"repoUrl":24,"updatedAt":886},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[968,969,970],{"name":21,"slug":22,"type":16},{"name":883,"slug":884,"type":16},{"name":18,"slug":19,"type":16},{"slug":888,"name":888,"fn":889,"description":890,"org":972,"tags":973,"stars":23,"repoUrl":24,"updatedAt":898},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[974,975,976],{"name":21,"slug":22,"type":16},{"name":895,"slug":896,"type":16},{"name":18,"slug":19,"type":16},{"slug":900,"name":900,"fn":901,"description":902,"org":978,"tags":979,"stars":23,"repoUrl":24,"updatedAt":912},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[980,981,982],{"name":906,"slug":907,"type":16},{"name":18,"slug":19,"type":16},{"name":910,"slug":911,"type":16},{"slug":914,"name":914,"fn":915,"description":916,"org":984,"tags":985,"stars":23,"repoUrl":24,"updatedAt":926},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[986,987,988],{"name":920,"slug":921,"type":16},{"name":18,"slug":19,"type":16},{"name":924,"slug":925,"type":16},{"slug":928,"name":928,"fn":929,"description":930,"org":990,"tags":991,"stars":23,"repoUrl":24,"updatedAt":940},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[992,993,994],{"name":934,"slug":935,"type":16},{"name":18,"slug":19,"type":16},{"name":938,"slug":939,"type":16},{"slug":942,"name":942,"fn":943,"description":944,"org":996,"tags":997,"stars":23,"repoUrl":24,"updatedAt":952},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[998,999,1000],{"name":948,"slug":949,"type":16},{"name":18,"slug":19,"type":16},{"name":910,"slug":911,"type":16},{"slug":954,"name":954,"fn":955,"description":956,"org":1002,"tags":1003,"stars":23,"repoUrl":24,"updatedAt":961},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1004,1005],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"slug":8,"name":8,"fn":1007,"description":1008,"org":1009,"tags":1010,"stars":23,"repoUrl":24,"updatedAt":1016},"add persistent memory to AI applications","Mem0 Platform SDK for adding persistent memory to AI applications. TRIGGER when: user mentions \"mem0\", \"MemoryClient\", \"memory layer\", \"remember user preferences\", \"persistent context\", \"personalization\", or needs to add long-term memory to chatbots, agents, or AI apps. Covers Python SDK (mem0ai), TypeScript SDK (mem0ai), and framework integrations (LangChain, CrewAI, OpenAI Agents SDK, Pipecat, LlamaIndex, AutoGen, LangGraph). Also covers the open-source self-hosted Memory class. This is the DEFAULT mem0 skill for ambiguous queries. DO NOT TRIGGER when: user asks about CLI commands, terminal usage, or shell scripts (use mem0-cli), or Vercel AI SDK \u002F @mem0\u002Fvercel-ai-provider \u002F createMem0 (use mem0-vercel-ai-sdk).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1011,1012,1015],{"name":21,"slug":22,"type":16},{"name":1013,"slug":1014,"type":16},"AI Infrastructure","ai-infrastructure",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:42.552904",{"slug":1018,"name":1018,"fn":1019,"description":1020,"org":1021,"tags":1022,"stars":23,"repoUrl":24,"updatedAt":1028},"mem0-cli","manage Mem0 memory via command line","Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions \"mem0 cli\", \"mem0 command line\", \"@mem0\u002Fcli\", \"mem0-cli\", \"pip install mem0-cli\", \"npm install -g @mem0\u002Fcli\", or is running mem0 commands in a terminal\u002Fshell (mem0 add, mem0 search, mem0 list, mem0 get, mem0 init, mem0 config, mem0 import). Also triggers when query includes CLI flags like --user-id, --output, --json, --agent, or describes bash\u002Fzsh\u002Fterminal\u002Fshell usage. DO NOT TRIGGER when: user asks about programmatic SDK integration in Python\u002FTS code (use mem0 skill), or Vercel AI SDK provider (use mem0-vercel-ai-sdk skill).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1023,1024,1027],{"name":14,"slug":15,"type":16},{"name":1025,"slug":1026,"type":16},"CLI","cli",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:48.46494",{"slug":1030,"name":1030,"fn":1031,"description":1032,"org":1033,"tags":1034,"stars":23,"repoUrl":24,"updatedAt":1040},"mem0-integrate","integrate Mem0 into repositories","Integrate Mem0 into an existing repository using a goal-driven, TDD pipeline. Detects the repo's language automatically and asks the user to pick between Mem0 Platform (managed) and Mem0 Open Source (self-hosted). Writes failing tests before any implementation. Produces a local feature branch plus `.mem0-integration\u002F` artifacts consumed by the paired verification skill. TRIGGER when: user says \"integrate mem0\", \"add mem0 to this repo\", \"wire mem0 into \u003Crepo>\", or asks how to add memory to an existing project. DO NOT TRIGGER when: the user wants general SDK usage (use skill:mem0), CLI usage (use skill:mem0-cli), or Vercel AI SDK (use skill:mem0-vercel-ai-sdk). After success, invoke skill:mem0-test-integration to verify in the same workspace (loose coupling).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1035,1036,1039],{"name":21,"slug":22,"type":16},{"name":1037,"slug":1038,"type":16},"API Development","api-development",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:46.60755",{"slug":1042,"name":1042,"fn":1043,"description":1044,"org":1045,"tags":1046,"stars":23,"repoUrl":24,"updatedAt":1050},"mem0-oss-to-platform","migrate Mem0 projects to platform","Plan and then execute a migration of a project from the mem0 open-source \u002F self-hosted SDK (the local `Memory` class) to the mem0 Platform \u002F hosted \u002F managed SDK (the `MemoryClient` class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS\u002Fself-hosted to the hosted API — e.g. \"migrate my mem0 setup to the platform\", \"switch from self-hosted mem0 to MemoryClient\", \"use my mem0 API key instead of a local Qdrant\", \"move mem0 to the cloud\u002Fhosted\u002Fmanaged service\", or \"replace my local mem0 vector store + embedder config with the platform\". Applies to Python (`from mem0 import Memory` → `from mem0 import MemoryClient`) and TypeScript\u002FJavaScript (`import { Memory } from \"mem0ai\u002Foss\"` → `import MemoryClient from \"mem0ai\"`). Trigger even when the user doesn't say the word \"migrate\" but clearly wants their existing mem0 integration to run against the hosted platform. It first produces a reviewable migration plan, then executes it after the developer approves. Strictly scoped to the mem0 integration — it does not refactor, restructure, or \"improve\" any unrelated code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1047,1048,1049],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":910,"slug":911,"type":16},"2026-07-13T06:12:43.848266",{"slug":1052,"name":1052,"fn":1053,"description":1054,"org":1055,"tags":1056,"stars":23,"repoUrl":24,"updatedAt":1065},"mem0-test-integration","verify Mem0 integration tests","Verify a Mem0 integration produced by \u002Fmem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run \u002Fmem0-integrate and says \"verify\", \"test the integration\", \"run \u002Fmem0-test-integration\", or when a .mem0-integration\u002F directory exists and tests have not been run yet on the current branch. DO NOT TRIGGER when: the user wants to run general project tests (defer to the repo's native test command), or when no prior \u002Fmem0-integrate run exists in the current branch (ask them to run \u002Fmem0-integrate first). This skill ONLY catches compile and runtime bugs by design. Logical integration errors — wrong data stored, wrong time retrieved, wrong user scoping — are on the human reviewer.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1057,1058,1059,1062],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":1060,"slug":1061,"type":16},"QA","qa",{"name":1063,"slug":1064,"type":16},"Testing","testing","2026-07-13T06:12:50.669701"]