--- name: memory-management description: 持久化记忆管理。存储用户信息、项目上下文、偏好和反馈,实现跨会话记忆。 tools: - memory --- # Memory Management ## Overview 持久化记忆管理。存储用户信息、项目上下文、偏好和反馈,实现跨会话记忆。 ## When to Use - Use when the task requires Memory Management guidance. ## Required Tools - `memory` ## Workflow - Identify whether the user's request matches the skill's trigger conditions. - Read the relevant source guidance below and apply only the steps that fit the current task. - Use the required tools deliberately and keep tool output tied to the user's goal. ### Source Guidance ### Memory Management — 记忆管理 持久化记忆系统,保存用户角色、项目上下文、偏好反馈等跨会话信息。 #### 工具说明 ##### memory 管理记忆条目(增删改查)。 - `action` (str): `add` | `replace` | `remove` - `target` (str): `user` 或 `memory` - `content` (str | None): `add` 和 `replace` 时的新内容 - `old_text` (str | None): `replace` 和 `remove` 时定位旧条目的唯一短文本 - 记忆目标: - `user`: 用户角色、职责、知识背景、稳定偏好 - `memory`: 项目约定、环境事实、稳定工具经验 - 支持自动保存和检索 - 跨会话持久化 #### 使用原则 1. 了解用户角色偏好后及时保存到 `user` 类型 2. 用户明确要求记住的内容立即保存 3. 过时的记忆及时更新或删除 4. 不保存可以从代码/git 推导出的信息 5. 记忆是辅助参考,当前上下文和文件状态优先级更高 ## Validation - Verify the requested outcome with the most direct available check. - Report any skipped step, unavailable dependency, or remaining uncertainty explicitly. ## Boundaries - Do not broaden the task beyond the user's request. - Do not use tools that are not listed or clearly available in the current runtime. ## Anti-Patterns - Do not summarize the skill instead of applying it. - Do not claim completion without validation evidence.