/kmgraph:kmg-init-shared:kmg-fts5-rebuildfrom kmgraph
Checks FTS5 search index status for a knowledge graph and offers to rebuild it if missing. Validates rebuild results and warns if zero files were indexed.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /kmgraph:kmg-init-shared:kmg-fts5-rebuild still runs it.
What the command file sets; muted values are Claude Code's defaults
| Parameter | Description |
|---|---|
{KG_PATH} | Absolute path to the knowledge graph root directory |
{kg_name} | Name key used in kg-config.json |
If the path is confirmed correct, check whether the index needs rebuilding:
Call kg_fts5_status. Branch on the returned exists field:
If exists === false AND FTS5_DECLINED is not true:
Rebuild now? This may take a moment for large knowledge graphs.
1. Yes — rebuild index
2. Skip for now (search will use linear scan)
If exists === true: The index is present — no offer needed unless the user explicitly requests a rebuild.
If FTS5_DECLINED is true: Skip silently (check ~/.kmgraph/kg-config.json for .graphs["{kg_name}"].fts5_declined).
If the user selects Yes, call kg_fts5_rebuild. After the rebuild, validate the result:
indexed is 0: display a warning — "Search index built but 0 files were indexed. Verify the KG path points to the directory containing lessons-learned/, decisions/, and sessions/. Current path: {KG_PATH}"indexed > 0: confirm success — "✅ Search index built: {indexed} files indexed in {duration_ms}ms"If the user selects Skip, continue without rebuilding (linear scan remains available as fallback).
7-day visitors to each command page
31 commands in this plugin
/kmg-add-category/kmgraph:kmg-add-category — Add Category to Knowledge GraphAdd a new category to the active knowledge graph with optional custom prefix and git strategy./kmg-backfillBackfill Knowledge Graph from Existing Content<!-- Created: 2026-09-04 (ADR-071) -->/kmg-capture-lessonDocument Lessons Learned**Version:** 2.0 (Updated: 2026-03-27)/kmg-check-sensitive/kmgraph:kmg-check-sensitive — Scan for Sensitive DataScan the knowledge graph resolved from the current directory for potentially sensitive information, using regex patterns from config or defaults./kmg-config-sanitization/kmgraph:kmg-config-sanitization — Setup Sanitization HooksInteractive wizard to help users set up pre-commit hooks that scan for potentially sensitive information before committing knowledge graph entries./kmg-create-adrCreate Architecture Decision Record**Purpose:** Create a new Architecture Decision Record (ADR) using the knowledge graph resolved from the current directory. Auto-fills git metadata, auto-increments the ADR number, prompts for decision content, and updates the decisions index.npx claudepluginhub technomensch/knowledge-graph --plugin kmgraph