memories
Skill2 starsChanged 4 months agoMITView on GitHub
Curate, retrieve, migrate, validate, consolidate, or promote durable shared and project memory lessons. Use whenever work involves a shared memory root, a project MEMORIES/ root, memory frontmatter, consolidation, cross-project lesson promotion, or metadata-only recall.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- mweinbach/agent-coworkertheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mweinbach/agent-coworker★ 157same 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 repository27 other files it gives its agents.
- capture-collaboration-evidenceSkill
- clarify-before-buildingSkill
- cross-platform-project-build-archSkill
- deep-code-reviewSkill
- dispatchSkill
- erect-agent-stackSkill
- fix-zig-deps-hashSkill
- gather-project-intentionsSkill
- handoffSkill
- i18nSkill
- lean4-developmentSkill
- llvm-guided-optimizationSkill
- mechatron-ciSkill
- mficSkill
- no-ai-slopSkill
- onboardSkill
- performance-profilingSkill
- planning-workSkill
- scaffold-zig-projectSkill
- shipSkill
- test-isolationSkill
- universal-app-frontendSkill
- walking-decisionsSkill
- writing-bendSkill
- writing-nixSkill
- writing-rocSkill
- zig-microbenchmarksSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Treat memory roots as a small, curated recall index—not a journal.
- Distinctive: line 57
Every memory is a regular Markdown file named:
- Distinctive: line 84
Keep recalled metadata unchanged and deterministic.
- Very specific: line 89
Write a concise, specific description.
- Distinctive: line 93
Keep the body for the evidence, decision, and exact details needed later.
- Distinctive: line 94
Do not repeat the filename merely as a heading.
- Distinctive: line 119
Read a body only after its filename or frontmatter makes it relevant.
- Distinctive: line 140
Before handoff, commit, push, ship, or publish, check whether a genuinely new durable lesson exists.
- Very specific: line 146
Read ~/.local/state/evolving-knowledge-base/state.json first.
- Very specific: line 156
Never bulk-load unrelated bodies or append routine activity to legacy MEMORIES.md, LEARNINGS.md, MISTAKES.md, or DESIRES.md files.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memory stewardship
Treat memory roots as a small, curated recall index—not a journal. Shared
lessons live in $HOME/MEMORIES/; project-only lessons live in
<project-root>/MEMORIES/. Never read or write a project’s memories unless
that project is explicitly within the current task scope.
A project's MEMORIES/ is committed inside that project's own repository and
may become public, so never put personal or private information — real
names, contacts, credentials, secrets, health, finances, or other private
circumstances — in a project-scoped memory. Keep such context only in the
private shared root ($HOME/MEMORIES/) or a dedicated private context pack.
Project memories hold only the durable technical lesson.
Is this a memory, or does another system fit better?
Memories are one of three durable-knowledge systems. Before writing here, check whether one of the others fits the thing better — and if two genuinely apply, record it in both. Duplication is explicitly allowed. The failure worth avoiding is a lesson that went unrecorded because each system assumed another owned it.
| System | Answers | Shape |
| memories (this) | "What do I need to know?" | A durable lesson, generally true, not tied to one place in the code |
ADR — <project>/ADR.tsv | "Why is this thing the way it is?" | A decision, with the alternatives that lost and the tradeoff accepted, bound to specific paths |
capture-collaboration-evidence | "What proves human and agent together beat either alone?" | An interaction effect — each party materially improved the other's reasoning |
The discriminator: does it bind to a place in the code that someone might later change?
- Yes → ADR. Its
wherefield is the point: it lets the decision resurface at the moment someone reaches for that file. This is the Chesterton's Fence case — "this looks wrong, I'll simplify it," where the reason it exists has been lost. - No, it is a general truth → memory. "
git checkout -- <file>restores from the index, not HEAD" belongs everywhere and nowhere; there is no single file it guards.
Independently of the above: if the insight arose from a human and an agent
improving each other's reasoning, it also belongs in
capture-collaboration-evidence — in addition to whichever system above
applies, not instead of it.
Same fact can legitimately land twice. "A flag that preserves literal newlines will break any one-record-per-line format" is a memory (true everywhere, for anyone) and an ADR in the project whose log format it would break. Different jobs, both worth doing.
Required format
Every memory is a regular Markdown file named:
concise durable lesson.frontmatter.mdIt starts with exactly these three YAML fields, then a closing ---:
---
description: "One searchable sentence stating the durable lesson."
datetime: 2026-07-20T09:00:00-04:00 # EDT
tags: [memory, memories, metadata, frontmatter]
---- Store datetimes as timezone-aware ISO 8601 in the machine's local
timezone: local wall time, its numeric UTC offset, and a trailing comment
naming the zone abbreviation in effect on that date. Do not default to
UTC. Where a zone observes daylight saving the offset and abbreviation both
shift through the year, so derive them from the record's own date rather
than assuming one value year-round. Generate them instead of hand-computing:
date +%Y-%m-%dT%H:%M:%S%:zfor the stamp anddate +%Zfor the label. - UTC (
Z) remains a valid, equivalent representation of the same instant and still passes validation. ExistingZrecords are correct: do not rewrite them merely to change representation. Re-stamp a record only when its stored instant is genuinely wrong. - Keep recalled metadata unchanged and deterministic. Convert timestamps to a reader's local timezone only as an explicit presentation step, never as a silent read-time rewrite.
- Preserve a legacy file’s creation instant when migrating it; use the current instant only for genuinely new lessons.
- Write a concise, specific description. Tags are lowercase hyphenated terms.
Include the canonical term and useful lexical aliases (
nix,nixos,flakes;wasm,webassembly;i18n,l10n,localization). Prefer enough aliases for direct metadata searches; do not create a semantic index. - Keep the body for the evidence, decision, and exact details needed later. Do not repeat the filename merely as a heading.
Recall and validation
List both the shared and current-project indexes in one deterministic, scope-labeled pass. The default reads filenames only; pass a project root when the working directory is not the project you mean:
memories/scripts/list-titles
memories/scripts/list-titles ~/Code/PROJECTFor metadata-only selection, add --headers; this delegates to the frontmatter
validator and still does not load bodies:
memories/scripts/list-titles --headers ~/Code/PROJECTBoth modes ignore generated .codescan/ search-index directories in shared
and project memory roots.
The helper is also sourceable as the Bash function list_memory_titles.
Read a body only after its filename or frontmatter makes it relevant. Validate every affected root after an edit or migration:
memories/scripts/check-frontmatter "$HOME/MEMORIES" ~/Code/PROJECT/MEMORIESThe checker rejects old filenames, missing fields, date in place of
datetime, and datetimes without a timezone offset.
For a reviewed legacy migration, create a recoverable backup, inspect the metadata-only preview, then apply and re-check:
memories/scripts/migrate-legacy --dry-run "$HOME/MEMORIES"
memories/scripts/migrate-legacy --apply "$HOME/MEMORIES"
memories/scripts/check-frontmatter "$HOME/MEMORIES"Write and consolidate
Before handoff, commit, push, ship, or publish, check whether a genuinely new durable lesson exists. Record it in the narrowest correct scope, or explicitly state that none applied.
On an explicit consolidation request:
- Read
~/.local/state/evolving-knowledge-base/state.jsonfirst. Skip roots with no changes since their recordedlast_consolidated_at. - Audit changed roots separately by filename and frontmatter, then load only potentially overlapping bodies.
- Merge overlapping or superseded lessons only with a recoverable backup. Promote a lesson to shared scope when it genuinely applies to two or more projects; leave a project-specific version when it retains essential local detail.
- Record the completed timestamp and roots in the maintenance-state file.
Never bulk-load unrelated bodies or append routine activity to legacy
MEMORIES.md, LEARNINGS.md, MISTAKES.md, or DESIRES.md files.
Does 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.

