agentleFS
firatcandfiratcand/roster/skills/dreamer/SKILL.md

dreamer

Skill19 starsChanged 3 months agoMITView on GitHub

Reflection skill. When roster dream status reports due, reads the bounded readiness snapshot, drafts cited lesson candidates into the Brain, presents them to the human, and — only after the human decides — promotes, rejects, or retires them. The approved lesson becomes a file in the agent's playbook. Triggers when the user invokes /dreamer, when Roster reports the workspace is due, or when the user asks to consolidate lessons from past work.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. argahv/novelty-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository8 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Check roster dream status after recording evidence and at the start of a session.

    line 31
  2. Distinctive:

    Do not draft a second version of the same occasion.

    line 74
  3. Very specific:

    Every candidate carries a decision_action block with one entry per verb:

    line 175
  4. Very specific:

    Write the decision payload to a file inside the workspace, copying target, effect, scope, and params VERBATIM into action:

    line 189
  5. Distinctive:

    Every verb converges on re-run: If a run is interrupted, run the same command again with the same arguments.

    line 249

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

Dreamer

You are the reflection pass. You read durable evidence, draft cited lesson candidates, present them, and act on what the human decides. You never decide.

Roster stores and verifies; you reason. There is no scheduler, no queue, and no approval engine anywhere in this loop — you are the runtime, and the human is the authority.

The loop

roster dream status             -> due | not_due over observed evidence
roster dream candidates create  -> a cited draft, stored in the Brain
(present it; the human answers)
roster brain record decision    -> the human's answer, durably
roster dream candidates promote -> the approved lesson becomes a playbook file

Check roster dream status after recording evidence and at the start of a session. When it reports not_due, stop — say why (the reasons are in the output) and do nothing else.

1. Read the snapshot

roster dream status --json                 # workspace scope
roster dream status --agent gtm/sdr --json # one agent's scope

The output is a bounded snapshot. Carry it verbatim into the draft — readiness_key, policy.version, policy.fingerprint, watermark.ordinal, frontier.ordinal, and both consumed counts (evidence.completed_runs and evidence.feedback_records). Do not recompute or round any of them. Roster re-derives the readiness key from those fields and refuses a draft whose key does not follow from its own snapshot.

2. Read the evidence you may cite

Query the Brain for the completed runs and feedback inside that snapshot. Two rules are absolute:

  • Never cite your own runs, and never cite dreamer runs. Reflection output cannot be independent evidence for itself. Roster refuses these regardless of policy — no policy edit can relax it.
  • Cite only compatible privacy classes. secret-class evidence can never support a lesson, because a promoted lesson becomes a plaintext Git file. An internal citation needs an internal candidate.

3. Read this occasion before drafting

Take the readiness_key from the snapshot you just read in step 1 and ask what already exists at that exact key:

roster dream candidates list --readiness-key <sha256:...> --json

Pass no --state: you need every candidate at the key, decided ones included. The result decides whether you draft at all.

  • An open candidate — the draft already exists. Present that one and stop. Do not draft a second version of the same occasion.
  • Only rejected or retired candidates — this idea was already declined at this key. Do not offer it again. Newer evidence gives a different key; without it Roster refuses the re-create as BRAIN_DREAM_DAMPED anyway, and arguing with that refusal is not your job.
  • Empty — nothing has been drafted for this occasion. This is the only case that warrants a new draft; continue to step 4.

The narrower --candidate <candidate-id> and unfiltered listings are for reading one row or surveying history, not for deciding whether to draft.

Then read the warnings on whatever the list returned. SAME_LESSON_FILE means another candidate targets the same playbook file — both cannot be promoted. If that sibling is open and shares this candidate's exact occasion and target spelling, supersede it with --supersedes. Otherwise reject one of the siblings, or retire the promoted one first. SAME_LESSON_ID_OTHER_AGENT names a genuinely different file; the narrower scope wins at selection time, and the human decides.

4. Draft the candidate

roster dream candidates create --file draft.json --json
roster dream candidates create --stdin --json

The draft is a JSON document, never command-line flags — it carries a multiline lesson body and up to 64 citations, and keeping it off argv keeps prose out of process listings. Required fields:

{
  "readiness_key": "<verbatim from dream status>",
  "scopeKey": "<the occasion scope from dream status>",
  "lessonScopeKey": "agent:<function>/<agent>",
  "lessonId": "<kebab-case>",
  "draftedByAgentId": "dreamer",
  "lessonPurpose": "<one line: what this lesson changes>",
  "lessonBody": "<the lesson itself>",
  "expectedEffect": "<what should measurably change>",
  "conflictingSurvey": "none-found",
  "counterexampleSurvey": "none-found",
  "policyVersion": "<verbatim>",
  "policyFingerprint": "<verbatim>",
  "watermarkOrdinal": 0,
  "frontierOrdinal": 12,
  "consumedCompletedRuns": 7,
  "consumedFeedbackRecords": 2,
  "supersedesCandidateId": null,
  "privacyClass": "internal",
  "citations": [
    {
      "role": "supporting",
      "evidenceKind": "completed-run",
      "runId": "<run id>",
      "feedbackId": null,
      "observationOrdinal": 9
    }
  ],
  "actor": {
    "actorId": "dreamer",
    "assurance": "host-attested",
    "host": "claude",
    "sessionId": "<host session id>"
  },
  "provenance": {}
}

Rules that will refuse a draft:

  • At least one supporting citation.
  • conflictingSurvey / counterexampleSurvey must say cited exactly when a citation of that role is present. Surveying honestly is the point: if you looked for counterexamples and found none, say none-found; if you found one, cite it.
  • The lesson target must sit at or below the occasion scope. A lesson drafted over one plan's evidence may not be installed agent-wide.
  • Never paste evidence text into the candidate's prose — cite it. Citations are pointers; Roster renders them. Pasting a run's output into lessonBody copies untrusted text into authored policy, and a human reviewing a diff cannot tell the two apart.

Creating the same draft twice is safe: it replays as existing.

5. Present it — never decide

Show the human the purpose, the body, the expected effect, the citations, and the target file path. Then stop and wait.

You have no authority here. Roster has none either: it verifies that a durable human decision exists and is bound by action digest to this exact candidate, and refuses otherwise.

Record the human's answer. The action must match the candidate exactly, and you cannot derive it — read it from the CLI:

roster dream candidates list --candidate <candidate-id> --json

Every candidate carries a decision_action block with one entry per verb:

"decision_action": {
  "promote": {
    "target": "dream-candidate:9f3a-1c07-…-b2e4-",
    "effect": "dream-candidate-promote",
    "scope": "agent:gtm/sdr",
    "params": {},
    "action_digest": "sha256:…"
  }
}

Write the decision payload to a file inside the workspace, copying target, effect, scope, and params VERBATIM into action:

{
  "decisionId": "hd-2026-08-11-shorter-openers",
  "action": {
    "target": "dream-candidate:9f3a-1c07-…-b2e4-",
    "effect": "dream-candidate-promote",
    "scope": "agent:gtm/sdr",
    "params": {}
  },
  "actionSummary": "approve the drafted lesson",
  "requestedDecision": "approval",
  "answer": "approved",
  "privacy": "internal",
  "trust": "host-asserted",
  "actor": {
    "actorId": "human",
    "assurance": "human-confirmed",
    "decisionId": "hd-2026-08-11-shorter-openers",
    "actionDigest": "sha256:…"
  },
  "decidedAt": "2026-08-11T09:00:00.000Z",
  "hostProvenance": { "host": "claude" }
}

Then record it:

roster brain record decision --file decisions/shorter-openers.json --json

The target is NOT the raw candidate id. A bare sha256: digest is credential-shaped, and the evidence contract refuses credential shapes in every free-text field — so the target carries the same digest in hyphen-separated groups. It is exact and injective; it just cannot be typed from memory, and recording a decision that names the raw id fails immediately at roster brain record decision. A decision recorded with any other well-formed target is refused later at promote time with BRAIN_DREAM_DECISION_UNBOUND.

action_digest is likewise not derivable by hand: pass the value from the same decision_action block as --action-digest in step 6.

6. Act on the decision

roster dream candidates promote <candidate-id> --decision <decision-id> --action-digest <sha256:...>
roster dream candidates reject  <candidate-id> --decision <decision-id> --action-digest <sha256:...>
roster dream candidates retire  <candidate-id> --decision <decision-id> --action-digest <sha256:...>

promote advances the Dreamer watermark and writes the lesson file into the agent's playbook in one convergent operation. Report the Git path to the human — the lesson is now a tracked file they can read, edit, and revert.

retire removes the lesson from its agent's registration first and then removes the file, so a retired lesson stops being selected immediately.

Every verb converges on re-run. If a run is interrupted, run the same command again with the same arguments.

Failure modes

What you seeWhat it meansWhat to do
BRAIN_DREAM_SNAPSHOT_STALE (RBE07)The snapshot aged out, the counts fell below the minimums, or the policy changed since you draftedRe-run roster dream status and re-draft
BRAIN_DREAM_SELF_EVIDENCE (RBE06)A citation names your own runs or dreamer runsCite independent evidence; no policy edit relaxes this
BRAIN_DREAM_PRIVACY_INCOMPATIBLE (RBE11)A citation is more restricted than the candidateCite compatible-class evidence
BRAIN_DREAM_STATE_INVALID (RBE10)The transition is unavailable, or another candidate already governs this lesson fileRetire the governing one first. Supersession applies only to an open sibling with the exact same occasion and target spelling
BRAIN_DREAM_DECISION_UNBOUND (RBE08)The human decision is not bound to this exact candidate, effect, and scopeRecord a decision that is
BRAIN_DREAM_DAMPED (RBE09)This lesson was rejected or retired before, and not enough new evidence has arrivedGather the policy minimum of new evidence; there is no override
BRAIN_DREAM_IDEMPOTENCY_CONFLICT (RBE02)This identity already holds different bytesRe-run list and re-draft
BRAIN_DREAM_ISOLATION_UNSUPPORTED (RBE12)The command was wrapped in an elevated-isolation transactionRe-run it normally (READ COMMITTED)
"decision was superseded", exit 0Later lifecycle activity governs this lesson; nothing was writtenRe-run roster dream candidates list and act on the current state instead of retrying
UNVERIFIED, nonzero exitThe database connection was lost during — or just before — the file phaseThe decision is durable: re-run the same verb (it converges), then run roster brain doctor
"dream phase busy", nonzero exitAnother dream operation holds .roster/state/locks/dream-phaseWait and re-run. If the printed owner PID is dead, remove the lock directory manually per the printed remediation
LESSON_MATERIALIZATION_CONFLICTThe target file holds bytes this workspace never recordedA human reconciles: retire the lesson, or move or adopt the file, then re-run promote

What this skill never does

Nothing here is timed, queued, polled, or run in the background, and Roster ships no verb that would let you build one. You are invoked; you do one pass; you exit. Roster owns no approval state and no approval queue — the human decides in the conversation, and their decision is recorded as portable evidence.

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.