agentleFS
sneg55sneg55/agent-starter/skills/dream/SKILL.md

dream

Skill76 starsChanged 5 months agoMITView on GitHub

Memory consolidation - review, merge, prune, and index memory files. Run periodically to keep memories organized and up-to-date.

40 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use ingest, resume and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JaimeGBASkill

    ingest

    Digest an external source (article, paper, transcript, URL, book chapter) and integrate its content into the knowledge base

    Also in 4 projects that use this

  • genomewalkerSkill

    resume

    Resume a thread by loading its ~800-token context capsule

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Also in 4 projects that use this

  • SentrySkill

    deslop

    Strip AI-generated noise from the diff before pushing — extra comments a human wouldn't write, defensive try/catch in trusted code paths, casts to any, inline imports in Python, and other style inconsistencies with the surrounding file. Use this immediately before commit so the diff stays clean.

    Also in 3 projects that use this

  • AnthropicSkill

    start

    Set up your bio-research environment and explore available tools. Use when first getting oriented with the plugin, checking which literature, drug-discovery, or visualization MCP servers are connected, or surveying available analysis skills before starting a new project.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read MEMORY.md to understand the current index

    line 21
  2. Very specific:

    If logs/ or sessions/ subdirectories exist, review recent entries there

    line 23
  3. Distinctive:

    Look for new information worth persisting.

    line 27
  4. Very specific:

    Transcript search: - if you need specific context, grep transcripts for narrow terms: grep -rn "<narrow term>" .claude/transcripts/ …

    line 31
  5. Distinctive:

    Don't exhaustively read transcripts.

    line 34
  6. Very specific:

    Update MEMORY.md so it stays under 200 lines AND under ~25KB.

    line 65
  7. Distinctive:

    Never write memory content directly into MEMORY.md

    line 68
  8. Distinctive:

    Remove pointers to stale, wrong, or superseded memories

    line 69
  9. Distinctive:

    Add pointers to newly important memories

    line 71

“Common” is measured: kept by at least 6 in 10 of the 39 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.

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

Dream: Memory Consolidation

You are performing a dream - a reflective pass over your memory files. Synthesize what you've learned recently into durable, well-organized memories so that future sessions can orient quickly.

Phase 1 - Orient

  • ls the memory directory to see what already exists
  • Read MEMORY.md to understand the current index
  • Skim existing topic files so you improve them rather than creating duplicates
  • If logs/ or sessions/ subdirectories exist, review recent entries there

Phase 2 - Gather recent signal

Look for new information worth persisting. Sources in rough priority order:

  1. Daily logs (logs/YYYY/MM/YYYY-MM-DD.md) if present - these are the append-only stream
  2. Existing memories that drifted - facts that contradict something you see in the codebase now
  3. Transcript search - if you need specific context, grep transcripts for narrow terms: grep -rn "<narrow term>" .claude/transcripts/ --include="*.jsonl" | tail -50

Don't exhaustively read transcripts. Look only for things you already suspect matter.

Phase 3 - Consolidate

For each thing worth remembering, write or update a memory file. Use these type conventions:

TypeWhat belongsExamples
userUser's role, goals, preferences, knowledge"senior Go dev, new to React"
feedbackCorrections AND confirmations from user"don't mock DB in tests", "bundled PR was right call"
projectOngoing work context, deadlines, initiatives"merge freeze 2026-03-05 for mobile release"
referencePointers to external systems"pipeline bugs in Linear project INGEST"

Each memory file uses this format:

---
name: {{name}}
description: {{one-line description}}
type: {{user, feedback, project, reference}}
---

{{content - for feedback/project: rule, then **Why:** and **How to apply:**}}

Focus on:

  • Merging new signal into existing topic files rather than creating near-duplicates
  • Converting relative dates ("yesterday", "last week") to absolute dates
  • Deleting contradicted facts - if today's investigation disproves an old memory, fix it at the source

Phase 4 - Prune and index

Update MEMORY.md so it stays under 200 lines AND under ~25KB. It's an index, not a dump:

  • Each entry: one line under ~150 chars: - [Title](file.md) - one-line hook
  • Never write memory content directly into MEMORY.md
  • Remove pointers to stale, wrong, or superseded memories
  • Shorten verbose entries - move detail to the topic file
  • Add pointers to newly important memories
  • Resolve contradictions - if two files disagree, fix the wrong one

What NOT to save

  • Code patterns, architecture, file paths - derivable from the project
  • Git history - git log / git blame are authoritative
  • Debugging solutions - the fix is in the code
  • Anything already in CLAUDE.md
  • Ephemeral task details or conversation context

Return a brief summary of what you consolidated, updated, or pruned. If nothing changed, say so.

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.