autodream
Skill4 starsChanged 8 months agoMITView on GitHub
When ending a session, consolidating memory, or when memory files feel stale or contradictory. Use when the user says "dream," "consolidate memory," "clean up memory," "merge notes," "memory maintenance," "what do you remember," "update your knowledge," "session end," or when memory/context files have accumulated noise over multiple sessions. Performs cross-session memory synthesis inspired by KAIROS autoDream.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- MKAbuMattar/skillstheir own version, first seen Jul 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- MKAbuMattar/skills★ 1same 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 repository21 other files it gives its agents.
- docs/llms.txtllms.txt
- llms.txtllms.txt
- anti-distillationSkill
- batch-modeSkill
- bughunterSkill
- codebase-insightSkill
- code-reviewSkill
- context-compressionSkill
- coordinator-modeSkill
- effort-estimateSkill
- frustration-awareSkill
- kairos-sessionSkill
- magic-docsSkill
- pr-autofixSkill
- prompt-speculationSkill
- security-reviewSkill
- session-reviewSkill
- stuck-recoverySkill
- thinkbackSkill
- ultraplanSkill
- undercover-modeSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 11 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
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 16
When the user explicitly requests memory cleanup
- Distinctive: line 17
When memory files feel bloated, contradictory, or stale
- Distinctive: line 18
When starting a session and noticing memory drift
- Distinctive: line 26
Read every memory/context file in the project.
- Distinctive: line 94
After consolidation, look across all files for:
- Distinctive: line 96
Emerging patterns: not yet captured in INSTINCT.md
- Distinctive: line 101
Write any new discoveries as properly formatted entries in the appropriate files.
- Distinctive: line 105
After completing the dream cycle, produce a brief report:
- Distinctive: line 129
Never delete information without noting what was removed and why
- Distinctive: line 130
When in doubt, keep the entry — false deletion is worse than clutter
- Distinctive: line 131
Always preserve decision rationale (LINEAGE entries are sacred)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
autoDream — Cross-Session Memory Synthesis
You are a memory consolidation agent. Your job is to review, merge, prune, and crystallize knowledge stored across session memory files — the same way the brain consolidates memories during sleep.
When To Run
- End of every meaningful work session
- When the user explicitly requests memory cleanup
- When memory files feel bloated, contradictory, or stale
- When starting a session and noticing memory drift
The Dream Cycle
Execute these four phases in order:
Phase 1: Scan — Read All Memory Sources
Read every memory/context file in the project. Common locations:
kai/MEMORY.md— session summaries and accumulated knowledgekai/GRAVITY.md— current prioritieskai/PULSE.md— live state of systems/orgskai/SCARS.md— things that broke and lessons learnedkai/DEBTS.md— obligations and technical debtkai/RELATIONSHIPS.md— people and contextkai/INSTINCT.md— learned patterns and reflexeskai/LINEAGE.md— decision history.claude/projects/*/memory/or equivalent auto-memory directories- Any
MEMORY.md,CHANGELOG.md, or context files in the project
For each file, note:
- Last modified date
- Entry count / size
- Staleness (how old is the most recent entry?)
Phase 2: Detect — Find Issues
Scan for these specific problems:
Contradictions Two entries that say opposite things. Example:
- Entry A: "API uses REST endpoints"
- Entry B: "Migrated API to GraphQL last week" → Keep the newer one. Delete the older one.
Duplicates Same information recorded multiple times in different words. → Merge into one clear entry. Delete the others.
Stale Entries Information that's no longer true or relevant. → Delete or move to an archive section.
Vague Entries Notes that are too imprecise to be useful. Example:
- "Had issues with the deployment" → Either crystallize into a specific fact ("Railway deployment fails when NODE_ENV isn't set") or delete.
Resolved Items Scars that have been fixed, debts that have been paid, tasks that are done. → Remove from active lists. Optionally archive.
Promotable Patterns A scar that keeps recurring → promote to INSTINCT.md as a pattern. A one-time note that proved important → promote to a dedicated memory file.
Phase 3: Consolidate — Rewrite
For each file that needs changes:
- Draft the consolidated version
- Show the user a summary of changes:
MEMORY.md: 34 entries → 21 entries - Removed: 8 duplicates, 3 contradictions, 2 stale - Merged: 4 entries into 2 - Crystallized: 3 vague entries into specific facts SCARS.md: 12 entries → 9 entries - Resolved: 2 scars (auth fix, deploy pipeline) - Promoted to INSTINCT.md: 1 pattern (always check env vars) - Apply changes only after user approves (or if running autonomously via KAIROS, apply and log)
Phase 4: Synthesize — Extract New Knowledge
After consolidation, look across all files for:
- Emerging patterns not yet captured in INSTINCT.md
- Priority shifts that GRAVITY.md doesn't reflect
- Relationship updates from recent interactions
- State changes that PULSE.md should reflect
Write any new discoveries as properly formatted entries in the appropriate files.
Output Format
After completing the dream cycle, produce a brief report:
## autoDream Report — [DATE]
### Files Processed: [N]
### Changes Made:
- [FILE]: [summary of changes]
- [FILE]: [summary of changes]
### New Knowledge Extracted:
- [insight]
- [insight]
### Staleness Warnings:
- [FILE] hasn't been updated in [N] days
- [SECTION] may be outdated
### Health Score: [1-10]
(10 = all memory is fresh, consistent, and actionable)Rules
- Never delete information without noting what was removed and why
- When in doubt, keep the entry — false deletion is worse than clutter
- Always preserve decision rationale (LINEAGE entries are sacred)
- Contradictions should be resolved in favor of the most recent information unless the user specifies otherwise
- Crystallize vague notes into specific, testable facts whenever possible
- Memory files should be getting smaller and sharper over time, not larger
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.

