원클릭으로
memory-organize
Periodic maintenance of role memory: dedup, tidy, consolidate, and pending management.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Periodic maintenance of role memory: dedup, tidy, consolidate, and pending management.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Web search, online search, real-time search, internet search, Google alternative, Bing alternative, DuckDuckGo alternative, search the web, lookup online, find information, research,查询,搜索,搜索结果,网页搜索,联网搜索,实时搜索,网络查询,资料查找,信息检索,最新资讯,新闻搜索, Tavily Search API for optimized, real-time web search results for RAG. A pre-configured, cost-effective search tool.
在 macOS 上使用 osascript 执行 AppleScript 或 JavaScript for Automation (JXA) 实现系统自动化。当用户需要控制 macOS 应用(Finder、Safari、Mail、Calendar、Keynote、Numbers、Pages 等)、操作系统 UI、显示对话框/通知、读写剪贴板、自动化重复任务、或任何涉及 osascript/AppleScript/JXA 的需求时,必须使用本技能。即使用户只说"帮我自动化这个"或"在 Mac 上操作 XXX",也应优先考虑本技能。
Model configuration editor for ~/.pi/agent/models.json - 使用 Bun 脚本管理模型配置
读取和写入输出风格目录的工具技能。当用户需要:(1)读取输出风格文件,(2)写入/创建输出风格文件,(3)管理输出风格目录,(4)解析风格文件格式时使用。
Best practices for writing and maintaining high-quality role memories.
Load prior knowledge from role memory before starting any task.
| name | memory-organize |
| description | Periodic maintenance of role memory: dedup, tidy, consolidate, and pending management. |
| whenToUse | When the user asks to organize, tidy, or maintain their memory. Also for scheduled maintenance to clean up stale entries and manage the pending verification layer. |
You are maintaining a role's persistent memory system. Keep it healthy, accurate, and useful.
consolidated.md ← L2: deduplicated learnings + preferences (main)
pending.md ← Pending: auto-extracted, awaiting verification
daily/*.md ← L1: raw session logs
| Tool | Purpose |
|---|---|
memory({ action: "list" }) | List all memories, detect structural issues |
memory({ action: "consolidate" }) | Rule-based dedup: exact + Jaccard similarity. Safe, never deletes unique entries. |
memory({ action: "repair" }) | Fix markdown structure issues |
memory({ action: "llm_tidy" }) | LLM-guided: rewrites verbose, detects contradictions, suggests deletions |
memory({ action: "search", query: "..." }) | Search with auto-reinforce (≥0.5 → used+1) |
memory({ action: "reinforce", content: "..." }) | Increment [Nx] usage count |
memory({ action: "delete_learning", content: "..." }) | Remove stale entry |
memory({ action: "update_learning", id/query, content }) | Rewrite entry |
role_read / role_write | Direct file access |
memory({ action: "list" })
Look for:
memory({ action: "repair" })
Fixes: malformed headings, missing sections, stray lines. Safe, rule-based.
memory({ action: "consolidate" })
Rule-based, NOT LLM:
[Nx]consolidated.md# Last Consolidated dateconsolidate does not magically upgrade [0x] to Normal. Priority still depends on usage (reinforce / auto-reinforce during search).
memory({ action: "llm_tidy" })
LLM produces a plan:
Check memory/pending.md:
role_read({ path: "memory/pending.md" })
[○] pending → if relevant to current work, search to auto-promote (score ≥0.5)[✓] already promoted[✗] discarded (7-day auto-expiry)Pending entries that survive 7+ days without use are auto-expired. Manual promotion via search.
For insights used in this session:
memory({ action: "reinforce", content: "<text>" })
Moves memories toward High Priority [3x]+.
For provably outdated entries:
memory({ action: "delete_learning", content: "<text>" })
Rules:
update_learning over delete when in doubtAfter organizing:
Memory Organize Report — <role>
- Before: X learnings, Y preferences
- After: X' learnings, Y' preferences
- Repaired: yes/no
- Consolidate: removed N duplicates
- LLM tidy: rewrote N, deleted N, added N
- Pending: M promoted, K expired
| Frequency | Actions |
|---|---|
| Per session | auto-extract → pending (automatic) |
| On request | consolidate (safe dedup) |
| Weekly | repair + consolidate + reinforce |
| Monthly / heavy | llm_tidy + manual review + pending cleanup |