/kb:kb-preferencesfrom kb
Manages report preferences stored in kb.yaml — view, update, reset, or audit settings for audience, tone, depth, diagrams, and more. Invoked via /kb-preferences or when another skill proposes updates.
Ships in kb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Manage the report_preferences: block in the vault's kb.yaml. This is a free-text preference store — each field is a prose instruction string that research-report, kb compile, and kb query read when generating output. Factory defaults come from plugins/kb/references/report-style-guide.md, which is consulted only at init / reset time.
Update path in three places:
/kb-preferences ... explicitly — this skill.kb.yaml — no skill involvement.Every write confirms with the user first and logs the change to .meta/_preference_history.md. The kb.yaml and the history file are the only two places state lives.
kb.yaml exists at the vault root. If missing, tell the user to run kb-init and stop.plugins/kb/references/report-style-guide.md exists (plugin-shipped; should always be present)..meta/_preference_history.md exists. If missing, create it with the template below before any write.All fields under kb.yaml → report_preferences::
| Field | What it controls |
|---|---|
audience | Who the report is written for; framing, polish, hedging |
register | Tone, sentence style, vocabulary |
depth | Items-covered × per-item-depth tradeoff |
code_handling | Inline vs linked vs walkthrough, scaled by codebase count |
diagrams | ASCII / mermaid / prose / tables |
self_containment | Glossing, mini-profiles, no appendix deferrals |
citations | arXiv-style rigor vs loose references |
argument_iteration | Draft → advisor → verifier loop + "where this might be wrong" |
notes | Free-form addendum; grows via reflection |
The skill detects mode from user invocation. Parse the arguments after /kb-preferences:
| Invocation | Mode | Action |
|---|---|---|
/kb-preferences (bare) | interactive | Show current prefs, ask what to update |
/kb-preferences init | init | Re-run the 5 init questions, regenerate all fields from style-guide + user answers |
/kb-preferences update <field> | update-one | Focus on one field; re-ask matching question or accept free-text |
/kb-preferences add-note "..." | add-note | Append the quoted string as a new line/paragraph under notes: |
/kb-preferences reflect | reflect-now | Run the reflection step against the current conversation explicitly |
/kb-preferences review | review | Print current report_preferences: block read-only |
/kb-preferences reset <field> | reset-one | Copy factory default for one field; confirm first |
/kb-preferences reset-all | reset-all | Full reset to defaults; confirm first |
/kb-preferences history | history | Print .meta/_preference_history.md |
kb.yaml report_preferences: section./kb-preferences init first and stop.Same flow as kb-init §5.5. Ask the 5 open-ended questions (see kb-init SKILL.md for the exact phrasing):
audienceregisterdepthcode_handlingnotes (+ opportunistic tweaks to diagrams / citations if signaled)For each answer, open plugins/kb/references/report-style-guide.md, pick the best-matching variant, optionally weave in user phrasing, write to the corresponding field in kb.yaml.
Fields not asked at init (self_containment, citations, argument_iteration) get their ### Default variants unchanged unless question 5 signaled a change.
Confirm the full assembled block with the user before writing. Show the block, ask "Write this to kb.yaml? [y/n/edit]". On edit, let them hand-revise the text.
Log each changed field to .meta/_preference_history.md.
notes, prefer add-note mode.kb.yaml and log to history.notes: field.Explicit reflection against the current conversation. Used when the user wants to force a pass.
If no signals, say so and exit.
Read-only. Print the full report_preferences: block, each field shown in full (no truncation). No changes.
plugins/kb/references/report-style-guide.md, pull the ### Default variant for that field.kb.yaml, log reset-one trigger in history.reset-all.Print .meta/_preference_history.md. If missing, say "No history yet" and create the file per the template below.
Called in two situations:
reflect-now mode (user explicit)research-report, kb compile, or kb queryAlgorithm:
Scan the conversation for signals across these categories:
Map each signal to a specific report_preferences field.
registerdepthcode_handlingcitationsdiagramsself_containmentargument_iterationaudiencenotesPropose concrete edits, not abstract advice. For each signal, show:
Signal: "<short paraphrase of what user said or did>"
Field: <field_name>
Current (excerpt): "<~60 chars>..."
Proposed (excerpt): "<~60 chars with the change>..."
Present proposals as a numbered list and ask:
Apply these changes to kb.yaml?
[a] all [n] none [e] edit each one [1,3] just those
On apply: write accepted changes to kb.yaml, append entries to .meta/_preference_history.md.
If no signals found: skip silently unless mode is reflect-now (in which case say "no signals detected").
register with 40 forbidden words from one session). Keep field text under ~400 words; if a field is bloating, start a new notes bullet instead..meta/_preference_history.md format---
title: "Preference Change History"
updated: YYYY-MM-DD
---
# Preference Change History
Append-only log of changes to `report_preferences` in `kb.yaml`.
| Date | Field | Trigger | Old → New |
|------|-------|---------|-----------|
| 2026-04-21 | register | user (/kb-preferences update) | "Plain..." → "Plain and very short..." |
| 2026-04-22 | notes | reflection after /research-report | (empty) → "Per-item profiles max ~150 words" |
Triggers to use in the Trigger column:
user (/kb-preferences <mode>) — explicit user invocationuser (init) — first-time setup during kb-initreflection after <skill> — reflection step from research-report / kb compile / kb queryreset-one / reset-all — factory default restorehand-edit detected — if future tooling notices the user directly edited kb.yaml (not implemented now; reserved trigger)For each write:
... if truncated.(unset). If a field is cleared, new value is (empty).updated: frontmatter to the current date.notes as a dumping ground. Apply the signal to the specific field if one fits; only fall back to notes if no field matches.notes bullet instead.plugins/kb/references/report-style-guide.md at report-generation time. That file is only consulted by this skill and kb-init, at init / reset time. Report-generating skills read kb.yaml.kb.yaml fields. The field names are a contract with the other skills (research-report, kb). Do not rename..meta/_preference_history.md. If the file is missing, create it from the template.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rvk7895/llm-knowledge-bases --plugin kb8 skills in this plugin
/kbUse when compiling raw sources into the wiki, querying the knowledge base, running health checks or lint on the wiki, evolving or improving wiki coverage, or when user says 'compile', 'update the wiki', 'query', 'lint', 'health check', 'evolve', 'what's missing', or 'suggest improvements'. Also triggers on questions that should be answered from the knowledge base./kb-initUse when setting up a new knowledge base, bootstrapping an Obsidian vault, or when user says 'init kb', 'new knowledge base', 'create kb', or 'setup vault'. Triggers on any request to initialize or scaffold a knowledge base project./researchResearch Skill - Preliminary ResearchConduct preliminary research on a target topic and generate a research outline. Used for academic research, benchmark research, technology selection, and similar scenarios./research-add-fieldsResearch Add Fields - Add Research FieldsAdd field definitions to existing research outline./research-add-itemsResearch Add Items - Add Research SubjectsAdd items (research subjects) to existing research outline./research-deepResearch Deep - Deep ResearchRead research outline and launch independent agents for in-depth research on each item. Task output disabled.Other plugins' skills for the same job