一键导入
memory
Persist and recall context across sessions — critical for continuity
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Persist and recall context across sessions — critical for continuity
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review pull requests for code quality, security, and correctness
Review pull requests for code quality, security, and correctness
End-to-end shipping workflow — tests, PR creation, review request. Unified pr-create + pr-complete.
Periodic cross-agent learning consolidation — review what worked, what didn't, propagate insights
Break down complex problems through structured analytical frameworks
Session lifecycle — checkpoint, restore, handoff, sleep/wake
| name | memory |
| version | 1.0.0 |
| standalone | true |
| description | Persist and recall context across sessions — critical for continuity |
| uses | [] |
| requires | {"tools":[],"env":[]} |
| security | {"risk_level":"write","capabilities":["memory:read","memory:write"],"requires_approval":false} |
Persist and recall context across sessions. Memory is how agents maintain continuity — without it, every session starts from zero.
This is a builtin skill (handler: type: builtin). When memory_store or memory_retrieve is invoked, the executor reads from or writes to the agent's memory directory (.os/agents/{name}/memory/ for L1, .os/memory/shared/ for L2). The tool schema in tool.yaml defines the external contract; the executor handles file I/O directly.
At the start of every session, load memory in this order:
memory/INDEX.md — tells you what exists and what to loadmemory/DURABLE.md — long-term decisions and preferencesmemory/daily/YYYY-MM-DD.md)Save memories before you lose them. Don't wait until session end.
Always save (to daily log):
Save to DURABLE.md:
| Type | Use For | Example |
|---|---|---|
| Episodic | Events, what happened | "PR #23 was rejected due to SQL injection" |
| Semantic | Facts, knowledge | "This project uses pytest with fixtures" |
| Procedural | How-to, processes | "To deploy: run make build then make deploy" |
| Level | Location | Visibility | Use For |
|---|---|---|---|
| L1 | .os/agents/{name}/memory/ | Agent-private | Working notes, task context |
| L2 | .os/memory/shared/ | All agents | Project conventions, shared decisions |
Before session ends, update the daily log with:
## Memory Operation
### Store
- Type: [episodic/semantic/procedural]
- Level: [L1/L2]
- Tags: [tag list]
- Content: [summary of what was stored]
### Retrieve
- Query: [search query]
- Results: [N matches found]
- Most relevant: [summary of top result]
A memory operation is complete when: