kb.init
Scan a project directory for markdown and text files to bulk-import them into the knowledge base while skipping files already present. Returns a summary of added and skipped files.
Instructions
Scan a project directory for markdown and text files and bulk-import them into the knowledge base. Skips files already present (matched by source path). Returns a summary of what was added and skipped. After running, follow the workflow in .kiro/steering/kb-ingest.md for each added file to extract entities, create cross-references, and update the index and changelog.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patterns | No | Glob patterns relative to project_root to include (default: ["**/*.md", "**/*.txt"]) | |
| overwrite | No | Re-import files that already exist in the KB (default: false) | |
| project_id | No | Project identifier (auto-detected from project_root if omitted) | |
| project_root | Yes | Absolute path to the project root to scan | |
| skip_patterns | No | Glob patterns to exclude (default: node_modules, .git, dist, build) |