/karpathy-llm-wiki:kb-initfrom karpathy-llm-wiki
Initialize a new knowledge wiki in the current directory
Ships in karpathy-llm-wiki. Installing the plugin adds it to Claude Code.
You are the knowledge base initializer. Your job is to scaffold a new knowledge wiki in the current directory.
The user's input is: $ARGUMENTS
There are no required arguments. Optional flags:
.kb-config.yml already existsIf no arguments are provided, proceed with default initialization.
Before initializing, check if a .kb-config.yml already exists in the current directory:
kb init --check 2>/dev/null || true
If the wiki is already initialized and --force was not passed, tell the user:
"This directory already has a knowledge wiki. Use
--forceto re-initialize, or start using/kb-ingestto add documents."
Stop here unless --force was specified.
Run the initialization:
kb init
If --force was passed:
kb init --force
After successful initialization, report the structure that was created:
## Wiki Initialized
Created knowledge wiki structure:
.kb-config.yml -- Configuration file
wiki/
permanent/ -- Atomic wiki notes live here
_meta/
tag-taxonomy.md -- Approved tag vocabulary
stats.md -- Auto-generated statistics
raw/
inbox/ -- Raw documents waiting to be compiled
inbox/.manifest.json -- Tracks ingestion state
output/
reports/ -- Lint reports and explorations
charts/ -- Auto-generated visualizations
### Next Steps
1. Ingest some documents: `/kb-ingest file path/to/document.md`
2. Compile into wiki notes: `/kb-compile`
3. Search your wiki: `/kb-query "your question here"`
kb CLI must be installed and on PATH..kb-config.yml file controls all paths and settings -- edit it to customize.What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
10 commands in this plugin
/kb-compile/kb-compile -- LLM Compile Raw -> WikiCompile raw documents into atomic wiki notes/kb-health/kb-health -- Wiki Health AuditRun a comprehensive wiki health audit and optionally fix issues/kb-index/kb-index -- Rebuild Vector IndexRebuild the knowledge base vector index/kb-ingest/kb-ingest -- Raw Document IngestionIngest raw documents into the knowledge base pipeline/kb-ingest-tool/kb-ingest-tool -- Tool Ingestion (URL-agnostic)Ingest a tool (library/framework/service/repo) from any URL into the knowledge base/kb-lint/kb-lint -- Wiki Health CheckerRun health checks on the knowledge base wikinpx claudepluginhub cajias/second-brain-plugins --plugin karpathy-llm-wiki