kb-init
Create and tailor a new llmkb knowledge base for a project.
When to use
Starting a KB for a new project, or the user asks to set one up.
Steps
- Scaffold. Run
llmkb init <dir> --name <name> --description "<one line>". This creates the directory structure,kb.yaml, a starterSCHEMA.md, the.llmkb/gitignore, emptyindex.md/log.md, and a git repo. - Interview briefly. Ask the user:
- What domain does this KB cover, and what will it mostly ingest?
- Any naming or tagging conventions they want enforced?
- What counts as a concept vs an entity here?
- Tailor
SCHEMA.mdwith their answers — add project-specific page-type guidance, tag vocabulary, and tone/length rules. Keep the required frontmatter contract intact. - Confirm health. Run
llmkb lint(an empty KB should be clean) and append a## [YYYY-MM-DD] init | <name>line towiki/log.md.
Done when
The KB exists, SCHEMA.md reflects the project, and llmkb lint is clean.