/kb:research-reportfrom kb
Generates a markdown report from deep research results, reading JSON outputs and YAML config. Covers all fields and skips uncertain values. Useful for summarizing research into a structured document.
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.
Attribution: Originally authored by Weizhena. Included with attribution for use in the Deep query workflow.
/research-report
Read the vault's kb.yaml and extract the report_preferences: block. These are free-text prose instructions written by the user at init (kb-init §5.5) or via /kb-preferences. They control audience, register, depth, code handling, diagrams, self-containment, citations, and argument iteration for this report.
If the block is present: apply every field as an instruction to the prose you write in subsequent steps. Treat the field text literally — it is the working rule, not a keyword list. The Python generator script written in Step 3 should also respect these preferences (e.g., if depth asks for multi-paragraph per-item walkthroughs, emit the item template with multi-paragraph slots; if diagrams says ASCII-only, don't emit mermaid).
If the block is missing: fall back to factory defaults in plugins/kb/references/report-style-guide.md silently and include this line in the final report output:
No
report_preferencesset inkb.yaml— using factory defaults. Run/kb-preferences initto customize.
If kb.yaml itself is missing: tell the user to run kb-init and stop.
Per-task overrides. If the user's current request explicitly contradicts a stored preference ("make this one short", "skip the diagrams for this report"), follow the request for this report only. Do NOT modify kb.yaml — that's what the reflection step is for.
Find */outline.yaml in current working directory, read topic and output_dir configuration.
Read all JSON results and extract fields suitable for display in the table of contents (numeric, short indicators), such as:
Use AskUserQuestion to ask the user:
Generate generate_report.py in the {topic}/ directory with requirements:
{topic}/report.mdTable of Contents Format Requirements:
1. [GitHub Copilot](#github-copilot) - Stars: 10k | Score: 85%1. JSON Structure Compatibility Support two JSON structures:
{"name": "xxx", "release_date": "xxx"}{"basic_info": {"name": "xxx"}, "technical_features": {...}}Field lookup order: top level -> category mapping key -> traverse all nested dicts
2. Category Multilingual Mapping Category names in fields.yaml and JSON keys can be any combination (Chinese-Chinese, Chinese-English, English-Chinese, English-English). Must establish bidirectional mapping:
CATEGORY_MAPPING = {
"Basic Info": ["basic_info", "基本信息"],
"Technical Features": ["technical_features", "technical_characteristics", "技术特性"],
"Performance Metrics": ["performance_metrics", "performance", "性能指标"],
"Milestone Significance": ["milestone_significance", "milestones", "里程碑意义"],
"Business Info": ["business_info", "commercial_info", "商业信息"],
"Competition & Ecosystem": ["competition_ecosystem", "competition", "竞争与生态"],
"History": ["history", "历史沿革"],
"Market Positioning": ["market_positioning", "market", "市场定位"],
}
3. Complex Value Formatting
|<br> or use blockquote format for better readability4. Additional Field Collection Collect fields present in JSON but not defined in fields.yaml, put into "Other Information" category. Note filtering:
_source_file, uncertainbasic_info, technical_features, etc.uncertain array: display each field name line by line, don't compress into one line5. Uncertain Value Skipping Skip conditions:
[uncertain] stringuncertain arrayRun python {topic}/generate_report.py
After report.md is written, scan the conversation for preference signals — moments where the user corrected your approach, accepted a non-obvious style choice silently, or said "remember this" / "for every work I do, remember X".
Follow the Reflection Protocol defined in plugins/kb/skills/kb-preferences/SKILL.md:
report_preferences fields.[a] all / [n] none / [e] edit each / [1,3] subset.kb.yaml and append entries to .meta/_preference_history.md with trigger reflection after /research-report.Signal strength rules (from kb-preferences):
notes bullet instead.{topic}/generate_report.py - Conversion script{topic}/report.md - Summary report (styled per report_preferences: in kb.yaml)kb.yaml + one or more appended entries in .meta/_preference_history.md if the reflection step produced approved changesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 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./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.npx claudepluginhub rvk7895/llm-knowledge-bases --plugin kbOther plugins' skills for the same job