tree-ring-memory
Skill này làm gì
Công cụ này giúp AI ghi nhớ và sắp xếp thông tin quan trọng của dự án. Nó cho phép AI lưu các bài học, quyết định và cảnh báo một cách có tổ chức, mà không cần giữ lại toàn bộ cuộc trò chuyện.
Khi nào nên dùng
- ✓Trước khi tiếp tục một dự án để nhớ lại các quyết định trước đây.
- ✓Trước khi thực hiện thay đổi lớn cho cách dự án vận hành.
- ✓Khi bạn yêu cầu AI nhớ, xem lại hoặc xóa thông tin.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/tree-ring-memory/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“AI, nhắc tôi về các quyết định quan trọng liên quan đến kiến trúc của dự án này.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
AI kiểm tra các hướng dẫn cục bộ hiện có để tổ chức bộ nhớ. Nếu không tìm thấy, nó có thể cài một công cụ để lưu trữ và truy xuất thông tin theo cấu trúc, như bài học hoặc cảnh báo.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Tree Ring Memory
Overview
Tree Ring Memory is a framework-agnostic, local-first memory lifecycle layer for AI agents. Use this skill when an agent should recall, preserve, audit, or forget durable project memory without treating raw conversation transcripts as memory.
The public runtime is a Rust CLI/TUI with local SQLite/FTS storage, scoped recall, evidence records, audit, deterministic consolidation, maintenance, DOX/Revolve source adapters, framework discovery, redaction, and explicit forgetting.
When to Use This Skill
- Use before resuming a project where prior decisions, warnings, preferences, or failed approaches may matter.
- Use before changing architecture, storage, security, privacy, release, or agent-memory behavior.
- Use when the user asks to remember, recall, audit, redact, forget, or consolidate agent memory.
- Use after tests, reviews, incidents, or production behavior validate a lesson future agents should preserve.
- Use when a project contains
.tree-ring/SKILL.md,.tree-ring/CLI.md, or other Tree Ring bridge files.
How It Works
Step 1: Discover Local Guidance
Check whether the current project already has Tree Ring guidance:
test -f .tree-ring/SKILL.md && sed -n '1,220p' .tree-ring/SKILL.md
test -f .tree-ring/CLI.md && sed -n '1,220p' .tree-ring/CLI.md
Treat project-local .tree-ring files as more authoritative than generic
examples in this skill. If the CLI is installed, inspect the current command
surface before assuming flags:
tree-ring --help
tree-ring recall --help
tree-ring remember --help
tree-ring evidence --help
tree-ring audit --help
tree-ring forget --help
If Tree Ring is not installed, resolve the actual project root and explain the
exact project-local download before obtaining explicit approval to fetch it.
Download the official, version-pinned v0.15.0/install.sh to a temporary file,
verify its SHA-256 is
ef0d5eb8f09cbe2e4c3abe80ee9a98a56759c89ad4ddd103d6c68314cd653ade,
inspect it, then run it. The pinned source is
https://raw.githubusercontent.com/TerminallyLazy/Tree-Ring-Memory/v0.15.0/install.sh.
cd <project-root>
sh <verified-installer-path> --project --init --release v0.15.0 --no-animation
Do not pipe a network response directly to a shell. After verification and
inspection, show the exact installer command and obtain explicit approval again
before executing it. For an installed global CLI, initialize from the project root with
tree-ring --root .tree-ring init; for a project-local CLI, use
.tree-ring/bin/tree-ring --root .tree-ring init.
Check for a newer release without changing files using
tree-ring update --check. Run tree-ring update only with user authorization,
then rerun init in each project root to refresh managed guidance while
preserving custom content.
Step 2: Recall Before Risky Work
Use narrow, project-scoped recall first:
tree-ring recall "release behavior" --project example-service
tree-ring recall "sqlite migration" --project example-service
tree-ring recall "user preference"
Use recalled memory as context, not authority. Verify it against current source files, tests, docs, issues, pull requests, logs, and runtime state before making changes.
Step 3: Write Only Durable Memory
Write concise memory only when it is likely to help future agents:
tree-ring remember "Run project-scoped recall before release changes." --event-type lesson --scope project
Prefer specific event types when supported locally:
decisionlessonwarningcorrectionuser_preferencetool_resultsummaryhypothesis
Store the durable lesson, decision, warning, or follow-up. Do not store the full conversation.
Step 4: Record Evidence for Evaluated Outcomes
Use evidence records for test runs, incidents, reviewed changes, or other evaluated outcomes:
tree-ring evidence \
"Installer smoke test passed in an isolated HOME." \
--outcome observed \
--evidence-ref "ci/install-smoke/2026-07-08"
Outcome guidance:
promoted: durable truth backed by strong evidencerejected: failed or rolled-back approach worth keeping visibledeferred: unresolved idea or future optionobserved: normal evaluated result
Do not promote weak, stale, or unreviewed claims to durable truth.
Step 5: Use Source Adapters Carefully
When a repo has structured source records, run dry runs first:
…
Câu hỏi thường gặp
“Local-first” nghĩa là gì?
Nghĩa là thông tin chủ yếu được lưu trên máy tính của bạn, không phải trên máy chủ từ xa.
Tôi có thể xóa thông tin mà AI đã lưu không?
Có, công cụ cho phép bạn xóa hoặc “quên” những thông tin cụ thể khi chúng không còn hữu ích hoặc không chính xác.
AI có lưu toàn bộ cuộc trò chuyện của tôi không?
Không, mục tiêu là chỉ lưu thông tin dự án quan trọng và hữu ích, như bài học rút ra hoặc quyết định đã đưa ra, không lưu toàn bộ cuộc trò chuyện.
Chi tiết
Mô tả gốc của tác giả
Use Tree Ring Memory for local-first AI-agent memory lifecycle work: recall, evidence, audit, forgetting, and consolidation without transcript dumping.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6018
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.