einargudnig/dotfiles/knowledge-system

Claude Code and agent skill by einargudnig/dotfiles

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Operate or fix Einar's knowledge pipeline — breadcrumbs, qmd recall, concierge, memory sync. Not for lookups.

Install

npx vskill@latest install einargudnig/dotfiles/knowledge-system

SKILL.md

The same SKILL.md was published earlier as einargudnig/dotfiles/knowledge-system.

Knowledge system — operations runbook

The single source of truth for how Einar's capture + recall + memory pipeline works. It is a runbook for the system, not a search tool — to find notes, use the concierge agent or let per-prompt recall surface them.

Keep this file factual and in sync with reality. A drifted runbook is worse than none — if you change a hook or knob, update the matching line here.

The loop (what fires, when, where it lives)

Everything lives in ~/dotfiles/claude/ and is symlinked into ~/.claude/ by dotfiles/claude/link.sh. Hooks are wired in dotfiles/claude/settings.json.

TriggerComponentDoes
SessionStart (startup/resume/clear)hooks/breadcrumb-briefing.pyInjects the newest breadcrumbs for the cwd's project (MAX_NOTES=4) + qmd BM25 knowledge hits (MAX_KNOWLEDGE=3, weak on bare repo names).
UserPromptSubmit (every prompt)hooks/qmd-recall.pyBM25 recall over the vault; injects up to MAX_HITS=3 notes. ~0.25s, fails open.
SessionEnd (clean exit only)hooks/breadcrumb-capture.pyAuto-/done: if the session is substantial and didn't already capture, spawns a detached claude -p that writes one breadcrumb.
SessionEndhooks/memory-autocommit.shCommits + pushes the private memory repo if changed (pushes whenever ahead, so missed pushes self-heal).
SessionEndhooks/qmd-refresh.shqmd update && qmd embed (detached) so the index never goes stale.
manual /done, /mementoskills/done, skills/mementoDeliberate breadcrumb (richer than auto-capture). /done ends the session.
manual /memento-defragskills/memento-defragArchives stale breadcrumbs to claude-breadcrumbs/_archive/.
on demandagents/concierge.mdSearches the whole vault via qmd to answer knowledge questions. The CLAUDE.md global rule tells the main agent to consult it.

All leftover hooks from the retired ~/memento vault (memento-triage.py, memento-sweeper.py, vault-commit.sh) were deleted 2026-05-28.

Where things are

  • Vault: ~/personal/obsidian/second-brain/ — claude-breadcrumbs/ (session logs), 80 slip-box/ (Zettelkasten knowledge), 40 reference/ + 60 reference/, weekly-reviews/, 30 planner/ (journal; excluded from recall).
  • qmd index: collection second-brain (the whole vault). Semantic search engine.
  • memento.yml: ~/.config/memento-vault/memento.yml — vault_path → second-brain; capture thresholds (exchange_threshold: 15, file_count_threshold: 3, notable_patterns).
  • Repos: public dotfiles (config only) ; private claude-memory = ~/.claude/projects/<home-slug>/memory/ (auto-memory; work/personal content). Never put work content in public dotfiles.

Invariants (decisions — don't silently break)

  • One vault. Capture goes to second-brain/claude-breadcrumbs/. The old ~/memento vault is RETIRED (tombstoned). Never write there or re-introduce the notes//projects/ atomic-note layout.
  • Public/private split. Config → public dotfiles. Work/personal notes, auto-memory, global CLAUDE.md → private (or local-only). The global CLAUDE.md is intentionally local-only (mentions Maul).
  • Clean exit required. All three SessionEnd hooks only fire on /quit, /clear, ctrl-D — NOT on a hard kill or closed window. A missed memory push / index refresh self-heals next clean exit; only that one session's breadcrumb is lost.

The knobs

  • Recall (hooks/qmd-recall.py): MIN_SCORE=0.5 (raise → quieter), MAX_HITS=3, MIN_PROMPT_LEN=16, MIN_KEYWORDS=2, STOPWORDS (the conversational-word filter), excludes archive/planner/excalidraw. Per-session de-dupe cache in $TMPDIR/qmd-recall-<session>.txt.
  • Briefing (hooks/breadcrumb-briefing.py): MAX_NOTES=4, MAX_KNOWLEDGE=3.
  • Capture substantiality (hooks/breadcrumb-capture.py via memento.yml): >15 exchanges, or >3 files, or touched a notable_patterns file.
  • Defrag (skills/memento-defrag): unchecked follow-ups stop protecting a breadcrumb after 60 days (the boxes are never ticked in practice).

qmd cheatsheet

bash
qmd search "terms" -c second-brain -n 8 --files # BM25, fast, AND-ish (see gotcha)
qmd vsearch "phrase" -c second-brain -n 8 # vector; slow (~5s, LLM expansion)
qmd query "phrase" -c second-brain -n 10 # best, but downloads a ~2GB model on first use
qmd update && qmd embed # refresh index (incremental)
qmd collection list # show collections + staleness

Gotcha: qmd search (BM25) is AND-based — one query word absent from a note drops the note entirely. That's why recall strips conversational words to content terms before searching. If recall misses obvious notes, suspect a stray word survived the STOPWORDS filter.

Troubleshooting

  • Recall too quiet / misses obvious notes → a non-content word survived STOPWORDS (AND-match killed it); add it. Or lower MIN_SCORE. Test: qmd search "<content terms>" -c second-brain --files.
  • Recall too noisy → raise MIN_SCORE, drop MAX_HITS, or add a path to the exclusions.
  • Concierge / recall returns nothing at all → index stale or empty. qmd collection list (check "Updated"), then qmd update && qmd embed. Confirm collection is named second-brain.
  • A SessionEnd thing didn't happen → did the session exit cleanly? Hard kills skip all SessionEnd hooks.
  • Auto-capture didn't write a breadcrumb → session wasn't "substantial," or /done//memento already captured (dedupe), or the detached claude -p is still running (it writes ~30s after exit; indexed next session).
  • `qmd query` hangs first time → it's downloading the ~2GB expansion model. Use search/vsearch meanwhile.

Extending it

  • Add a hook: drop the script in dotfiles/claude/hooks/, add an entry to settings.json, run dotfiles/claude/link.sh (it links new hooks automatically), commit + push.
  • New machine: git clone dotfiles → ./claude/link.sh. Then clone the private claude-memory repo into the memory path. Run qmd update && qmd embed once.
  • Change a knob: edit the constant in the relevant hook; update the Knobs section above.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/einargudnig/dotfiles/knowledge-system/badge)](https://verified-skill.com/skills/einargudnig/dotfiles/knowledge-system)

Something wrong with this skill or its page? Tell us.