promote-memories
Skill0 starsChanged 3 months agoMITView on GitHub
Triage per-user memory: promote durable entries into a rules file (global or project .claude/rules/) and retire SHIPPED trackers. Use for a memory triage round.
In this repository6 other files it gives its agents.
- dispatchSkill
- orchestrate-creatorSkill
- risk-reviewSkill
- skill-retroSkill
- work-logSkill
- write-adrSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Run a memory triage round — promote durable lessons to rules and retire (delete/trim) SHIPPED trackers.
- Distinctive: line 55
Update every mirror of the content in the same change.
≈ “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
/promote-memories
Run a memory triage round — promote durable lessons to rules and retire (delete/trim)
SHIPPED trackers. Authority splits: this kit's rules/knowledge-layering.md (§ Where knowledge
belongs, § Promotion & retirement, § Verify before you lock it), installed as
~/.claude/rules/knowledge-layering.md, is canonical for what belongs where and when a
memory must go — read it first and let it win on classification. The steps below are canonical
for how a round runs, and stand alone if that file is absent.
Typical trigger: memory count or total content size (see knowledge-layering § Promotion &
retirement), or a user-requested periodic triage. $ARGUMENTS may name a focus cluster to skip
the full triage.
Step 1: Triage
- Size-rank the memory files for the active workspace:
ls -S ~/.claude/projects/<workspace>/memory/*.md | xargs wc -c | sort -rn | head -25 - For each candidate, apply knowledge-layering.md's quick test ("would a new contributor
re-derive this?") and the
user_*carve-out (personal-preference feedback stays in memory). - Classify each into a disposition — run the promotion quick-test first, so one memory can
be both promoted and then retired:
- PROMOTE — durable, non-derivable lesson → extract to rules (Steps 2-4).
- DELETE — a
project_*tracker whose work has fully SHIPPED (no open items, outcome now derivable) → retire the file; extract any durable lesson via PROMOTE first, then delete. - TRIM — shipped bulk plus a few live items → rewrite to the open-tracking stub.
- KEEP — active tracking with open work → leave as-is.
- For PROMOTE candidates: cluster by target file and pick the tier per candidate — a
cross-project lesson → global
~/.claude/rules/; a single-project lesson → that project's.claude/rules/(path-scoped if domain-specific). Additions to always-loaded files route throughcontext-budget.md's classifier first. Grep the target before drafting — promote only the delta; defer clusters whose target file does not exist yet. - Present the disposition slate to the user (PROMOTE / DELETE / TRIM / KEEP, with reasons; defer
where relevant). Wait for approval. Then: PROMOTE → Steps 2-4; DELETE / TRIM → operate
on memory directly (no PR; on DELETE, prune the file's MEMORY.md index line and fix any
[[wikilink]]that pointed to it).
Step 2: Draft
- Concept register — compress the narrative, keep the invariant and a pointer. But PRESERVE non-derivable negative claims: anti-pattern / "wrong fixes" lists, "don't do X" caveats — those are usually the entire value of the memory.
- Strip per-user provenance and memory references (knowledge-layering.md § Anti-pattern) from any repo-tracked target. A repo-tracked rule must stay self-contained — never point it at the maintainer's per-machine global rule. That section ships the detector; run it on the target repo and confirm the draft adds no hit.
- Update every mirror of the content in the same change.
Step 3: Self-check (before handing off)
Execute every load-bearing assertion in the drafts against current state, not the memory's
snapshot: run every grep / path / line-anchor; gh pr view N for every (#N) cite. Reframe the
draft to match what you observe — memories age (files move, IDs get renamed, spike facts never
landed).
Step 4: Land the change
Hand the approved drafts to the project's implementation workflow: if the project defines a PR
orchestration entry point (e.g. /orchestrate), use it; a global-rules change under
~/.claude/rules/ goes through whatever repo provides those rules (for example this kit, or a
personal dotfiles repo) via that repo's normal PR/commit flow. This skill does not commit on its
own.
Step 5: Post-merge local cleanup (operator checklist)
Gate on the change actually landing, then print (never auto-run) this checklist:
- One
command rmline per promoted memory file (command rmbecause an interactivermaliased torm -isilently no-ops non-interactively). Show for confirmation first. - Shorten remaining over-long MEMORY.md index lines — this relieves the built-in index-size warning (which fires too late to rely on); the primary triage triggers are count + content-size, which retirement (DELETE / TRIM) addresses directly.
- Re-check the triage triggers (count / content-size); if still over, queue the next round from the deferred clusters.
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.

