memory-consolidate
Skill9 starsChanged 7 months agoApache-2.0View on GitHub
Consolidate memory files — remove stale facts, resolve contradictions, verify paths. Inspired by Claude Code's autoDream pattern.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- YYfather/DSH-memorytheir own version, first seen Oct 15, 2026
- opensite-ai/opensite-skillstheir own version, first seen Oct 13, 2026
- mikeyobrien/rhotheir own version, first seen Oct 8, 2026
- DScardini91/agentic-ostheir own version, first seen Jun 26, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- mikeyobrien/rho★ 372same name
- opensite-ai/opensite-skills★ 15same name
- DScardini91/agentic-os★ 2same name
- YYfather/DSH-memory★ 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 repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- cli/CLAUDE.mdCLAUDE.md
- control-plane-api/CLAUDE.mdCLAUDE.md
- control-plane-ui/CLAUDE.mdCLAUDE.md
- e2e/CLAUDE.mdCLAUDE.md
- portal/CLAUDE.mdCLAUDE.md
- stoa-gateway/CLAUDE.mdCLAUDE.md
- analyticsSkill
- cartoSkill
- ci-debugSkill
- ci-fixSkill
- competitive-watchSkill
- councilSkill
- decomposeSkill
- extractSkill
- fill-cycleSkill
- generate-backlogSkill
- impactSkill
- monitor-cdSkill
- parallel-reviewSkill
- pr-guardianSkill
- rewriteSkill
- roadmapSkill
- spec-drivenSkill
- sync-planSkill
- verify-megaSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. 0 are common, 13 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
13
Distinctive
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 17
Read the memory index and all referenced topic files:
- Distinctive: line 25
Check if the file still exists in the codebase
- Distinctive: line 26
If NOT: flag as stale, note the memory file and line
- Distinctive: line 27
If YES but content has changed significantly: flag as potentially outdated
- Distinctive: line 29
Use Glob and Grep to verify existence.
- Distinctive: line 50
Stale path: Remove or update the reference
- Distinctive: line 51
Contradiction: Keep the more recent/accurate version, remove the other
- Distinctive: line 52
Outdated fact: Update if current state is clear, otherwise flag for human review
- Distinctive: line 57
Ensure MEMORY.md stays under 120 lines:
- Distinctive: line 60
Keep index entries under ~150 chars each
- Distinctive: line 77
NEVER delete a memory file entirely — consolidate into existing files
- Distinctive: line 78
NEVER change facts about infrastructure (IPs, credentials, service names) without verification
- Distinctive: line 81
Keep the consolidation under 2 minutes — don't read every file in the codebase
“Common” is measured: kept by at least 6 in 10 of the 3 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
Memory Consolidation — autoDream Pattern
CAB-2005: Inspired by Claude Code's autoDream process revealed in the March 2026 source leak.
During idle periods, autoDream merges disparate observations, removes logical contradictions,
and converts vague insights into verified facts.
This skill performs the same operation on STOA's memory system.
Step 1: Read All Memory Files
Read the memory index and all referenced topic files:
~/.claude/projects/-Users-torpedo-hlfh-repos-stoa/memory/MEMORY.md(index)- All
.mdfiles referenced in MEMORY.md (topic files) memory.md(project root — session state)
Step 2: Verify File References
For each file path mentioned in any memory file (backtick-quoted paths like path/to/file.ext):
- Check if the file still exists in the codebase
- If NOT: flag as stale, note the memory file and line
- If YES but content has changed significantly: flag as potentially outdated
Use Glob and Grep to verify existence. Do NOT read every referenced file — just check existence.
Step 3: Detect Contradictions
Scan for contradictions across memory files:
- Version conflicts: e.g., "ADR numbering: next ADR-048" in one file vs "ADR-060" in another
- Status conflicts: item marked DONE in one file but IN PROGRESS in another
- Port/URL conflicts: different ports or URLs for the same service
- Date conflicts: timeline inconsistencies
Step 4: Detect Stale Facts
Flag facts that are likely outdated:
- References to cycles older than 2 cycles ago still marked "CURRENT"
- TODO items with dates more than 2 weeks in the past
- "Active" items that haven't been updated in 30+ days
- Infrastructure references (IPs, service names) that may have changed
Step 5: Apply Fixes
For each issue found:
- Stale path: Remove or update the reference
- Contradiction: Keep the more recent/accurate version, remove the other
- Outdated fact: Update if current state is clear, otherwise flag for human review
- Stale TODO: Move to completed or remove if no longer relevant
Step 6: Compact MEMORY.md
Ensure MEMORY.md stays under 120 lines:
- Move completed ticket details to
completed-tickets.md - Move resolved infra details to
infra-status.md - Keep index entries under ~150 chars each
Step 7: Report
Output a summary:
Memory Consolidation Report:
- Files scanned: N
- Stale paths removed: N
- Contradictions resolved: N
- Stale facts updated: N
- MEMORY.md lines: N/120
- Items flagged for human review: N (list)Rules
- NEVER delete a memory file entirely — consolidate into existing files
- NEVER change facts about infrastructure (IPs, credentials, service names) without verification
- Flag uncertain changes for human review rather than guessing
- This skill is safe to run via
/loop 30m memory-consolidatefor periodic maintenance - Keep the consolidation under 2 minutes — don't read every file in the codebase
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.

