/kb:kb-initfrom kb
Bootstraps a new knowledge base as an Obsidian vault with Dataview, Obsidian Git, and optional plugins. Asks about vault path, source strategy, output formats, and maintenance cadence.
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.
One-time (or re-runnable) setup that bootstraps a knowledge base project as an Obsidian vault with full omni-document support.
Obsidian must be installed.
After confirming the vault path, run the bundled setup script via Bash tool:
# Interactive — asks user about each optional plugin
bash plugins/kb/setup.sh /path/to/vault
# Install everything
bash plugins/kb/setup.sh /path/to/vault --all
# Install specific plugins only
bash plugins/kb/setup.sh /path/to/vault --only dataview,obsidian-git
Required plugins (always installed):
Optional plugins (user chooses interactively):
Browser extension (printed as manual step):
raw/The script is idempotent — safe to re-run. If Obsidian is open, tell the user to restart it.
Ask: create a new vault or use an existing directory? If new, scaffold .obsidian/. If existing, verify it exists.
Ask how the user wants to get raw data in:
raw/. Per-type guidance:
raw/articles/raw/papers/raw/repos/raw/notes/raw/images/raw/transcripts/raw/transcripts/raw/articles/raw/datasets/raw/repos/raw/articles/Ask which formats the user wants: markdown (always on), Marp slides, matplotlib charts, HTML, CSV, Excalidraw, other. Use an extensible pattern so new formats can be added later.
Inform about options:
/loop (e.g., /loop 1d kb lint)/scheduleDetect and report availability of optional tools that enhance the system:
# Check each tool
which whisper 2>/dev/null && echo "whisper: available" || echo "whisper: not installed (needed for audio/video transcription)"
which ffmpeg 2>/dev/null && echo "ffmpeg: available" || echo "ffmpeg: not installed (needed for audio extraction from video)"
which yt-dlp 2>/dev/null && echo "yt-dlp: available" || echo "yt-dlp: not installed (needed for YouTube transcript fetching)"
python -c "import pptx" 2>/dev/null && echo "python-pptx: available" || echo "python-pptx: not installed (needed for slide extraction)"
python -c "import pandas" 2>/dev/null && echo "pandas: available" || echo "pandas: not installed (needed for dataset analysis)"
Report which media types are fully supported vs. which need manual input. Don't force installation — just inform.
Reports, wiki compilations, and query answers are written very differently depending on who the reader is, how much depth they want, and how they want code and references handled. Capture these preferences now so every report-generating skill can apply them.
Preferences live in kb.yaml under report_preferences:. Factory defaults are in plugins/kb/references/report-style-guide.md — read that file first to see the field list, defaults, and variants.
Ask the user these 5 open-ended questions (AskUserQuestion, one at a time):
audience field.register field.depth field.code_handling field.notes field, plus used to tweak diagrams / citations if a clear signal appears.For each answer:
plugins/kb/references/report-style-guide.md.### Default, ### Variant (formal), etc.).kb.yaml.If the user says "use defaults" / "I don't know" / skips a question — copy the ### Default variant for that field unchanged.
The three fields not asked about at init (self_containment, citations, argument_iteration) get their ### Default variants copied in unchanged. Tell the user these defaults are in place and can be updated later via /kb-preferences update <field>.
At the end of this section, briefly summarize the captured preferences back to the user and remind them:
These preferences are stored in
kb.yamlunderreport_preferences:. Skills will propose updates after reports based on your feedback — you'll approve before anything changes. You can edit them anytime via/kb-preferences.
kb.yamlWrite kb.yaml at project root with paths, output_formats, obsidian config, and an integrations section. Example:
project:
name: "My Knowledge Base"
description: "Knowledge base for [topic]"
paths:
raw: raw/
wiki: wiki/
output: output/
raw_articles: raw/articles/
raw_papers: raw/papers/
raw_repos: raw/repos/
raw_notes: raw/notes/
raw_images: raw/images/
raw_transcripts: raw/transcripts/
raw_datasets: raw/datasets/
source_strategy: mixed # self-serve, assisted, or mixed
# Auto-save web pages fetched during any workflow (compile, query, evolve)
# Only saves pages that actually contributed to the output
auto_capture_web: true
output_formats:
- markdown
# - charts
# - html
# - marp
# How reports, wiki compilations, and query answers should be written.
# Populated from the 5 init questions + factory defaults in
# plugins/kb/references/report-style-guide.md. Free-text fields — skills
# read them as instructions, not parse them as keywords. Updatable via
# /kb-preferences or by hand-editing.
report_preferences:
audience: |
<<FILL: style-guide "audience" variant matching user's Q1 answer, tweaked with their phrasing>>
register: |
<<FILL: style-guide "register" variant matching user's Q2 answer>>
depth: |
<<FILL: style-guide "depth" variant matching user's Q3 answer>>
code_handling: |
<<FILL: style-guide "code_handling" variant matching user's Q4 answer>>
diagrams: |
<<FILL: style-guide "diagrams" default, unless Q5 signaled otherwise>>
self_containment: |
<<FILL: style-guide "self_containment" default>>
citations: |
<<FILL: style-guide "citations" default; use "external" variant if audience is publication>>
argument_iteration: |
<<FILL: style-guide "argument_iteration" default>>
notes: |
<<FILL: Q5 "anything else" answer verbatim, or leave empty if none>>
maintenance:
manual: true
scheduled: false
obsidian:
vault_path: /path/to/vault
recommended_plugins:
- Web Clipper
- Dataview
- Obsidian Git
integrations:
smaug:
path: null # set automatically when Smaug is installed
# Optional tool availability (auto-detected during init)
tools:
whisper: false
ffmpeg: false
yt_dlp: false
python_pptx: false
pandas: false
# Entity types recognized by the system
entity_types:
- concept
- method
- model
- tool
- benchmark
- dataset
- person
- phenomenon
- moc
# Maturity model
maturity:
seedling_max_age_days: 30 # lint warns after this
budding_min_words: 300
budding_min_sources: 2
evergreen_min_words: 800
evergreen_min_sources: 3
# MOC auto-generation threshold
moc:
min_articles_per_category: 5
When the user sets up Smaug (during init or later), save the install path here. The kb skill reads this to find Smaug without searching every time.
Create:
raw/articles/, raw/papers/, raw/repos/, raw/notes/, raw/images/, raw/transcripts/, raw/datasets/wiki/output/.meta/ — dotfolder holding index/meta files. Must start with . — Obsidian ignores all dot-prefixed files and folders the same way it ignores .obsidian/ itself, so meta files do not appear as graph nodes, search hits, or quick-switcher entries. Renaming this to meta/ or _meta/ would cause every meta file to show up as a huge hub in the graph..obsidian/ if creating a new vaultMeta files live in .meta/ (NOT wiki/). They are read/written by the kb skill but invisible to Obsidian.
.meta/_index.md:
---
title: "Wiki Index"
updated: YYYY-MM-DD
---
# Wiki Index
Master index of all wiki articles with source hashes for incremental compilation.
<!-- Categories will be added automatically as articles are compiled -->
.meta/_sources.md:
---
title: "Source Mapping"
updated: YYYY-MM-DD
---
# Source Mapping
Mapping from raw sources to wiki articles they contributed to.
| Source | Type | Wiki Articles |
|--------|------|---------------|
<!-- Entries added automatically during compile -->
.meta/_categories.md:
---
title: "Category Tree"
updated: YYYY-MM-DD
---
# Category Tree
Auto-maintained category hierarchy.
<!-- Categories created automatically as articles are compiled -->
.meta/_evolution.md:
---
title: "Evolution Log"
updated: YYYY-MM-DD
---
# Evolution Log
Append-only log of auto-evolve actions.
| Date | Trigger | Action | Articles Affected |
|------|---------|--------|-------------------|
<!-- Entries added automatically by auto-evolve -->
.meta/_preference_history.md:
---
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 |
|------|-------|---------|-----------|
<!-- Entries added by kb-preferences or reflection steps -->
.meta/_tags.md:
---
title: "Tag Vocabulary"
updated: YYYY-MM-DD
---
# Tag Vocabulary
Canonical tag vocabulary for the wiki. All article tags must come from this list. See the kb skill's Tag Hygiene section for the namespacing rules.
## domain/* — broad subject area
<!-- Populated as articles are compiled -->
## method-family/* — class of technique
<!-- Populated as articles are compiled -->
## status/* — maturity mirror
- `status/seedling`
- `status/budding`
- `status/evergreen`
## Other
- `moc` — Map of Content pages
CLAUDE.md -- project instructions for future sessionsREADME.md -- repo docs with prerequisites, setup, workflows, directory structure, and attribution for research skillsTell user what to do next: add sources, compile, and list available workflows (compile, query, lint, evolve, reflect).
Mention omni-document support: "You can add PDFs, images, videos, audio, slides, code repos, datasets, notebooks, tweets, YouTube links, or any web URL to the raw/ directory. The compile workflow will automatically detect the type and extract knowledge."
kb.yaml without confirming with the user first..obsidian/ inside a directory that is already an Obsidian vault..meta/_evolution.md -- it's needed for auto-evolve logging..meta/_preference_history.md -- it's needed for the reflection loop to log preference changes.report_preferences: block, downstream skills fall back to silent defaults and the user has no way to steer output style.# picked from ...) as literal values into kb.yaml -- replace each stub with the actual free-text preference string from the style-guide variant.wiki/. They belong in .meta/ at the vault root. Files inside wiki/ are indexed by Obsidian and will become graph nodes. The .meta/ dotfolder is the structural guarantee that meta files stay out of the graph, search, and file explorer regardless of user settings..meta/ to meta/ or _meta/. The leading dot is load-bearing — that's what makes Obsidian skip the folder.wiki/ (wiki/_index.md etc.), move them to .meta/ with the same filenames as part of init or the next compile.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-preferencesUse when user wants to view, update, reset, or audit report preferences stored in vault kb.yaml. Triggers on '/kb-preferences', 'update report prefs', 'change report style', 'my preferences', or when a passive reflection step in another skill needs to propose preference updates./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