MCPInstall
davidlee avatar

dreaming

Unified memory corpus maintenance — covers both reactive (change-triggered) and proactive (periodic/idle-time improvement) paths. One skill, two entries.

Installs
135
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/davidlee/doctrine --skill dreaming
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads dreaming automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Dreaming

Memory decays. Files move, commands change, invariants shift, duplicates accumulate. This skill is the maintenance loop that keeps the corpus trustworthy — one procedure, entered from either direction.

Reactive entry. Something changed: a file was renamed, a command flag was removed, an ADR shifted a subsystem boundary, a code review found stale memories referencing old paths. Run the procedure scoped to the affected area.

Proactive entry. Idle time, end-of-slice wrap-up, or a scheduled maintenance window. Run the procedure corpus-wide.

Procedure

  1. Validate. Run doctrine memory validate corpus-wide (reactive: scope with --path-scope/--glob to the changed area). Triage each finding:

    • Fix immediately if trivial (update a path, refresh a scope)
    • Capture as a backlog item if non-trivial (risk, chore, or improvement)
    • Note and defer if low-impact and not time-sensitive
  2. Prune. Identify stale memories:

    • Past review_by date → flag for review or archive
    • Unverified threads past expiry → archive (memory status <REF> archived)
    • working-lifespan memories older than a few days → retract or promote to a durable type
    • Run doctrine memory status <REF> archived for stale items; use retracted for memories that were simply wrong.
  3. Link. Strengthen the graph:

    • Review suggested relations on recently-recorded or recently-edited memories (check memory show <REF> for relation rows)
    • Check for orphans — memories with no inbound and no outbound relations memory list --orphans
    • If there are orphans, focus on these - linking 20-30 records this run
    • If there aren't, explore the corpus and strengthen / prune connections between existing memories
      • use memory search <keyword> to find candidate memories for linking; it returns one page, so sweep with --limit / --page
    • Run doctrine link for high-confidence matches
  4. Backlog grooming. Findings that can't be fixed in this pass become backlog items:

    • Risks for not-yet-surfaced issues (e.g., a memory pointing at a deprecated API)
    • Chores for cleanup work (e.g., merging duplicate memories)
    • Improvements for enhancements (e.g., promoting a pattern memory to a spec)
  5. Fact-check. Spot-check the top-N memories by severity × staleness (days since updated). For each:

    • Check the cited source (code path, doc, ADR) against the current tree
    • If correct, no action
    • If drifted, correct with doctrine memory edit <REF>
    • If obsolete, supersede (memory status <REF> superseded --by <SUCCESSOR>) or quarantine (memory status <REF> quarantined)
    • If unverifiable, lower trust (memory edit <REF> --trust low)
  6. Report. Produce a brief handoff summary:

    • Actions taken (validated N, pruned M, linked L, fact-checked F)
    • Findings deferred to backlog (with ids if filed)
    • Items flagged for human attention (high-severity, ambiguous, needs decision)
    • Write this to notes.md or the active handover so the next agent doesn't re-do the same checks.

FAQ

What does the dreaming skill do?

Unified memory corpus maintenance — covers both reactive (change-triggered) and proactive (periodic/idle-time improvement) paths. One skill, two entries.

How do I install dreaming?

Run npx skills add https://github.com/davidlee/doctrine --skill dreaming in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/dreaming/ (personal) or .claude/skills/dreaming/ (project).

Which AI agents can use dreaming?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is dreaming safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains dreaming?

It is published by davidlee in davidlee/doctrine. It has 135 recorded installs.

More from davidlee/doctrine

View all →
davidlee avatar

code-review

davidlee/doctrine

Use whenever reviewing code for quality and correctness — a diff, PR, module, or subsystem — producing verified, severity-ranked findings on the RV ledger. Not for comprehension tours (walkthrough) or doctrine-conformance hunts (inquisition, user-invoked only).

davidlee avatar

pair

davidlee/doctrine

Agentic pair programming — drive a change together with a human partner in the loop, narrating intent and pausing at decision points. Use when the user wants to work side-by-side rather than hand off a whole task. Calibrated by three dials (role, detail, autonomy) and an always-on challenge mandate.

AI & Agents148 installs
davidlee avatar

consult

davidlee/doctrine

Use the moment you hit an unanticipated obstacle, a decision with competing tradeoffs, or emergent complexity mid-task — before adapting planned scope, adding a dependency, taking a shortcut, or making any impactful concession on your own.

davidlee avatar

handover

davidlee/doctrine

Use when handing work to a fresh context — first bring the durable harvest current, then emit a continuation at one of two weights — a printed continuation prompt (light) or a handover.md context packet (full). Use whenever a fresh agent would more efficiently continue.

AI & Agents146 installs
davidlee avatar

canon

davidlee/doctrine

Use before making architectural or workflow choices, when correctness depends on project governance, or when entering an unfamiliar subsystem — to load the project's authoritative rules before you act on assumptions.

davidlee avatar

retrieve-memory

davidlee/doctrine

Use before making non-trivial assumptions — before touching a subsystem you have not this session, before running or changing a command pipeline, when code and docs conflict, when asked "what is the right way here?", when debugging a recurring failure, or when about to answer with "probably/usually/likely".

Popular other skills

View category →
heygen-com avatar

hyperframes-cli

heygen-com/hyperframes

The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.

1.7M installs
mattpocock avatar

triage

mattpocock/skills

Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

1.1M installs
mattpocock avatar

ask-matt

mattpocock/skills

Ask which skill or flow fits your situation. A router over the skills in this repo.

877.3K installs
mattpocock avatar

to-questionnaire

mattpocock/skills

Turn a decision you can't fully answer into a questionnaire for someone else to fill in.

605.3K installs
mattpocock avatar

wait-what

mattpocock/skills

Stop. That last message did not land: re-pitch it.

556.8K installs
mattpocock avatar

loop-me

mattpocock/skills

Grill me about specs for the workflows I want to build, within this workspace.

518.8K installs