extensions/role-persona/skills/memory-organize/SKILL.md
Periodic maintenance of role memory: dedup, tidy, consolidate, and pending management.
npx skillsauth add dwsy/agent memory-organizeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 |
testing
Best practices for writing and maintaining high-quality role memories.
documentation
工作文档枢纽,强制执行 SSOT(Single Source of Truth)原则,管理 `docs/` 目录下的架构决策、设计文档、Issues(任务规划)、PRs(变更记录)。支持 GitHub 协作开发模式。
tools
Allows to interact with web pages by performing actions such as clicking buttons, filling out forms, and navigating links. It works by remote controlling Google Chrome or Chromium browsers using the Chrome DevTools Protocol (CDP). When Claude needs to browse the web, it can use this skill to do so.
development
Vercel 设计指南 - 构建高质量 Web 应用的最佳实践,包含现代 UI/UX 原则、性能优化和无障碍标准。