duyet/kb · Archived

kb-dream

Consolidate the shared-brain knowledge base (~/kb) — the "dream" pass.

First seen Jun 4, 2026

Installation

$ npx skills add duyet/kb --skill kb-dream

Summary

  • Consolidate the shared-brain knowledge base (~/kb) — the "dream" pass.
  • Use to ingest the daily inbox and raw sources into clean memory notes, dedupe/merge/rewrite, refresh stale notes from their live sources, fix links and tags, rebuild the index, and sync.
  • Run manually, on a schedule, or whenever the kb feels noisy.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from duyet/kb.

npx skills add duyet/kb

Browse all from duyet/kb

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
Default branch main
Open issues 1
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,805 B
  • docs SUMMARY.md 336 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

kb-dream

Run the memory-consolidation pass. Location is configurable: use $KB_DIR or kb root (default ~/kb).

Procedure

Read $KB_DIR/DREAM.md and execute it end to end. In summary:

  1. Load MEMORY.md, all memory/**/*.md (recursive — excluding reserved

index.md, log.md, _TEMPLATE.md), raw/inbox/*, raw/ source docs, and .agent/state.json.

  1. Ingest & rewrite: promote durable/general/public facts from the inbox and

un-processed raw/ docs into memory/ — create new notes or rewrite/merge existing ones. Then delete consumed inbox files; keep source docs and record them in state.json.processed.

  1. Dedupe & merge; split multi-fact notes; validate frontmatter against the

standard (kb lint); compact to ≤~25 lines.

  1. Refresh: for notes with sources: whose timestamp/updated: is stale

(>~30 days), fetch the source (prefer llms.txt) and update the note + updated: + timestamp.

  1. Relink (no orphans), merge tag sprawl, prune wrong/obsolete/now-private notes.
  2. Rebuild MEMORY.md; run kb gen to regenerate every memory/**/index.md

(OKF listings) + viz.html; append a dated entry to memory/log.md; verify scope (no secrets).

  1. Set state.json.last_dream to today; run kb sync.

Principles

Lossless of meaning, atomic, retrieval-first, conservative deletes, idempotent. Pair with kb-memory for the read/write protocol.