Stats
Actions
Tags
How this skill is triggered — by the user, by Claude, or both
Slash command
/myagent:memoryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
管理 Agent 的长短期记忆:如何存储、何时压缩、如何召回、如何恢复会话。
管理 Agent 的长短期记忆:如何存储、何时压缩、如何召回、如何恢复会话。
snippets/memory/auto-compact.ts — 自动压缩触发 + 断路器 + 两阶段恢复snippets/memory/memory-types.ts — 四种记忆类型 + 存储格式 + 漂移防护snippets/memory/session-persistence.ts — JSONL 持久化 + boundary 优化加载| 错误 | 后果 | 正确做法 |
|---|---|---|
| 无断路器 | 压缩无限重试 | MAX_FAILURES = 3 |
| 记忆存代码结构 | 过时后误导 | 只存不能推导的信息 |
| 全量加载大会话 | 恢复慢 | boundary 只加载后半 |
| 召回无漂移检查 | 推荐已删除文件 | 使用前验证 |
npx claudepluginhub dongliutony/myagent-skill --plugin myagentCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.