[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75DQVT5T3FASASXC0PFXJ0V":3,"skill-same:01M75DQVT5T3FASASXC0PFXJ0V":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M75DQVT5T3FASASXC0PFXJ0V","mem0-pin",null,"Pins or unpins a memory to protect it from pruning during dream consolidation. Use when a memory is critical and must never be removed, such as architecture decisions, security constraints, or immutable team conventions.","zhangmask\u002FC_AnimeCompanion","zhangmask","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142085030?v=4","01M75DE4RMVR0PZNRT2CHBNB1K","Zeshan Zhang","01M75DE4SE8VQSYG2PMV66F3PE",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fintegrations\u002Fmem0-plugin\u002F.opencode-plugin\u002Fopencode-skills\u002Fmem0-pin\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: mem0-pin\ndescription: Pins or unpins a memory to protect it from pruning during dream consolidation. Use when a memory is critical and must never be removed, such as architecture decisions, security constraints, or immutable team conventions.\n---\n\n# Mem0 Pin\n\nPin a memory to mark it as high-priority and protect from pruning.\n\n## Execution\n\n### Step 1: Find the memory\n\nThe user provides either a search query or memory ID.\n\n**If memory ID:**\n- Call `get_memory` with the ID.\n\n**If search query:**\n- Call `search_memories` with the query, `filters={\"AND\": [{\"user_id\": \"\u003Cid>\"}, {\"app_id\": \"\u003Cpid>\"}]}`, `top_k=5`.\n- Show numbered list with content previews.\n- Ask: \"Which memory to pin? Enter a number.\"\n\n### Step 2: Read current content\n\nCall `get_memory` with the selected memory ID. Store:\n- `original_text` — the memory's text content\n- `original_metadata` — the existing `metadata` dict\n\n### Step 3: Pin it\n\nThe `update_memory` tool updates a memory by `id`. To pin durably, append a pin\nmarker to the text so it travels with the memory:\n\n```python\npinned_text = \"[PINNED] \" + original_text if not original_text.startswith(\"[PINNED]\") else original_text\nupdate_memory(id=\u003Cselected_id>, text=pinned_text)\n```\n\n**For new memories** (user wants to pin text that isn't stored yet):\n1. Call `add_memory` with:\n   - `text=\"[PINNED] \u003Cthe user's text>\"`\n   - `user_id=\u003Cactive_user_id>`\n   - `app_id=\u003Cactive_project_id>`\n   - `metadata={\"pinned\": true, \"type\": \"decision\", \"confidence\": 1.0}`\n   - `infer=False`\n2. The response contains `event_id`. Call `get_event_status(event_id=\u003Cevent_id>)` once to retrieve the memory ID, then confirm.\n\n### Step 4: Confirm\n\n```\nPinned: \"\u003Cmemory content, first 80 chars>\"\nMemory ID: \u003Cid>\n```\n\nAppend `...` only if content exceeds 80 characters.\n\n### Unpin\n\nIf the user says \"unpin\":\n1. Call `get_memory` to read current content.\n2. Remove the pin marker from the text:\n   ```python\n   unpinned_text = original_text.removeprefix(\"[PINNED] \")\n   update_memory(memory_id=\u003Cid>, text=unpinned_text)\n   ```\n3. Print: `Unpinned: \"\u003Ccontent>...\"`\n\n## Output formatting\n\nIMPORTANT: Do NOT use markdown in your output. OpenCode TUI renders text verbatim — markdown like **bold**, ## headers, and | table | syntax appears as raw characters. Use plain text with indentation for structure. Use dashes for lists. Use spaces to align columns instead of markdown tables.\n","# Mem0 Pin\n\nPin a memory to mark it as high-priority and protect from pruning.\n\n## Execution\n\n### Step 1: Find the memory\n\nThe user provides either a search query or memory ID.\n\n**If memory ID:**\n- Call `get_memory` with the ID.\n\n**If search query:**\n- Call `search_memories` with the query, `filters={\"AND\": [{\"user_id\": \"\u003Cid>\"}, {\"app_id\": \"\u003Cpid>\"}]}`, `top_k=5`.\n- Show numbered list with content previews.\n- Ask: \"Which memory to pin? Enter a number.\"\n\n### Step 2: Read current content\n\nCall `get_memory` with the selected memory ID. Store:\n- `original_text` — the memory's text content\n- `original_metadata` — the existing `metadata` dict\n\n### Step 3: Pin it\n\nThe `update_memory` tool updates a memory by `id`. To pin durably, append a pin\nmarker to the text so it travels with the memory:\n\n```python\npinned_text = \"[PINNED] \" + original_text if not original_text.startswith(\"[PINNED]\") else original_text\nupdate_memory(id=\u003Cselected_id>, text=pinned_text)\n```\n\n**For new memories** (user wants to pin text that isn't stored yet):\n1. Call `add_memory` with:\n   - `text=\"[PINNED] \u003Cthe user's text>\"`\n   - `user_id=\u003Cactive_user_id>`\n   - `app_id=\u003Cactive_project_id>`\n   - `metadata={\"pinned\": true, \"type\": \"decision\", \"confidence\": 1.0}`\n   - `infer=False`\n2. The response contains `event_id`. Call `get_event_status(event_id=\u003Cevent_id>)` once to retrieve the memory ID, then confirm.\n\n### Step 4: Confirm\n\n```\nPinned: \"\u003Cmemory content, first 80 chars>\"\nMemory ID: \u003Cid>\n```\n\nAppend `...` only if content exceeds 80 characters.\n\n### Unpin\n\nIf the user says \"unpin\":\n1. Call `get_memory` to read current content.\n2. Remove the pin marker from the text:\n   ```python\n   unpinned_text = original_text.removeprefix(\"[PINNED] \")\n   update_memory(memory_id=\u003Cid>, text=unpinned_text)\n   ```\n3. Print: `Unpinned: \"\u003Ccontent>...\"`\n\n## Output formatting\n\nIMPORTANT: Do NOT use markdown in your output. OpenCode TUI renders text verbatim — markdown like **bold**, ## headers, and | table | syntax appears as raw characters. Use plain text with indentation for structure. Use dashes for lists. Use spaces to align columns instead of markdown tables.\n",{"name":5,"description":7},"main","89af4b6bd8e57a4af34127bcd3e74beba2960c99","othergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fintegrations\u002Fmem0-plugin\u002F.opencode-plugin\u002Fopencode-skills\u002Fmem0-pin",0,"https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion","https:\u002F\u002Fgithub.com\u002Fzhangmask","2026-08-12 23:25:19",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add zhangmask\u002FC_AnimeCompanion --skill mem0-pin",{"tool":37,"command":38},"bunx","bunx skills add zhangmask\u002FC_AnimeCompanion --skill mem0-pin",{"tool":40,"command":41},"pnpm","pnpm dlx skills add zhangmask\u002FC_AnimeCompanion --skill mem0-pin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fintegrations\u002Fmem0-plugin\u002F.opencode-plugin\u002Fopencode-skills\u002Fmem0-pin\u002FSKILL.md",true,[],[46,54,62,70,78,86],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":50,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M75DWFRG97DMF5XB527G18KQ","mem0","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).","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":58,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M75DWA6DYJVW82BRA7PGWAWP","mem0-vercel-ai-sdk","Mem0 provider for Vercel AI SDK (@mem0\u002Fvercel-ai-provider). TRIGGER when: user mentions \"vercel ai sdk\", \"@mem0\u002Fvercel-ai-provider\", \"createMem0\", \"retrieveMemories\", \"addMemories\", \"getMemories\", \"searchMemories\", \"mem0 vercel\", \"AI SDK provider\", \"AI SDK memory\", or is using generateText\u002FstreamText with mem0. Also triggers for Next.js apps needing memory-augmented AI. DO NOT TRIGGER when: user asks about direct Python\u002FTS SDK calls without Vercel (use mem0 skill), or CLI terminal commands (use mem0-cli skill).","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-vercel-ai-sdk\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-vercel-ai-sdk\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M75DW1BKX9416VYXSV0MWWKK","mem0-test-integration","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.","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-test-integration\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-test-integration\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M75DVRVCQK3DNHFASD8SD2A2","mem0-oss-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.","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-oss-to-platform\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-oss-to-platform\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75DVH4QN1KKJ6JWFH0ZEP4K","mem0-integrate","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).","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-integrate\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-integrate\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M75DV93TE88NQW790RDN7WRY","mem0-cli","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).","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-cli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fskills\u002Fmem0-cli\u002FSKILL.md",[],[]]