agentleFS
irfad7irfad7/claude-power-skills/skills/autodream/SKILL.md

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

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
  1. Distinctive:

    When the user explicitly requests memory cleanup

    line 16
  2. Distinctive:

    When memory files feel bloated, contradictory, or stale

    line 17
  3. Distinctive:

    When starting a session and noticing memory drift

    line 18
  4. Distinctive:

    Read every memory/context file in the project.

    line 26
  5. Distinctive:

    After consolidation, look across all files for:

    line 94
  6. Distinctive:

    Emerging patterns: not yet captured in INSTINCT.md

    line 96
  7. Distinctive:

    Write any new discoveries as properly formatted entries in the appropriate files.

    line 101
  8. Distinctive:

    After completing the dream cycle, produce a brief report:

    line 105
  9. Distinctive:

    Never delete information without noting what was removed and why

    line 129
  10. Distinctive:

    When in doubt, keep the entry — false deletion is worse than clutter

    line 130
  11. Distinctive:

    Always preserve decision rationale (LINEAGE entries are sacred)

    line 131

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 knowledge
  • kai/GRAVITY.md — current priorities
  • kai/PULSE.md — live state of systems/orgs
  • kai/SCARS.md — things that broke and lessons learned
  • kai/DEBTS.md — obligations and technical debt
  • kai/RELATIONSHIPS.md — people and context
  • kai/INSTINCT.md — learned patterns and reflexes
  • kai/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:

  1. Draft the consolidated version
  2. 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)
  3. 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.