AI & agents · Building & coding
tree-ring-memory-cn
/tree-ring-memory-cn
当 AI Agent 需要本地优先的项目记忆召回、证据化经验、隐私安全记录、审计、脱敏或主动遗忘时使用。
- Author
- YangsonHung ↗
- Repository
- awesome-agent-skills ↗
- Licence
- MIT
- Last repository change
- 08.08.2026
Assessment and security
96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 08.08.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
当 AI Agent 需要本地优先的项目记忆召回、证据化经验、隐私安全记录、审计、脱敏或主动遗忘时使用。
Original author description
当 AI Agent 需要本地优先的项目记忆召回、证据化经验、隐私安全记录、审计、脱敏或主动遗忘时使用。
How it works
- Overview
- 何时使用
- 不要使用
- 使用说明
- 工作流程
- 命令参考
- 年轮模型
- 隐私守门规则
- 收尾清单
Original SKILL.md headings · 118 lines, 213 words
SKILL.md preview
--- name: tree-ring-memory-cn description: 当 AI Agent 需要本地优先的项目记忆召回、证据化经验、隐私安全记录、审计、脱敏或主动遗忘时使用。 --- # Tree Ring Memory ## Overview 使用本技能把 Tree Ring Memory 当作具备生命周期意识的 AI Agent 记忆层来操作。它适合保存长期有用的决策、经验、警告、项目约定、用户偏好和未来种子,而不是保存完整聊天记录,也不是后台自动抓取器。 核心思想是让 Agent 记忆有意地老化: - 仍在进行的工作可以保留较多细节 - 较旧经验应压缩成稳定摘要 - 重要失败和警告应保持可见 - 持久偏好和项目事实应成为高置信记忆 - 尚未确认的后续想法应与事实分开 - 敏感信息应默认阻止、脱敏或遗忘 ## 何时使用 在以下场景使用本技能: - 用户要求记住、召回、合并、脱敏或遗忘。 - 当前任务依赖过去的项目决策、偏好或警告。 - Agent 正在开始或恢复一个带有 Tree Ring Memory 或项目本地 `.tree-ring` 目录的仓库。 - 测试、事故、PR、基准、评审或运行记录产生了对未来有用的经验。 - `AGENTS.md`、DOX 或 Revolve 等来源文档包含应汇总进记忆的长期指导。 - Agent 需要在高风险改动前审计已保存的记忆。 ## 不要使用 以下场景不要把本技能作为主要指南: - 任务结束后就应消失的短期草稿。 - 原始思维链或隐藏推理。 - 密钥、凭据、令牌、私钥、支付信息或其他敏感值。 - 保存完整对话,而不是简洁经验或决策。 - 把未经验证的说法当作持久项目事实。 - 替代来源文档、测试、Issue、PR 或发布记录。 ## 使用说明 当 Tree Ring Memory 能改善连续性时,按下面的流程执行。简单任务中只做窄范围召回,并且只有经验明显具备长期价值时才写入记忆。高风险任务中应加入来源检查、证据化记录和收尾复盘。 ## 工作流程 1. 当历史上下文可能影响任务时,先召回再行动。 2. 优先使用窄范围、项目级查询,避免泛泛的全局召回。 3. 如果存在来源文档,必须直接读取;记忆不能替代 `AGENTS.md`、项目文档、测试、Issue、PR 或发布记录。 4. 只保存未来确实有帮助的简洁经验、决策、警告和偏好。 5. 如果经验来自经过审查的运行、评估、检查点、事故、分支、PR、Issue 或测试产物,优先使用证据化记录。 6. 对过时或敏感记忆执行脱敏、替换或删除,不要保留已知错误的上下文。 ## 命令参考 先查看本地帮助,确保命令与当前安装版本一致: ```bash tree-ring --help tree-ring evidence --help tree-ring dox sync --help tree-ring revolve sync --help ``` 如果项目有本地 Tree Ring 配置,先读取 `.tree-ring/SKILL.md` 和 `.tree-ring/CLI.md`,不要直接假设全局配置适用于当前仓库。需要显式指定项目存储时,使用本地 root: ```bash tree-ring --root .tree-ring recall --query "release decisions" tree-ring --root .tree-ring evidence --help ``` 写入来源适配器摘要前先使用 dry-run: ```bash tree-ring dox sync --source-root . --dry-run tree-ring revolve sync --source-root revolve --dry-run tree-ring integrations scan --source-root . ``` 只有当摘要简洁、有用、带来源且隐私安全时,才执行实际写入。 ## 年轮模型 用年轮模型判断保留强度: - `cambium`:当前活跃任务上下文 - `outer`:近期决策和经验 - `inner`:较旧的压缩项目知识 - `heartwood`:高置信、长期稳定的事实和偏好 - `scar`:重要失败、回归、被否定方案和警告 - `seed`:未解决想法、假设和后续事项 不要把证据薄弱的内容提升到 `heartwood`。在用户确认或证据足够强之前,优先使用 `outer` 或 `seed`。 ## 隐私守门规则 永远不要保存: - 密钥、凭据、令牌、私钥或支付信息 - 原始思维链 - 临时草稿 - 未验证却被当作持久事实的说法 - 未经用户明确指示的敏感健康、财务、法律或个人标识信息 - 超出短摘录范围的受版权保护文本 如果有用记忆包含敏感材料,只保留足够避免重复错误的脱敏操作摘要。 ## 收尾清单 结束有意义的工作前,检查: - 我们做出了什么决策? - 我们学到了什么? - 未来 Agent 应避免重复什么? - 用户是否表达了长期偏好? - 是否有值得未来 revisiting 的种子? - 是否有记忆错误、过时、私密,或更适合不保存? 只记录持久、有用、有来源且安全的答案。
Versions
The database has no other skills named tree-ring-memory-cn.
Database snapshot: 13.11.2026 · package version 5e289f5d5e93 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100tree-ring-memory
Use when an AI agent needs local-first project memory recall, evidence-linked lessons, privacy-safe capture, audit, redaction, or intentional forgetting. - 90sync
Write the ring state currently held by this conversation to its file: creates the file on first call (promoting an unpromoted inline ring), checkpoints it on every later call. Use when: sync a ring, promote an inline ring, checkpoint a ring, save ring state, persist a ring, take… - 100recall
Search Origin's local memory by query. Targeted lookup, not orientation. Invoked as `/recall <query>`. Use when the user asks "do you remember", "what do you know about", "look up". - 90ring:using-dev-team
Selecting and dispatching the right Ring developer specialist agent (backend Go/TS, frontend, UI designer/engineer, Helm, frontend QA, prompt reviewer) for a technology task. Use when you need deep stack expertise and must decide which agent to invoke via the Task tool,… - 90ring:writing-skills
Writing or editing a Ring skill: SKILL.md structure, frontmatter and Agent-Search-Optimization rules, token-efficiency targets, and bulletproofing (Iron Law, rationalization tables, Red Flags) so discipline-enforcing skills resist excuses. Use when creating or revising a skill.… - 90agent-memory
当智能体涉及"memory"与"Context"的操作时触发skill;智能体底层记忆基础设施,完整实现Context Engineering五大核心能力:选择(噪声过滤+相关性筛选)、压缩(因果结构提取+工具结果压缩)、检索(结果重排序+多样性保证)、状态(任务进度追踪+目标对齐)、记忆(冲突检测+跨会话关联);认知模型层支持认知模型构建、因果链提取、知识缺口识别、检索时机决策、质量评估、状态一致性校验、状态推理、跨会话关联、遗忘机制;作为元技能强制常驻运行