memory
长期记忆 — 更新常驻 Core,并搜索或管理后台整理的 Memory Items
by shikidmsh-rgb★ 114 GitHub stars
Install memory in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Tools
update_core (resident)
修订每轮都能看到的长期关系认知。Core 是一份简短的自由文本,不是日记;提交整理后的完整文档即可。Core 不能改变作息、时区或 Free Time 上限;这些运行设置使用 manage_settings。
| Parameter | Type | Required | Description |
|---|---|---|---|
| content | string | yes | 修订后的完整 Core 文本 |
recall_memory (on_demand)
搜索已保存的用户记忆。
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | no | 搜索关键词 |
list_memories (on_demand, adaptive)
列出已保存的记忆。
| Parameter | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | 最大返回条数(默认 30) |
delete_memory (on_demand)
按 ID 删除一条记忆(移入回收站,30 天内可恢复)。
| Parameter | Type | Required | Description |
|---|---|---|---|
| memory_id | integer | yes | 要删除的记忆 ID |
memory_stats (on_demand, adaptive)
显示记忆系统统计(总数、重要记忆和回收站大小)。
无需参数。
view_core_memory (on_demand, adaptive)
显示完整的核心记忆内容。
无需参数。
memory_trash_bin (on_demand)
查看或恢复回收站中已删除的记忆。
| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string (enum: list, restore) | no | list(默认)或 restore |
| trash_id | integer | no | restore 时必填——要恢复的回收站条目 ID |
Usage Rules
- update_core 每轮都可用:Main 只维护每轮常驻的稳定 Core
- 具体 Memory Items 由后台 Lite 按聊天批次整理;Main 不直接创建条目
- Core 是持续修订的文档,不是事件流水账;新事实优先合并到已有表达,不得重复整段用户画像或创建同名 H1 区块
- 写入时提交整理后的完整文档;保持重要认识,删掉过时或重复表达
- 若系统提示 Core 已变化,重新读取后再提交当前版本
- 超出预算会拒绝,不会截断
- 管理类操作(recall / list / delete / stats / view_core / trash)按需通过
request_tools(skills=["memory"])申请
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- __init__.py
- handler.py
FAQ
What does the memory skill do?
长期记忆 — 更新常驻 Core,并搜索或管理后台整理的 Memory Items
How do I install the memory skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the memory skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…