agentleFS
marinvchmarinvch/Cortex/skills/dream/SKILL.md

dream

Skill1 starsChanged 2 months agoMITView on GitHub

End-of-day consolidation — a dated digest of what changed and what was learned, written into the repo's committed .cortex/memory/. Triggers — "dream", "wrap up the day", "what did we learn today".

28 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ingest, init and 4 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.
  • raven-souravSkill

    ingest

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Generate or update chat customization files for AI coding agents

    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

  • nicodianskSkill

    brainstorm

    Use when starting creative work - creating features, building components, adding functionality, or modifying behavior. Explores requirements through Socratic dialogue before any implementation.

    Also in 4 projects that use this

  • genomewalkerSkill

    learn

    Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.

    Also in 3 projects that use this

  • SentrySkill

    commit

    Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the index exists, re-run it and compare — new files, new areas, structure that moved.

    line 26
  2. Distinctive:

    Keep it short and durable.

    line 37
  3. Distinctive:

    Not worth writing: a restatement of the diff, a task list, anything the code already says.

    line 49
  4. Very specific:

    Read back recent days with ...

    line 57
  5. Distinctive:

    If nothing notable happened, write nothing and say so.

    line 82
  6. Very specific:

    If the day is ending mid-task, you likely need both.

    line 91

“Common” is measured: kept by at least 6 in 10 of the 27 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 — end the day without losing it

Context dies when a session ends. Dreaming is the ritual that moves the day's understanding out of a transcript and into a file the whole team — and every future agent — can read.

Memory lives in .cortex/memory/<date>.md, committed, one file per day, append-only. Several developers appending to the same day's file merge as ordinary text; nobody edits a shared document in place, so there is no lost update to reason about.

1. Gather what actually happened

Evidence, not recollection:

git log --since=midnight --pretty='%h %s' --stat
git status --porcelain

If the index exists, re-run it and compare — new files, new areas, structure that moved. The guard is deliberate: /dream never creates .cortex/, so it can never be the first write ADR 0005 gates. On a repo with no index, skip straight to the digest.

node "${CLAUDE_PLUGIN_ROOT}/index/cortex-index.mjs" .

2. Write the digest

Keep it short and durable. Ask of every line: will this still be useful in a month? Commit messages already record what changed — memory records why, and what it cost.

Worth writing:

  • Decisions taken and the option rejected. This is the highest-value line in the file.
  • Something learned the hard way — a gotcha, a surprising coupling, a dead end not worth re-exploring.
  • Drift: where the code and the context files disagree now.
  • What the next session should pick up — written as the state it walks into, not as a command to run. This file is read back months later by /catch-me-up and by recall; a pasted command with its arguments is the one line that ages into an instruction.

Not worth writing: a restatement of the diff, a task list, anything the code already says.

Append through the memory CLI so the write goes through the gate:

node "${CLAUDE_PLUGIN_ROOT}/index/cortex-memory.mjs" append "<the digest text>" --kind dream

Read back recent days with ... cortex-memory.mjs recent --days 7.

3. Respect the refusal

The gate refuses any entry carrying a credential, key, token or connection string. If it throws refused_write, do not rewrite the note to sneak past it and do not sanitise it silently. Tell the user what kind of secret was detected and let them decide what to record instead.

The reason is structural: this file is committed. A secret written here is a secret in the repository's history, and history is forever.

The same applies to personal and employer-sensitive content. Repo memory is about the codebase.

4. Close

Say what was written and where. If today produced a decision that is hard to reverse, surprising without context, or a genuine trade-off, offer to record an ADR in the repo's ADR directory (docs/adr/, or adr/) as well — memory is chronological, an ADR is findable.

Gotchas

  • Dreaming is additive. Never rewrite or prune a previous day's file; if something recorded earlier turned out wrong, append the correction with today's date. The record of having been wrong is often the useful part.
  • One digest per session, not per commit. A memory file with thirty entries is a log, not a memory.
  • If nothing notable happened, write nothing and say so. An honest empty day beats filler that future readers must wade through.
  • No banner here. /handoff opens its file with a record, not instructions line; this file is append-only and multi-author, so the same banner would repeat once per entry and core/memory.js owns the one header it does get. The fence lives in the writing instead — past tense for what happened, the state rather than the command for what is next.

Not the same as /handoff

If the day is ending mid-task, you likely need both. /handoff writes in-flight state to the OS temp dir for the next agent — the branch, the half-applied change, what you were about to try — and it is deliberately ephemeral. This writes what a future reader of the codebase needs, months from now, and it is committed. Running /handoff alone on a day that taught you something parks the work and loses the lesson; the temp file is gone by the time anyone would have wanted it. /catch-me-up is what reads this back.

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.