本文へスキップ
Skillpedia
エージェント48k · #6018

tree-ring-memory

できること

このツールは、AIが重要なプロジェクト情報を覚えて整理するのに役立ちます。会話全体を保存しなくても、教訓、決定事項、注意点を整理された形でAIに保存させられます。

使う場面

  • ✓過去の決定事項を思い出すために、プロジェクトを再開する前。
  • ✓プロジェクトの仕組みを大きく変える前。
  • ✓AIに情報を覚えること、見直すこと、削除することを頼むとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/tree-ring-memory/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/tree-ring-memory/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“AI、このプロジェクトのアーキテクチャに関する重要な決定事項を思い出させてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIはまず、メモリを整理するための既存のローカル指示があるか確認します。見つからない場合は、教訓や注意点などの情報を構造的に保存・取得するためのツールをインストールすることがあります。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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:

  • decision
  • lesson
  • warning
  • correction
  • user_preference
  • tool_result
  • summary
  • hypothesis

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 evidence
  • rejected: failed or rolled-back approach worth keeping visible
  • deferred: unresolved idea or future option
  • observed: 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:


…
よくある質問

「local-first」とはどういう意味ですか?

情報を主にご自身のパソコンに保存することを意味します。リモートのサーバーに保存するわけではありません。

AIが保存した情報は削除できますか?

はい、このツールでは、役に立たなくなった情報や誤った情報を、削除したり忘れさせたりできます。

AIは会話をすべて保存しますか?

いいえ。目的は、会話全体ではなく、学んだ教訓や決定事項など、重要で役立つプロジェクト情報だけを保存することです。

詳細

作者による元の説明

Use Tree Ring Memory for local-first AI-agent memory lifecycle work: recall, evidence, audit, forgetting, and consolidation without transcript dumping.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#6018
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル