extensions/role-persona/skills/memory-retro/SKILL.md
Save insights from completed tasks to role memory.
npx skillsauth add dwsy/agent memory-retroInstall 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 have access to a role-based persistent memory system. After completing this task, reflect on what you learned and save valuable insights.
| Tool | Purpose |
|------|---------|
| memory({ action: "add_learning", content: "..." }) | Save a durable insight. LLM auto-extracts tags. Auto-deduplicates. |
| memory({ action: "add_preference", content: "...", category: "..." }) | Save a user preference. Goes directly to consolidated. |
| memory({ action: "search", query: "..." }) | Check if similar memory already exists |
| memory({ action: "reinforce", content: "..." }) | Increment [Nx] usage count for existing learning |
add_learning auto-deduplicates. Just call it — if similar text exists, it returns "Already stored". Then use reinforce instead.
memory({ action: "add_learning", content: "MyBatis-Plus getOne needs .last('LIMIT 1') to avoid TooManyResultsException" })
LLM auto-extracts tags (e.g., mybatis, gotcha). No manual tagging.
memory({ action: "add_preference", content: "用户偏好中文沟通,技术术语可保留英文", category: "Communication" })
memory({ action: "reinforce", content: "安全删除原则" })
→ "Reinforced [abc123] -> 6x"
Two paths to memory:
Auto-extract (agent_end, compaction)
→ pending.md [○] → search score ≥0.5 → auto-promote → consolidated [0x]
Manual (this tool)
→ consolidated [0x] directly
The pending layer filters noise. Only memories proven useful by actual usage survive. Manual entries skip pending because you're explicitly deciding they're worth keeping.
| Action | Effect | When |
|--------|--------|------|
| reinforce | used+1 in consolidated | You used an existing memory |
| Search score ≥0.5 | auto-reinforce (used+1) | Found via search |
| Pending auto-promote | pending → consolidated | Pending entry is relevant |
| consolidate | dedup + canonical rewrite | Routine maintenance |
| Category | When |
|----------|------|
| Communication | Language, style, tone |
| Code | Style, conventions, abstraction |
| Tools | CLI, editors, workflows |
| Workflow | Process, review, deployment |
| General | Everything else |
✅ Good:
memory({ action: "add_learning", content: "MyBatis-Plus getOne needs .last('LIMIT 1')" })
✅ Good (reinforce):
memory({ action: "reinforce", content: "安全删除原则" })
❌ Bad: "The user asked me to fix a bug" — too generic
❌ Bad: "Error at /src/index.ts:42" — copy-paste, no insight
add_learning auto-deduplicates — if similar exists, use reinforce instead.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 原则、性能优化和无障碍标准。