[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75DR281VMJKMZ9B4ST54FKM":3,"skill-same:01M75DR281VMJKMZ9B4ST54FKM":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},"01M75DR281VMJKMZ9B4ST54FKM","mem0-scope",null,"Views or changes the default memory scope (project, session, or global) used when saving and searching memories. Use when the user wants to control whether memories are scoped to this repo, this run, or shared across all their projects.","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-scope\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: mem0-scope\ndescription: Views or changes the default memory scope (project, session, or global) used when saving and searching memories. Use when the user wants to control whether memories are scoped to this repo, this run, or shared across all their projects.\n---\n\n# Mem0 Scope\n\nView or change the **default memory scope** — the scope the memory tools use when\nno explicit `scope` is given. The setting persists in `~\u002F.mem0\u002Fsettings.json`\n(`default_scope`) and the plugin reads it fresh on each memory operation, so a\nchange takes effect immediately in the current session.\n\nThe three scopes:\n\n- `project` (default) — this repo only. Filters by `user_id` + `app_id`.\n- `session` — this run only. Adds `run_id` (the current session) so memories are\n  isolated to this conversation.\n- `global` — across ALL your projects. Reads use `app_id=\"*\"`; writes drop\n  `app_id` so the memory is user-wide.\n\n## Execution\n\n### Step 1: Determine intent\n\nLook at the user's message for a target scope word: `project`, `session`, or\n`global` (also accept \"repo\"→project, \"run\"→session, \"all\"\u002F\"everywhere\"→global).\n\n- No target word present → **View mode** (Step 2).\n- A target word present → **Change mode** (Step 3).\n\n### Step 2: View mode — show the current scope\n\n1. Read the current default scope from settings:\n\n   ```bash\n   _S=\"$HOME\u002F.mem0\u002Fsettings.json\"\n   [ -f \"$_S\" ] && grep -o '\"default_scope\"[[:space:]]*:[[:space:]]*\"[a-z]*\"' \"$_S\" | grep -o '[a-z]*\"$' | tr -d '\"' || echo \"project\"\n   ```\n\n   If the command prints nothing, the scope is `project` (the default).\n\n2. (Optional) Show how many memories live in the current scope by calling\n   `get_memories` with `scope=\"\u003Ccurrent>\"`, `page_size=1`, and reading the\n   `count` (or result length) from the response.\n\n3. Display using the identity the plugin exported (do NOT re-shell git):\n\n   ```\n   Mem0 memory scope\n\n   Current default scope: \u003Ccurrent>\n\n     project  - this repo only (user + app_id)        \u003Cmarker if active>\n     session  - this run only (adds run_id)           \u003Cmarker if active>\n     global   - all your projects (app_id = *)         \u003Cmarker if active>\n\n   User:    ${MEM0_USER_ID}\n   Project: ${MEM0_APP_ID}\n   Session: ${MEM0_SESSION_ID}\n\n   To change: \u002Fmem0-scope session    (or project \u002F global)\n   ```\n\n   Put `[active]` next to the current scope. If you fetched a count in step 2,\n   add a `Memories in scope: \u003CN>` line.\n\n### Step 3: Change mode — set a new scope\n\n1. Validate the target is one of `project`, `session`, `global`. If not, show the\n   three options and stop.\n\n2. Read the existing settings so you preserve every other key. Use the Read tool\n   on `~\u002F.mem0\u002Fsettings.json` (it may not exist yet — treat a missing file as\n   `{}`).\n\n3. Write the file back with the Write tool, keeping ALL existing keys and only\n   setting `\"default_scope\"` to the target. Pretty-print with 2-space indent and\n   a trailing newline. Do not drop `global_search`, `dream`, `auto_save`, or any\n   other field that was present.\n\n   Example resulting file (when other keys already existed):\n\n   ```json\n   {\n     \"auto_save\": true,\n     \"search_limit\": 10,\n     \"default_scope\": \"global\"\n   }\n   ```\n\n4. Confirm:\n\n   ```\n   Default memory scope changed: \u003Cold> -> \u003Cnew>\n\n   \u003Cone line describing the effect — see below>\n   Applies immediately to memory tools in this session.\n\n   To revert: \u002Fmem0-scope \u003Cold>\n   ```\n\n   Effect lines:\n   - project → \"New memories and searches are limited to this repo.\"\n   - session → \"New memories and searches are limited to this run (this conversation).\"\n   - global  → \"New memories and searches span all your projects. delete_all_memories still needs an explicit scope=global to delete user-wide.\"\n\n### Notes\n\n- This only changes the **default**. Any memory tool call can still pass an\n  explicit `scope` to override it for that one call.\n- `delete_all_memories` deliberately ignores the default scope: deleting\n  user-wide always requires an explicit `scope=\"global\"`, so changing the\n  default can never turn a routine cleanup into a cross-project wipe.\n- `global` scope (this user, all their projects) is distinct from the separate\n  `global_search` setting (all users). Leave `global_search` untouched here.\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 Scope\n\nView or change the **default memory scope** — the scope the memory tools use when\nno explicit `scope` is given. The setting persists in `~\u002F.mem0\u002Fsettings.json`\n(`default_scope`) and the plugin reads it fresh on each memory operation, so a\nchange takes effect immediately in the current session.\n\nThe three scopes:\n\n- `project` (default) — this repo only. Filters by `user_id` + `app_id`.\n- `session` — this run only. Adds `run_id` (the current session) so memories are\n  isolated to this conversation.\n- `global` — across ALL your projects. Reads use `app_id=\"*\"`; writes drop\n  `app_id` so the memory is user-wide.\n\n## Execution\n\n### Step 1: Determine intent\n\nLook at the user's message for a target scope word: `project`, `session`, or\n`global` (also accept \"repo\"→project, \"run\"→session, \"all\"\u002F\"everywhere\"→global).\n\n- No target word present → **View mode** (Step 2).\n- A target word present → **Change mode** (Step 3).\n\n### Step 2: View mode — show the current scope\n\n1. Read the current default scope from settings:\n\n   ```bash\n   _S=\"$HOME\u002F.mem0\u002Fsettings.json\"\n   [ -f \"$_S\" ] && grep -o '\"default_scope\"[[:space:]]*:[[:space:]]*\"[a-z]*\"' \"$_S\" | grep -o '[a-z]*\"$' | tr -d '\"' || echo \"project\"\n   ```\n\n   If the command prints nothing, the scope is `project` (the default).\n\n2. (Optional) Show how many memories live in the current scope by calling\n   `get_memories` with `scope=\"\u003Ccurrent>\"`, `page_size=1`, and reading the\n   `count` (or result length) from the response.\n\n3. Display using the identity the plugin exported (do NOT re-shell git):\n\n   ```\n   Mem0 memory scope\n\n   Current default scope: \u003Ccurrent>\n\n     project  - this repo only (user + app_id)        \u003Cmarker if active>\n     session  - this run only (adds run_id)           \u003Cmarker if active>\n     global   - all your projects (app_id = *)         \u003Cmarker if active>\n\n   User:    ${MEM0_USER_ID}\n   Project: ${MEM0_APP_ID}\n   Session: ${MEM0_SESSION_ID}\n\n   To change: \u002Fmem0-scope session    (or project \u002F global)\n   ```\n\n   Put `[active]` next to the current scope. If you fetched a count in step 2,\n   add a `Memories in scope: \u003CN>` line.\n\n### Step 3: Change mode — set a new scope\n\n1. Validate the target is one of `project`, `session`, `global`. If not, show the\n   three options and stop.\n\n2. Read the existing settings so you preserve every other key. Use the Read tool\n   on `~\u002F.mem0\u002Fsettings.json` (it may not exist yet — treat a missing file as\n   `{}`).\n\n3. Write the file back with the Write tool, keeping ALL existing keys and only\n   setting `\"default_scope\"` to the target. Pretty-print with 2-space indent and\n   a trailing newline. Do not drop `global_search`, `dream`, `auto_save`, or any\n   other field that was present.\n\n   Example resulting file (when other keys already existed):\n\n   ```json\n   {\n     \"auto_save\": true,\n     \"search_limit\": 10,\n     \"default_scope\": \"global\"\n   }\n   ```\n\n4. Confirm:\n\n   ```\n   Default memory scope changed: \u003Cold> -> \u003Cnew>\n\n   \u003Cone line describing the effect — see below>\n   Applies immediately to memory tools in this session.\n\n   To revert: \u002Fmem0-scope \u003Cold>\n   ```\n\n   Effect lines:\n   - project → \"New memories and searches are limited to this repo.\"\n   - session → \"New memories and searches are limited to this run (this conversation).\"\n   - global  → \"New memories and searches span all your projects. delete_all_memories still needs an explicit scope=global to delete user-wide.\"\n\n### Notes\n\n- This only changes the **default**. Any memory tool call can still pass an\n  explicit `scope` to override it for that one call.\n- `delete_all_memories` deliberately ignores the default scope: deleting\n  user-wide always requires an explicit `scope=\"global\"`, so changing the\n  default can never turn a routine cleanup into a cross-project wipe.\n- `global` scope (this user, all their projects) is distinct from the separate\n  `global_search` setting (all users). Leave `global_search` untouched here.\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-scope",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-scope",{"tool":37,"command":38},"bunx","bunx skills add zhangmask\u002FC_AnimeCompanion --skill mem0-scope",{"tool":40,"command":41},"pnpm","pnpm dlx skills add zhangmask\u002FC_AnimeCompanion --skill mem0-scope","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzhangmask\u002FC_AnimeCompanion\u002Fblob\u002Fmain\u002Fothergithubdemo\u002Fmem0-main\u002Fmem0-main\u002Fintegrations\u002Fmem0-plugin\u002F.opencode-plugin\u002Fopencode-skills\u002Fmem0-scope\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",[],[]]