kb
Manage an Obsidian-based AI knowledge vault with /kb add/find/process-pending/compile/health/tidy/add-video.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Manage an Obsidian-based AI knowledge vault with /kb add/find/process-pending/compile/health/tidy/add-video.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | kb |
| description | Manage an Obsidian-based AI knowledge vault with /kb add/find/process-pending/compile/health/tidy/add-video. |
Manage the knowledge/ directory in this repository as a reusable AI knowledge vault.
/kb process-pending/kb add [content or URL]/kb find [query]/kb add-video [file-or-directory]/kb compile/kb health/kb tidyknowledge/*.md file by default; start from knowledge/_index.mdknowledge/## 原始内容knowledge/concepts/ as the primary navigation layer and knowledge/reports/ as reusable query output/kb add and /kb process-pending use the same ingestion action: first produce a pending Markdown source with frontmatter, then create the normalized entry, update the index, and archive the source/kb process-pendingProcess files in knowledge/inbox/manual/pending/ and turn them into structured entries.
Expected behavior:
knowledge/_index.md first for existing tags and concepts我的思考knowledge/YYYY-MM-DD-title.mdknowledge/_index.mdknowledge/inbox/manual/processed/ or review/ when uncertainThis workflow is handled directly by the agent, not by a Python CLI command.
/kb addAdd a single piece of knowledge from text, notes, or a URL.
Expected behavior:
defuddle parse "<URL>" --md -o "knowledge/inbox/manual/pending/YYYY-MM-DD-short-title.md"
If title or domain metadata is needed, use:
defuddle parse "<URL>" -p title
defuddle parse "<URL>" -p domain
The pending file must include frontmatter:
datesourcesource_typesource_urltags (can start as an empty list and be finalized during ingestion)confidence: rawKeep the full Defuddle Markdown output as the body without truncation.
3. If the input is pasted text or notes, also write it first to knowledge/inbox/manual/pending/YYYY-MM-DD-short-title.md with the same frontmatter and full original body
4. Process the new pending source using the same action as /kb process-pending:
knowledge/_index.md for existing tags, concepts, and recent entries我的思考knowledge/YYYY-MM-DD-title.md## 原始内容knowledge/_index.mdknowledge/inbox/manual/processed/Fallbacks:
defuddle is not installed, install it with npm install -g defuddle-cliconfidence: raw and move it to knowledge/inbox/manual/review/review//kb findSearch the knowledge vault and optionally generate a reusable report.
Command:
python3 .claude/skills/kb/scripts/knowledge_ops.py find "context engineering"
Output should prioritize:
/kb add-videoTranscribe local video or audio files, lightly clean the transcript, and create knowledge entries.
Prerequisites:
pip3 install dashscopeffmpeg and ffprobe available on the machine.claude/skills/kb/config.example.json to .claude/skills/kb/config.local.json and fill in dashscope_api_key
or set DASHSCOPE_API_KEYDefault input directory:
knowledge/inbox/video/raw/Command:
python3 .claude/skills/kb/scripts/video_ingest.py [path]
Outputs:
knowledge/inbox/video/transcripts/*.raw.txtknowledge/inbox/video/transcripts/*.clean.txtknowledge/inbox/video/transcripts/*.meta.jsonknowledge/inbox/video/logs/ingest.logknowledge/Quality rules:
核心观点 blank for the current agent to fill in later/kb compileCompile timeline entries into concept pages, related links, index, and Bases view.
Command:
python3 .claude/skills/kb/scripts/knowledge_ops.py compile
/kb healthGenerate a health report for isolated entries, concept gaps, stale raw files, and report coverage.
Command:
python3 .claude/skills/kb/scripts/knowledge_ops.py health
/kb tidyNormalize tags and rebuild concepts, index, health report, and Bases view.
Command:
python3 .claude/skills/kb/scripts/knowledge_ops.py tidy
find, compile, or health fail to locate the repo root, set KB_ROOT=/absolute/path/to/repoadd-video fails, verify dashscope installation, API key config, and ffmpeg availability