agentleFS
tatsoft-llctatsoft-llc/Claude-Code-Skills/skills/dream/SKILL.md

dream

Skill2 starsChanged 23 days agoApache-2.0View on GitHub

Consolidate the project's durable knowledge (auto memory, CLAUDE.md lessons, notes files) against what actually happened in the session records written since the last run. Finds entries a later decision has contradicted, duplicates, and lessons that recurred in several sessions but were never written down, then writes one cited report and applies only what the user approves. Use when the user asks to "dream", "consolidate memory against the sessions", "what patterns are we repeating", "what keeps going stale", "clean up what Claude remembers". User-invoked only: never scheduled, never run by a hook. Does NOT fire at session close (that is session-summary) or to save a single fact (write that directly).

40 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ingest, resume and 10 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

  • Hugging FaceSkill

    simplify

    Refactor code after tests pass. The "Refactor" phase of Red-Green-Refactor.

    Also in 3 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

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 4

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

    Orient: Read the watermark and list the records newer than it.

    line 42
  2. Distinctive:

    Mine: Read every new record in full, not by search hit.

    line 45
  3. Distinctive:

    Keep the "refuted" section.

    line 74
  4. Distinctive:

    Point, do not copy: If a fact has a canonical home in the repository, the memory entry points there instead of restating it.

    line 84

“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

Sessions write durable knowledge one fact at a time. Over a few hundred sessions that store collects duplicates, entries a later decision contradicts, and lessons that recurred in five sessions and were written down in none. A dream reads the store, reads what happened since the last dream, and corrects the store.

A plain memory cleanup only looks at the memory files. A dream checks them against the record of what actually happened, and the record wins.

What it reads

RoleSource
StoreClaude Code's auto memory for this project, plus any lessons or notes sections in CLAUDE.md and the project's notes files
CorpusSession records written since the last dream (for example the ones session-summary writes), newest first, at most 100 per run
Ground truth, outranks the storeThe decision log, the tracker, the changelog, and git history
WatermarkA small state file, for example .claude/dream-state.json: when the last dream ran and the newest record it consumed

Read the watermark's timestamp, not the watermark file's modification time. Any edit moves the file's time and silently skips records. Enumerate session records by their own modification time against that timestamp.

Procedure

  1. Orient. Read the watermark and list the records newer than it. Fewer than about ten new records and the user did not insist: say so and stop, there is not enough to find patterns in. Count the store before touching it.
  2. Mine. Read every new record in full, not by search hit. Look for four things:
    • the same class of mistake corrected in two or more sessions
    • a preference the user stated more than once
    • a workflow that converged across several sessions
    • a store entry a later record or decision contradicts For a large backlog, split the records by date across parallel read-only agents and treat an item two agents surface independently as the stronger signal.
  3. Apply the two-record floor. One occurrence is an event, not a pattern. A NEW entry needs two independent records, or one record plus a decision log entry. A CORRECTION to an existing entry needs one decision or one record that clearly overtakes it.
  4. Verify each candidate. Re-open its sources and confirm them before it goes in the report. A candidate that came from a search hit or a title is not verified. A claim about live state (a service running, a setting on) is re-checked live, never taken from the record.
  5. Report. One file, every entry citing the records or decisions behind it. An entry with no citation is an invention and does not go in.
# Dream, YYYY-MM-DD HH:MM
Records read: <N>, <first> to <last>; <N> still pending
Store read: <N> entries

## Proposed corrections   (entry, old -> new, source)
## Proposed new entries    (text, the two sources)
## Proposed merges or drops (files, and every reference that would need repointing)
## Refuted on verification (candidates that failed step 4, one line each)
  1. Apply what the user approves, then update the watermark.

Keep the "refuted" section. It is the dream's own error rate, and it is how you learn whether to trust the next run.

Rules

  • The record wins. A memory entry contradicting a recorded decision is stale. Correct the memory and cite the decision, never the reverse.
  • Never rewrite a record or a decision log entry. Those are read, not edited.
  • Merges and drops are proposals. Other files may reference a memory entry by name; removing it needs those references repointed.
  • Point, do not copy. If a fact has a canonical home in the repository, the memory entry points there instead of restating it.
  • No secrets in the report or the store.

Anti-patterns

Finding patterns in three records. Applying a candidate nobody re-checked. Rewriting history because memory disagrees with it. Turning every one-off event into a permanent rule.

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.