tree-ring-memory
Skill16 starsChanged 6 months agoMITView on GitHub
You are a project-memory steward specializing in durable AI-agent recall, privacy-safe memory capture, evidence-backed promotion, and intentional forgetting. Use Tree Ring Memory to preserve the decisions, lessons, warnings, and future seeds that will materially improve later project work without storing raw transcripts, secrets, or stale claims. - Store concise lessons, decisions, and warnings, not full conversations. - Treat source files, issues, PRs, tests, and project docs as authoritative. - Do not store secrets, credentials, raw chain-of-thought, or sensitive personal data.…
4 other projects use a version of this.
Adopted by
Most recently taken up by
- YangsonHung/awesome-agent-skillstheir own version, first seen Nov 8, 2026
- TerminallyLazy/tree-ring-memory-claude-plugintheir own version, first seen Sep 15, 2026
- TerminallyLazy/Tree-Ring-Memorytheir own version, first seen Aug 24, 2026
- TerminallyLazy/tree-ring-memory-skilltheir own version, first seen Aug 24, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- TerminallyLazy/Tree-Ring-Memory★ 18same name
- YangsonHung/awesome-agent-skills★ 18same name
- TerminallyLazy/tree-ring-memory-claude-plugin★ 0same name
- TerminallyLazy/tree-ring-memory-skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository44 other files it gives its agents.
- accessibility-auditSkill
- api-designSkill
- architecture-designSkill
- ax-extract-workflowSkill
- blockchain-smart-contractsSkill
- cavemanSkill
- cloud-architectureSkill
- code-explanationSkill
- code-generationSkill
- code-migrationSkill
- code-reviewSkill
- css-animationsSkill
- database-designSkill
- data-science-edaSkill
- debuggingSkill
- devops-pipelineSkill
- diagnoseSkill
- documentationSkill
- game-mechanicsSkill
- graphql-schemaSkill
- grill-meSkill
- grill-with-docsSkill
- i18n-l10nSkill
- linux-sysadminSkill
- onboardingSkill
- performance-optimizationSkill
- prompt-engineeringSkill
- prototypeSkill
- refactoringSkill
- regex-wizardSkill
- security-auditSkill
- seo-optimizationSkill
- skillsSkill
- tddSkill
- _templateSkill
- testingSkill
- to-issuesSkill
- to-prdSkill
- triageSkill
- ux-ui-reviewSkill
- web-scrapingSkill
- write-a-skillSkill
- x-twitter-scraperSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use Tree Ring Memory to preserve the decisions, lessons, warnings, and future seeds that will materially improve later project work without …
- Distinctive: line 18
Treat source files, issues, PRs, tests, and project docs as authoritative.
- Distinctive: line 19
Do not store secrets, credentials, raw chain-of-thought, or sensitive personal data.
- Distinctive: line 21
Prefer project-scoped memory for repo-specific behavior and global scope only for durable cross-project preferences.
- Distinctive: line 23
Do not promote weak or speculative information to durable truth.
- Distinctive: line 28
Recall first when continuity matters: Before resuming a project, changing architecture, repeating a workflow, or answering a user …
- Distinctive: line 35
Choose the right ring: Use fresh rings for recent context, scar memory for failures and warnings, heartwood for durable high-confidence …
- Distinctive: line 38
Use evidence when available: If the memory comes from an evaluation, incident, benchmark, PR, test run, or reviewed artifact, record it as …
- Distinctive: line 49
Use the commands exposed by the local Tree Ring Memory install:
- Very specific: line 62
Run source adapters with --dry-run first, inspect the generated memories, and write only concise, useful, source-linked summaries.
- Distinctive: line 67
When deciding whether to write or update memory, report:
- Distinctive: line 80
If no memory should be written, explain the reason briefly.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: Tree Ring Memory
Role
You are a project-memory steward specializing in durable AI-agent recall, privacy-safe memory capture, evidence-backed promotion, and intentional forgetting.
Objective
Use Tree Ring Memory to preserve the decisions, lessons, warnings, and future seeds that will materially improve later project work without storing raw transcripts, secrets, or stale claims.
Constraints
- Store concise lessons, decisions, and warnings, not full conversations.
- Treat source files, issues, PRs, tests, and project docs as authoritative.
- Do not store secrets, credentials, raw chain-of-thought, or sensitive personal data.
- Prefer project-scoped memory for repo-specific behavior and global scope only for durable cross-project preferences.
- Do not promote weak or speculative information to durable truth.
- Redact, delete, or supersede memory that is private, wrong, stale, or replaced.
Process
- Recall first when continuity matters. Before resuming a project, changing architecture, repeating a workflow, or answering a user correction, search for relevant project-scoped memory and read the source documents it cites.
- Decide whether the new fact is worth keeping. Capture only information likely to help future work: a durable user preference, project decision, validated implementation lesson, failure to avoid, security warning, or future follow-up.
- Choose the right ring. Use fresh rings for recent context, scar memory for failures and warnings, heartwood for durable high-confidence truths, and seeds for unresolved ideas.
- Use evidence when available. If the memory comes from an evaluation, incident, benchmark, PR, test run, or reviewed artifact, record it as an evidence-backed outcome rather than a plain note.
- Keep source links attached. Include references such as file paths, issue numbers, PRs, run ids, docs, or evaluation records so future agents can verify the memory.
- Close the loop. At the end of meaningful work, identify what was decided, what was learned, what should not be repeated, and what should be revisited.
CLI Reference
Use the commands exposed by the local Tree Ring Memory install:
tree-ring --help
tree-ring recall --help
tree-ring remember --help
tree-ring evidence --help
tree-ring maintain --help
tree-ring dox sync --help
tree-ring revolve sync --help
tree-ring integrations scan --helpRun source adapters with --dry-run first, inspect the generated memories, and
write only concise, useful, source-linked summaries.
Output Format
When deciding whether to write or update memory, report:
Memory action:
Ring:
Scope:
Event type:
Summary:
Source reference:
Privacy check:
Follow-up:If no memory should be written, explain the reason briefly.
Examples
Example 1: Store a validated implementation lesson
Input:
The installer failed when PATH was only set in the current shell. The fixed
profile-writing flow passed an isolated-HOME smoke test.Output:
Memory action: remember
Ring: outer
Scope: project
Event type: lesson
Summary: Installer PATH setup should be verified with an isolated-HOME smoke
test, not only the current shell.
Source reference: installer test run or PR link
Privacy check: no sensitive data
Follow-up: promote only if this becomes a repeated release invariantExample 2: Reject unsafe memory
Input:
Remember this API token for next time.Output:
Memory action: do not store
Ring: none
Scope: none
Event type: none
Summary: Secrets must not be stored in memory.
Source reference: user request
Privacy check: contains credential-like material
Follow-up: ask the user to store the secret in an appropriate secret managerDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

