memory-lifecycle by basicmachines-co/basic-memory-skills
npx skills add https://github.com/basicmachines-co/basic-memory-skills --skill memory-lifecycle管理实体在 Basic Memory 中如何通过状态阶段流转。核心原则:归档,永不删除。 已完成的工作是有价值的上下文——将其移出活动视图,但保留在知识图谱中。
删除笔记会将其从知识图谱中移除——其所有观察、关系和历史都会消失。归档则保留一切,同时表明该实体不再处于活动状态。
# 良好做法 — 实体保留在知识图谱中
move_note → active/ 到 archive/
# 不良做法 — 知识丢失
delete_note
唯一例外:因错误创建的笔记(打字错误、真正的重复项)可以删除。
使用文件夹按状态组织实体。确切的文件夹名称取决于您的领域,但请遵循一致的模式:
entities/
active/ # 当前相关,进行中
archive/ # 已完成,不再活动,但值得保留
pipeline/ # 未来项目,尚未开始
特别针对任务:
tasks/
active/ # 进行中的工作
completed/ # 已完成的工作
对于任何具有明确生命周期的实体类型:
[type]/
active/ # 当前
[end-state]/ # 对于此类型而言“完成”意味着什么
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
选择与您的领域匹配的文件夹名称。模式比具体的名称更重要。
当用户提及完成或状态变更时,提取其意图:
| 信号 | 状态 | 操作 |
|---|---|---|
| "finished", "done", "completed", "shipped" | 完成 | 移动到 archive/completed 文件夹 |
| "submitted", "sent", "delivered" | 完成 | 移动到 archive/completed 文件夹 |
| "missed", "passed", "skipped", "expired" | 错过 | 移动到 archive 或 missed 文件夹 |
| "cancelled", "abandoned", "killed" | 已取消 | 移动到 archive 文件夹 |
| "paused", "on hold", "deferred" | 已暂停 | 更新 frontmatter 状态,保持原位 |
| "restarting", "reopening", "reviving" | 重新激活 | 移回 active 文件夹 |
使用多种变体搜索 Basic Memory 以定位实体:
search_notes(query="quarterly report")
search_notes(query="Q1 report")
如果返回多个匹配项,请提供选项并询问是哪一个。
如果未找到匹配项,请要求澄清——不要猜测。
使用 move_note 将实体重新定位到适当的状态文件夹:
move_note(
identifier="tasks/active/quarterly-report",
destination_path="tasks/completed/quarterly-report.md"
)
永久链接保持不变,因此所有现有的 [[wiki-links]] 和 memory:// URL 将继续解析。
移动后,更新 frontmatter 中的状态以匹配:
edit_note(
identifier="quarterly-report",
operation="find_replace",
find_text="status: active",
content="status: completed"
)
如果有完成日期字段,请设置它:
edit_note(
identifier="quarterly-report",
operation="find_replace",
find_text="completed:",
content="completed: 2026-02-22"
)
简洁地报告已完成的操作:
Marked complete: Quarterly Report
Moved to: tasks/completed/quarterly-report.md
Status: completed
如果实体已在 archive/completed 文件夹中,请通知用户:
"Quarterly Report 已在 tasks/completed/ 中。需要我更新其中的任何内容吗?"
有时只有部分实体完成。不要移动它——而是更新实体内的观察或状态说明以反映部分进度。
如果某物被错误归档,请将其移回:
move_note(
identifier="tasks/completed/quarterly-report",
destination_path="tasks/active/quarterly-report.md"
)
edit_note(
identifier="quarterly-report",
operation="find_replace",
find_text="status: completed",
content="status: active"
)
某些状态变更不需要文件夹移动——“已暂停”或“已阻塞”的项目通常保留在 active/ 中,仅更新 frontmatter。文件夹移动应保留给最终或主要的状态转换。
move_note 后继续工作。每周安装量
28
代码仓库
GitHub 星标数
6
首次出现
2026年2月23日
安全审计
安装于
codex24
claude-code23
github-copilot22
kimi-cli22
gemini-cli22
cursor22
Manage how entities move through status stages in Basic Memory. The core principle: archive, never delete. Completed work is valuable context — move it out of the active view, but keep it in the knowledge graph.
Deleting a note removes it from the knowledge graph — all its observations, relations, and history disappear. Archiving preserves everything while signaling the entity is no longer active.
# Good — entity stays in the knowledge graph
move_note → active/ to archive/
# Bad — knowledge is lost
delete_note
The only exception: notes created by mistake (typos, true duplicates) can be deleted.
Organize entities by status using folders. The exact folder names depend on your domain, but follow a consistent pattern:
entities/
active/ # Currently relevant, in-progress
archive/ # Completed, no longer active, but worth keeping
pipeline/ # Future items, not yet started
For tasks specifically:
tasks/
active/ # Work in progress
completed/ # Finished work
For any entity type with a clear lifecycle:
[type]/
active/ # Current
[end-state]/ # Whatever "done" means for this type
Pick folder names that match your domain. The pattern matters more than the specific names.
When the user mentions completion or status change, extract the intent:
| Signal | Status | Action |
|---|---|---|
| "finished", "done", "completed", "shipped" | Complete | Move to archive/completed folder |
| "submitted", "sent", "delivered" | Complete | Move to archive/completed folder |
| "missed", "passed", "skipped", "expired" | Missed | Move to archive or missed folder |
| "cancelled", "abandoned", "killed" | Cancelled | Move to archive folder |
| "paused", "on hold", "deferred" | Paused | Update frontmatter status, keep in place |
| "restarting", "reopening", "reviving" | Reactivate | Move back to active folder |
Search Basic Memory with multiple variations to locate the entity:
search_notes(query="quarterly report")
search_notes(query="Q1 report")
If multiple matches come back, present options and ask which one.
If no match is found, ask for clarification — don't guess.
Use move_note to relocate the entity to the appropriate status folder:
move_note(
identifier="tasks/active/quarterly-report",
destination_path="tasks/completed/quarterly-report.md"
)
The permalink stays the same, so all existing [[wiki-links]] and memory:// URLs continue to resolve.
After moving, update the status in frontmatter to match:
edit_note(
identifier="quarterly-report",
operation="find_replace",
find_text="status: active",
content="status: completed"
)
If there's a completion date field, set it:
edit_note(
identifier="quarterly-report",
operation="find_replace",
find_text="completed:",
content="completed: 2026-02-22"
)
Report what was done concisely:
Marked complete: Quarterly Report
Moved to: tasks/completed/quarterly-report.md
Status: completed
If the entity is already in an archive/completed folder, notify the user:
"Quarterly Report is already in tasks/completed/. Want me to update anything on it?"
Sometimes only part of an entity is done. Don't move it — instead, update observations or status notes within the entity to reflect partial progress.
If something was archived by mistake, move it back:
move_note(
identifier="tasks/completed/quarterly-report",
destination_path="tasks/active/quarterly-report.md"
)
edit_note(
identifier="quarterly-report",
operation="find_replace",
find_text="status: completed",
content="status: active"
)
Some status changes don't require a folder move — "paused" or "blocked" items often stay in active/ with just a frontmatter update. Reserve folder moves for terminal or major state transitions.
move_note.Weekly Installs
28
Repository
GitHub Stars
6
First Seen
Feb 23, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex24
claude-code23
github-copilot22
kimi-cli22
gemini-cli22
cursor22
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
65,000 周安装