Memory Organizer Skill
Organize memory with a strict two-layer model.
Core Rule
Treat MEMORY.md as a small permanent index.
Do not copy every dated memory file into MEMORY.md.
Do not turn daily logs into permanent memory.
Keep historical details inside memory/YYYY-MM-DD.md files unless a fact is clearly long-lived and should be loaded in every new session.
Memory Model
1. Permanent memory: MEMORY.md
Keep only information that is worth reading every session:
- - Stable user preferences
- Durable identity or relationship facts
- Long-lived project configuration
- Important workspace rules
- Cross-session todos that are still active
- Reusable operational facts that will matter again
This file should stay short, clean, deduplicated, and easy to scan.
2. Daily memory: memory/YYYY-MM-DD.md
Keep session-specific and historical detail here:
- - Daily work logs
- Intermediate reasoning summaries
- One-off experiments
- Temporary debugging notes
- Daily outcomes and progress notes
- Detailed records that are useful later, but not required every session
When compressing or organizing memory, preserve these files instead of moving everything into permanent memory.
Decision Rule: Promote or Keep Local
Before writing anything into MEMORY.md, ask:
- 1. Will this likely matter across many future sessions?
- Does it need to be loaded immediately at session start?
- Is it stable enough that it will not create clutter soon?
Only promote the item when the answer is clearly yes.
If the item is useful mainly as history, context, or audit trail, keep it in the dated file.
What to Promote
Promote only concise bullets such as:
- - User prefers short paragraphs and punchy style
- Workspace path or permission boundary that must always be respected
- Current active project rule that affects future execution
- Ongoing todo that spans multiple days
What Not to Promote
Do not promote these by default:
- - Full daily summaries
- Per-day changelogs
- Detailed task execution logs
- Debugging transcripts
- Temporary ideas
- Repeated notes already represented in INLINECODE6
- Every published result or status check
Compression Workflow
When the user asks to compress or organize memory:
- 1. Scan
MEMORY.md and dated memory files separately. - Clean and deduplicate
MEMORY.md first. - Compress dated files in place.
- Preserve useful historical notes inside their original
memory/YYYY-MM-DD.md files. - Promote only a very small set of durable facts into
MEMORY.md. - If unsure whether something is permanent, leave it in the dated file.
Merge Workflow
If using a merge or promotion action:
- - Merge selectively, not wholesale.
- Extract only durable bullets.
- Skip daily summaries, logs, and verbose headings.
- Avoid adding duplicate sections for each date.
- Prefer updating an existing permanent section over appending a new date-based block.
Quality Bar
INLINECODE11 should remain:
- - Short enough for routine startup loading
- Structured by durable topic, not by date
- Free from noisy history
- Focused on must-know information
If a choice would make MEMORY.md longer but not more reusable, keep that content in the dated memory file instead.
Safety
- - Validate paths before file operations.
- Operate only inside the workspace memory files.
- Prefer backup before destructive compression.
- When deleting or discarding memory, preserve recoverable backups when possible.
记忆整理技能
使用严格的双层模型整理记忆。
核心规则
将 MEMORY.md 视为小型永久索引。
不要将每个带日期的记忆文件都复制到 MEMORY.md 中。
不要将每日日志变成永久记忆。
将历史细节保留在 memory/YYYY-MM-DD.md 文件中,除非某个事实明显具有长期性且应在每个新会话中加载。
记忆模型
1. 永久记忆:MEMORY.md
仅保留值得在每个会话中阅读的信息:
- - 稳定的用户偏好
- 持久的身份或关系事实
- 长期存在的项目配置
- 重要的工作区规则
- 仍处于活动状态的跨会话待办事项
- 会再次用到的可复用操作事实
该文件应保持简短、清晰、去重且易于浏览。
2. 每日记忆:memory/YYYY-MM-DD.md
在此处保留会话特定和历史细节:
- - 每日工作日志
- 中间推理摘要
- 一次性实验
- 临时调试笔记
- 每日成果和进度记录
- 日后有用但非每个会话必需的详细记录
在压缩或整理记忆时,保留这些文件,而不是将所有内容移入永久记忆。
决策规则:提升或保留本地
在将任何内容写入 MEMORY.md 之前,请问:
- 1. 这在未来的多个会话中是否可能重要?
- 是否需要在会话开始时立即加载?
- 是否足够稳定,不会很快造成混乱?
仅在答案明确为是时才提升该项目。
如果该项目主要作为历史记录、上下文或审计追踪有用,则将其保留在带日期的文件中。
应提升的内容
仅提升简洁的要点,例如:
- - 用户偏好短段落和简洁风格
- 必须始终遵守的工作区路径或权限边界
- 影响未来执行的当前活动项目规则
- 跨越多天的持续待办事项
不应提升的内容
默认不提升以下内容:
- - 完整的每日摘要
- 每日变更日志
- 详细的任务执行日志
- 调试记录
- 临时想法
- 已在 MEMORY.md 中体现的重复笔记
- 每个已发布的结果或状态检查
压缩工作流程
当用户要求压缩或整理记忆时:
- 1. 分别扫描 MEMORY.md 和带日期的记忆文件。
- 首先清理和去重 MEMORY.md。
- 就地压缩带日期的文件。
- 将有用的历史记录保留在其原始的 memory/YYYY-MM-DD.md 文件中。
- 仅将极少量的持久事实提升到 MEMORY.md 中。
- 如果不确定某内容是否为永久性,将其保留在带日期的文件中。
合并工作流程
如果使用合并或提升操作:
- - 选择性合并,而非整体合并。
- 仅提取持久的要点。
- 跳过每日摘要、日志和冗长的标题。
- 避免为每个日期添加重复的部分。
- 优先更新现有的永久部分,而非追加新的基于日期的块。
质量标准
MEMORY.md 应保持:
- - 足够简短,适合常规启动加载
- 按持久主题而非日期组织
- 无嘈杂的历史记录
- 聚焦于必须知道的信息
如果某个选择会使 MEMORY.md 变长但不会提高可复用性,则将该内容保留在带日期的记忆文件中。
安全
- - 在执行文件操作前验证路径。
- 仅在工作区记忆文件内操作。
- 在进行破坏性压缩前优先备份。
- 在删除或丢弃记忆时,尽可能保留可恢复的备份。