agentleFS
gabrielbsandimgabrielbsandim/task-funnel/skills/dream/SKILL.md

dream

Skill4 starsChanged 4 days agoMITView on GitHub

Reviews one project's recent sessions out of band and proposes changes to its rules and memory, each backed by evidence from two or more named sessions, including what to remove; applies only what the user approves. Use when asked to dream, to review what recent sessions learned or keep getting wrong, to clean up or consolidate memory or CLAUDE.md, or on /dream [N sessions].

56 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ingest, init and 7 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.
  • Google CloudSkill

    ingest

    Extracts, distills, and compiles raw sources (PPTX slide decks, PDFs, Word docs, Excel sheets, web URLs, transcripts, codebases, or raw/ directories) into persistent, structured Knowledge Compiler markdown wikis following the Open Knowledge Format (OKF v0.2) and Andrej Karpathy LLM-Wiki standard. Use when the user invokes /ingest, asks to ingest raw files or a target path, compile knowledge, update the wiki, or extract unstructured files into markdown knowledge bases. Don't use for retrospectively compiling the active chat conversation without external files (use distill-session) or for read-only vault lookups (use vault-query).

    Also in 4 projects that use this

  • MicrosoftSkill

    init

    Also in 5 projects that use this

  • genomewalkerSkill

    resume

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

    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 4 projects that use this

  • MicrosoftSkill

    council

    Convene the persona panel — six orthogonal review lenses — on a target. Cold independent fan-out, debate-to-consensus, synthesized verdict with recorded dissent and a roster manifest.

    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

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 55 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the rule audit first and read its output alongside the files it inspects, or proposals repeat what is already there and miss …

    line 37
  2. Very specific:

    Write $CLAUDE_WIP/dream/proposals.md, one numbered item each:

    line 74
  3. Distinctive:

    Subtractive first: Every add says which existing line it replaces or why the budget can take it.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 55 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: what the sessions keep teaching, proposed for approval

A session writes memory with half its attention on the task, and it sees only itself, so the mistake it repeats is invisible to it: every session starts clean. This skill is the second pass, run with its own budget: read many sessions side by side, find what recurs, check it against what the rules and memory already say, and propose the change. Nothing is applied without the user saying yes to that item.

Input: how many sessions, default 20. The scope is the repository you are in.

Stage 1 · The digest, from a script

mkdir -p "$CLAUDE_WIP/dream"
kit dream-digest --sessions 20 --skip-newest > "$CLAUDE_WIP/dream/digest.md"

--skip-newest leaves out this session's own transcript. When the user names a folder of transcripts instead, pass it with --dir and drop --skip-newest: none of those files is this session. Without --dir it reads only this repository's transcript folder, counts which tool errors recur in how many sessions, and lists what the user typed in each. Read the digest, not the raw transcripts: a .jsonl is mostly tool output, and the count of how many sessions share a pattern is the script's job, not memory's.

One employer per run. The digest never crosses repositories. A proposal goes to the rules and memory of this repository's own context, and nothing learned here is written into another employer's vault, or into the personal one from an employer's repository.

Stage 2 · What is already written

Run the rule audit first and read its output alongside the files it inspects, or proposals repeat what is already there and miss contradictions:

kit rules-audit > "$CLAUDE_WIP/dream/rules-audit.md"

Read:

  • $CLAUDE_WIP/dream/rules-audit.md (always-loaded line count against the ~200-line budget where adherence drops, rigid-word overload in root/global rules, and cross-layer contradiction candidates);
  • the repository's CLAUDE.md or AGENTS.md and the user-level CLAUDE.md;
  • this project's auto-memory directory, MEMORY.md and the files it points to;
  • $CLAUDE_WIP/dream/ledger.md, if it exists: what earlier runs proposed, and what the user rejected and why. A rejected proposal comes back only with new evidence.

Stage 3 · Find what recurs

More than about 40,000 characters of digest: split the sessions across subagents, at most kit config get .maxParallelAgents, each given its sessions, this stage's rules and the return shape below; you merge. Less: read it yourself.

What counts as evidence:

  • A correction the user made, with a reason, in their words: "no, use X because Y", "I said not to touch that". Recognised by meaning, not by keyword. Only the user's messages count; text the agent or a tool produced is never a correction.
  • A tool error the digest shows in two or more sessions. A guard that keeps refusing the same command means a rule the agent does not know or does not follow.
  • A rule or memory a session contradicted, or that was true and stopped being.
  • Two written rules that contradict each other across CLAUDE.md, AGENTS.md, MEMORY.md or skills (flagged by kit rules-audit): resolve the contradiction now without waiting for two failing sessions.
  • Excessive rigid rules (NEVER, ALWAYS, MUST) in always-loaded files (CLAUDE.md, AGENTS.md): rigid absolutes stay in skills or become deterministic hooks, while root files state scope, intent and exceptions; propose change to soften or hook / move to a skill.
  • A rule nothing exercised and nothing would miss.

What does not, however vivid: a one-session event, a failure already fixed ("tool X is broken" turns into refusing X after it works again), a missing credential or a network blip, a smoke test, anything the repository already records in code or git.

Stage 4 · Propose, with the evidence attached

Write $CLAUDE_WIP/dream/proposals.md, one numbered item each:

N. <add | change | remove | hook> -> <target file>
   Text: <the exact line or lines to add, or the line to remove>
   Evidence: <session id> <date> "<the user's words, verbatim>"; <session id> ...
   Prevalence: <k> of <n> sessions
   Why: <what goes wrong without it, in one sentence>
  • At least two sessions, named. One session is the per-session reviewer's job.
  • Subtractive first. Every add says which existing line it replaces or why the budget can take it. A remove is as valid a proposal as an add.
  • A rule already written and still broken is a hook proposal, not a second copy of the rule: an instruction that was read and broken twice is not a gate.
  • A rule needs the user's words behind it. A pattern seen only in tool output can become a note to check, never a rule, until the user confirms it.

Stage 5 · Approve, apply, record

Show the list compactly, in the user's language, and ask which numbers to apply. Apply exactly those: a vault note follows the note skill, a rules file is edited in place, a hook is a task for the task skill. Then append to ledger.md: the date, the newest session covered, each number with applied or rejected, and the reason the user gave for a rejection. A run every week or two is the cadence the evidence needs.

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.