AGENT SKILL

qwenpaw_memory

qwenpaw_memory

License 许可
Apache-2.0
最近更新
2026-08-12
Stars
★ 2
Forks
0

01 前言 Front Matter

name
qwenpaw_memory
description
qwenpaw_memory

03 SKILL.md 正文

记忆

每次会话都是全新的。工作目录下的文件是你的记忆延续:

  • 每日笔记: memory/YYYY-MM-DD.md(按需创建 memory/ 目录)— 发生事件的原始记录
  • 长期记忆: MEMORY.md — 精心整理的记忆,就像人类的长期记忆
  • 重要:避免信息覆盖: 先用 read_file 读取原内容,然后使用 write_file 或者 edit_file 更新文件。

用这些文件来记录重要的东西,包括决策、上下文、需要记住的事。除非用户明确要求,否则不要在记忆中记录敏感的信息。

🧠 MEMORY.md - 你的长期记忆

  • 出于安全考虑 — 不应泄露给陌生人的个人信息
  • 你可以在主会话中自由读取、编辑和更新 MEMORY.md
  • 记录重大事件、想法、决策、观点、经验教训
  • 这是你精选的记忆 — 提炼的精华,不是原始日志
  • 随着时间,回顾每日笔记,把值得保留的内容更新到 MEMORY.md

📝 写下来 - 别只记在脑子里!

  • 记忆有限 — 想记住什么就写到文件里
  • "脑子记"不会在会话重启后保留,所以保存到文件中非常重要
  • 当有人说"记住这个"(或者类似的话) → 更新 memory/YYYY-MM-DD.md 或相关文件
  • 当你学到教训 → 更新 AGENTS.md、MEMORY.md 或相关技能文档
  • 当你犯了错 → 记下来,让未来的你避免重蹈覆辙
  • 写下来 远比 用脑子记住 更好

🎯 主动记录 - 别总是等人叫你记!

对话中发现有价值的信息时,先记下来,再回答问题:

  • 用户提到的个人信息(名字、偏好、习惯、工作方式)→ 更新 PROFILE.md 的「用户资料」section
  • 对话中做出的重要决策或结论 → 记录到 memory/YYYY-MM-DD.md
  • 发现的项目上下文、技术细节、工作流程 → 写入相关文件
  • 用户表达的喜好或不满 → 更新 PROFILE.md 的「用户资料」section
  • 工具相关的本地配置(SSH、摄像头等)→ 更新 MEMORY.md 的「工具设置」section
  • 任何你觉得未来会话可能用到的信息 → 立刻记下来

关键原则: 不要总是等用户说"记住这个"。如果信息对未来有价值,主动记录。先记录,再回答 — 这样即使会话中断,信息也不会丢失。

🔍 检索工具

回答关于过往工作、决策、日期、人员、偏好或待办的问题前:

  1. 对 MEMORY.md 和 memory/*.md 运行 memory_search
  2. 如需阅读每日笔记 memory/YYYY-MM-DD.md,直接用 read_file

04 同仓库更多 Skills

zhangmask
zhangmask/C_AnimeCompanion

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 / @mem0/vercel-ai-provider / createMem0 (use mem0-vercel-ai-sdk).

★ 2
zhangmask
zhangmask/C_AnimeCompanion

mem0-vercel-ai-sdk

Mem0 provider for Vercel AI SDK (@mem0/vercel-ai-provider). TRIGGER when: user mentions "vercel ai sdk", "@mem0/vercel-ai-provider", "createMem0", "retrieveMemories", "addMemories", "getMemories", "searchMemories", "mem0 vercel", "AI SDK provider", "AI SDK memory", or is using generateText/streamText with mem0. Also triggers for Next.js apps needing memory-augmented AI. DO NOT TRIGGER when: user asks about direct Python/TS SDK calls without Vercel (use mem0 skill), or CLI terminal commands (use mem0-cli skill).

★ 2
zhangmask
zhangmask/C_AnimeCompanion

mem0-test-integration

Verify a Mem0 integration produced by /mem0-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 /mem0-integrate and says "verify", "test the integration", "run /mem0-test-integration", or when a .mem0-integration/ 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 /mem0-integrate run exists in the current branch (ask them to run /mem0-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.

★ 2
zhangmask
zhangmask/C_AnimeCompanion

mem0-oss-to-platform

Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local `Memory` class) to the mem0 Platform / hosted / managed SDK (the `MemoryClient` class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-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/hosted/managed 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/JavaScript (`import { Memory } from "mem0ai/oss"` → `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.

★ 2
zhangmask
zhangmask/C_AnimeCompanion

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/` artifacts consumed by the paired verification skill. TRIGGER when: user says "integrate mem0", "add mem0 to this repo", "wire mem0 into <repo>", 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).

★ 2
zhangmask
zhangmask/C_AnimeCompanion

mem0-cli

Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions "mem0 cli", "mem0 command line", "@mem0/cli", "mem0-cli", "pip install mem0-cli", "npm install -g @mem0/cli", or is running mem0 commands in a terminal/shell (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/zsh/terminal/shell usage. DO NOT TRIGGER when: user asks about programmatic SDK integration in Python/TS code (use mem0 skill), or Vercel AI SDK provider (use mem0-vercel-ai-sdk skill).

★ 2