ascorbic/macrodata/memory-maintenance
Claude Code and agent skill by ascorbic/macrodata
- community
Checking that the SKILL.md file is still in the repository.
End of day memory maintenance. Runs distillation, updates state files, prunes stale info. Runs in background with no user interaction.
Install
npx vskill@latest install ascorbic/macrodata/memory-maintenanceSKILL.md
Memory Maintenance
FIRST, before distillation or any reads: if you have not already banked a heartbeat journal entry (topic memory-maintenance) claiming this run, do it NOW, then re-read recent memory-maintenance journal entries. If a sibling banked an earlier heartbeat for tonight, stand down: contribute deltas via journal only, never state files. Scheduled runs can double-fire; the journal write claims, the re-read arbitrates.
Scheduled maintenance to keep memory current and useful. Runs automatically at end of day.
Important: This runs in the background with no user interaction. Do not ask questions - make decisions and note uncertainties in the journal.
Process
1. Run Distillation
First, run the /distill skill to extract facts from today's conversations.
This processes all conversation files, spawns sub-agents for extraction, and writes distilled actions to the journal.
Check if distill already ran today:
If not found, invoke /distill. If already ran, skip to step 2.
2. Review Distilled Content
Read the distilled entries from today's journal:
Use these to inform state file updates.
3. State File Updates
State files are a bounded working set, not a log. Each has a budget (a screenful); content over budget is truncated at injection, so a bloated file helps no one. The detail belongs in the journal and entity files — state holds only what's live and load-bearing now, each item a one-line status with a pointer to where the detail lives. Updating state means as much cutting as adding.
today.md
- Clear completed items; move yesterday's detail to the journal
- Keep only carryover that's still live; leave it minimal for morning prep
workspace.md
- Each active project / open thread = one line: status + a pointer (
entities/projects/x.mdor "search: <term>") - If a bullet has grown into a paragraph, that detail goes to the project's entity file and the bullet becomes a pointer
- Drop resolved threads (the record is in the journal)
human.md
- Only genuinely new, durable facts about the user. Rare updates.
3b. Flags Review
Review state/flags.md — the channel that carries items to the user across sessions.
- For each open flag: is it still true? If addressed/merged/resolved/obsolete, remove it.
- Did today's work surface anything the user needs to see (a bug you can't fix, a decision only they can make, work awaiting their review)? Add it — one line + a pointer to the journal/entity with the full writeup. Do not paste the investigation into flags.md.
- Keep the list short and live. A stale flag list gets ignored.
4. Entity Updates
Review entities/people/ and entities/projects/:
- Integrate any facts extracted by distillation
- Project status changes?
- New projects to create files for?
5. Compact State to Budget
State files must stay within budget. Check them:
Rough targets: today ≲ 3 KB, workspace ≲ 3 KB, human ≲ 3.5 KB, flags ≲ 3 KB, identity ≲ 3 KB. (Hard cap is 4 KB each — content over that is truncated at injection.)
For any file over budget, compact it — this is expected maintenance, not optional:
- Move the detail to the journal (
log_journal) or the relevant entity file first, so nothing is lost - Then cut the state entry down to a one-line pointer, or remove it if it's resolved
- Also clear: completed todos still listed active, context no longer relevant, info duplicated across files
A file that only ever grows is the bug this step exists to catch. After compacting, re-run wc -c to confirm you're under budget.
6. Index Maintenance
Check if indexes need rebuilding:
If counts seem low or stale, trigger rebuild:
7. Journal Summary
Write a brief maintenance journal entry:
Note anything uncertain that should be confirmed with the user next session.
Security
- Security scanPassed, 85 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/macrodata/skills/memory-maintenance/SKILL.md
Popularity
- Repository stars
- 115
- Repository forks
- 9
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ascorbic/macrodata/memory-maintenance)