Home / Market / dream queue

dream queue

End-of-day review that turns the project's real state into a short, prioritized plan for tomorrow morning. Invoke it before writing any end-of-day summary, wrap-up, handoff or next-day plan, when the user is done for the night ("before bed", "done for today", "wrap up", "what should I start with tomorrow", "buenas noches", "cierro por hoy", "me voy a dormir"). Also use the next morning ("good morning", "where was I", "what's first today") to reload the last plan and check it still holds.

skill★ 347410 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: dream-queue description: End-of-day review that turns the project's real state into a short, prioritized plan for tomorrow morning. Invoke it before writing any end-of-day summary, wrap-up, handoff or next-day plan, when the user is done for the night ("before bed", "done for today", "wrap up", "what should I start with tomorrow", "buenas noches", "cierro por hoy", "me voy a dormir"). Also use the next morning ("good morning", "where was I", "what's first today") to reload the last plan and check it still holds.

---

Dream Queue

A shutdown ritual for a code project. At night: gather evidence, close open loops, pick at most three priorities for tomorrow and write them where tomorrow's session will find them. In the morning: reload that plan and check it against what changed overnight.

Requirements: git, and optionally the GitHub CLI (gh) logged in, for PRs, reviews, issues and CI. Without gh the review still works from git alone.

It complements Claude Code's built-in auto-dream, which consolidates memory files in the background. This skill plans work; it does not edit memory, CLAUDE.md or code.

Rules

Night mode

1. Gather evidence

Run the read-only collector from the repository root:

bash <skill-dir>/scripts/gather.sh "24 hours ago"

<skill-dir> is this skill's folder (the base directory shown when the skill loaded). Pass a wider window ("3 days ago") when the previous dream is older than a day. The script prints: branch and upstream, rebase/merge in progress, uncommitted files, stashes, the user's own commits in the window and who else committed, unpushed branches, worktrees, TODO/FIXME lines the user added, the previous dream, plan-like files (TODO.md, ROADMAP.md, HANDOFF.md) and, when gh is installed and logged in, the user's open PRs with failing checks and review state, PRs waiting for their review, issues assigned to them and recent CI on the default branch.

Then add what the script cannot see:

  1. This session. What was asked, what got done, what was decided and why, what was tried and failed (dead ends save tomorrow an hour), and anything the user said they would do.
  2. The project's own rules. Skim CLAUDE.md (and AGENTS.md) for release, deploy or review steps that turn a finished change into a pending action: "run X after merging", "deploy by hand", "regenerate the catalog".
  3. Long-running things. Dev servers, watchers, background jobs or cloud sessions started today that are still running.
  4. Notes from memory. Facts from CLAUDE.md or auto memory count as evidence only if you re-checked them tonight; otherwise mark them (from memory, not rechecked).
  5. Facts the user knows and the repo doesn't. If something big is unclear (a deadline, a meeting, a promise to someone), ask one question. Do not ask more than one; a dream is not an interview.

If the directory is not a git repository, skip step 1 and work from the session and the project's notes.

2. Close the loops

Sort everything you found into these buckets. Each finding goes in exactly one.

3. Pick tomorrow's priorities

Choose at most three, in this order of precedence:

  1. Anything in Risk tonight the user did not fix before closing.
  2. Waiting on the user: unblocking someone usually beats one's own work.
  3. Deadlines due before the next dream.
  4. In flight work whose context is freshest today.
  5. Important, not urgent, so it does not wait forever.

Break ties by the smallest first step. For each priority write:

If nothing deserves to be a priority, say so. An honest "tomorrow is open" beats an invented task.

4. Write the dream file

Write .dreams/YYYY-MM-DD.md at the repository root (date of the night it is written; add -2, -3 if a file for tonight exists) using the template in references/dream-template.md. Record the branch and short HEAD so the morning check can see what moved.

If the collector printed dreams_ignored_by_git: no, also write .dreams/.gitignore containing the single line *, so the folder ignores itself and the plans never end up in a commit. (.dreams/ and not .claude/dreams/: Claude Code asks for approval on every write under .claude/ and .git/, which is the wrong moment for a prompt.) If the write is refused, put the plan in the chat and say where it would have gone.

5. Reply and stop

Reply in this shape, nothing more:

Risk tonight: <only if any; one line each with the fix command>

Tomorrow (YYYY-MM-DD):
1. <What> — first move: <first move>
2. ...
3. ...

Parked: <comma-separated, short>
Plan saved in .dreams/YYYY-MM-DD.md

End with one short closing line that marks the day as over (Cal Newport ends his shutdown ritual with a fixed phrase for the same reason). Do not offer to start any of the work now.

Morning mode

When the user opens the day and a dream file exists:

  1. Read the newest file in .dreams/.
  2. Run the collector with the window since that file's date and compare: new commits on the recorded branch, PRs merged or reviewed overnight, CI that turned red or green, new review requests.
  3. Mark each priority as still valid, already done (point to the evidence) or changed (say what changed). Promote anything new that outranks the plan by the precedence above.
  4. Show the updated list of at most three and the first move of number one. Ask nothing else; let the user start.

If no dream file exists, say so in one line and offer to run a quick night-mode review of the last 24 hours.

Quality check before saving