memory-steward
Installation
SKILL.md
Memory steward
Keeps <repo-root>/MEMORY.md healthy. Workspace CONTEXT.md and docs/adr/ stay at <artifacts-root>; this skill does not move domain terms into MEMORY.
Resolve paths
- Active repo root — git root for cwd, or Project Matrix
Pathfor the project being edited. Never use the meta-workspace folder (path: ".") forMEMORY.md. <artifacts-root>— directory with*.code-workspace, elseCONTEXT-MAPcontext root, else single repo root. ADRs:<artifacts-root>/docs/adr/.
If MEMORY.md is missing at active repo root and recall would help, scaffold a minimal index-only MEMORY.md there (≤~300 lines, one bullet per durable fact, no secrets).
Session start (light pass)
Run automatically at session start after reading repo MEMORY.md (mandated in AGENTS.md). Keep output short.
- Count lines in active repo
MEMORY.md(0 if missing). - Scan
## Promotion queueand## Decisions (short)forADR-NNNN:tags. - If lines > ~300 OR promotion queue non-empty OR user’s last message implies memory work → note that full pass is advised; run full pass only if queue is non-empty or lines > 300.
- Otherwise: one-line status only (e.g.
Memory: api-service/MEMORY.md, 42 lines, queue empty). No file writes.