Agent skill · yangsonhung

tree-ring-memory

Use when an AI agent needs local-first project memory recall, evidence-linked lessons, privacy-safe capture, audit, redaction, or intentional forgetting.

What it needs

About 3k tokens when loaded.

What this skill does

Tree Ring Memory Overview Use this skill to operate Tree Ring Memory as a lifecycle-aware memory layer for AI agent work. Tree Ring Memory is for durable decisions, lessons, warnings, project conventions, user preferences, and future seeds. It is not a transcript dump or a background scraper. The core idea is that agent memory should age deliberately: fresh work can stay detailed while it is still active older lessons should compress into stable summaries important failures and warnings should remain visible durable preferences and project truths should become high-confidence memory speculative follow-ups should stay separate from confirmed facts sensitive data should be blocked, redacted, or forgotten When to Use Use this skill when: The user asks the agent to remember, recall, consolidate, redact, or forget. A task depends on previous project decisions, preferences, or warnings. The agent is starting or resuming work in a repository with Tree Ring Memory or a project-local .tree-ring directory. A test, incident, PR, benchmark, or review produces a lesson that should help future work. A source document such as AGENTS.md, DOX, or Revolve contains durable guidance that should be summarized into memory. The agent needs to audit stored memory before a risky change. Do not use Do not use this skill as the primary guide for: Short-lived scratch notes that should disappear after the task. Raw chain of thought or hidden reasoning. Secrets, credentials, tokens, private keys, payment details, or other sensitive values. Saving entire conversations instead of concise lessons or decisions. Treating unverified claims as durable project truth. Replacing source documents, tests, issues, PRs, or release records. Instructions Follow the workflow below whenever Tree Ring Memory could improve continuity. For small tasks, recall narrowly and only write memory when the lesson is clearly durable. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills yangsonhung/tree-ring-memory

View the source on GitHub

Browse the @skills marketplace