/kb:dream runs instead · from kb
Consolidates a markdown knowledge base by merging near-duplicates, flagging contradictions, pruning stale notes, ingesting the inbox, refreshing from sources, and rebuilding the index.
This skill never runs in Claude Code
It ships in kb at skills/, but /kb:dream (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Maintenance pass for a markdown KB. Show a diff of every proposed change and apply nothing until the user approves, unless run with --auto. If the KB ships DREAM.md or AGENTS.md, read it first and follow its note format, tags, and sync steps.
dream [<path>]: path, else $KB_DIR, else ask.dream --auto [<path>]: no prompts. Apply merges and prunes, skip contradictions.dream forget "<query>" [<path>]: propose deleting matching notes. Pinned notes need per-note confirmation.A note is *.md with YAML frontmatter: name (equals filename stem), description, type, tags, created, updated, optional sources, pinned, confidence (0 to 1). Filenames are <type>-<slug>.md. No nested metadata: blocks.
The pass:
raw/inbox/*: promote durable, general facts to notes, delete the inbox files, keep raw/ sources.type, never pinned ones. Lose words, not facts.sources: are over 30 days old (prefer llms.txt, bump updated, skip offline).pinned: true. Retention days: feedback 180, tech 365, unknown 90, user, project, reference forever (overridable by a retention: map in state).[[slug]] links, give every note a link, fold tag sprawl into the existing vocabulary.MEMORY.md grouped by type, one line each: [Title](<file>) - hook. Descriptions must let an agent judge relevance from the index alone.last_dream in state to today.With nothing to change print Dream complete. Nothing to change. Never push automatically. Run the KB's sync step only if the user confirms. A second run must change nothing.
Auto mode takes a lock at ${TMPDIR:-/tmp}/dream_auto.lock (skip if under 10 minutes old, remove on every exit), prints [dream --auto] kb=<path> merged=<N> pruned=<N> conflicts_skipped=<N>, and leaves one source: dream-auto reminder note when conflicts were skipped.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub duyet/codex-claude-plugins --plugin kbOther plugins' skills for the same job