/knowledge:index [scan|file <path>|update <path> <summary> <keywords>|stats]from knowledge
Build or update the semantic index of the knowledge vault. Scans for changed files and prints them for indexing.
Ships in knowledge. 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.
Scripts path: The Python scripts live in the knowledge-tools plugin. Resolve the path with:
KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1)
Build a keyword-based semantic index of all markdown files in .knowledge/.
The index enables fast search across the vault without loading every file.
IMPORTANT: Use a Haiku subagent for summary/keyword generation. This is
commodity work — don't burn Opus tokens on it. Spawn a Task with
model="haiku" to read each file and produce the summary + keywords.
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/index-vault.py scan")
NEEDS_INDEX file, spawn a Haiku subagent to generate summary + keywords:Task(
subagent_type="general-purpose",
model="haiku",
prompt="Read the file at .knowledge/path/to/note.md. Generate:
1. A one-line semantic summary
2. 10-25 keywords following these rules:
- Include concrete terms (names, tools, specific concepts)
- Include abstract themes (patterns, categories)
- Include SYNONYMS for key concepts (e.g., 'voice' -> also 'tone,style,register')
- Include abbreviations and alternate phrasings
- More keywords = better search recall, so err on the side of more
3. Related file paths from the vault (if any)
Format your response as:
SUMMARY: <summary>
KEYWORDS: <comma-separated keywords>
RELATED: <comma-separated paths or 'none'>"
)
Bash(command="KNOWLEDGE_SCRIPTS=$(ls -d ~/.claude/plugins/cache/*/knowledge/*/node_modules/@agiterra/knowledge-tools/scripts 2>/dev/null | sort -V | tail -1) && python3 $KNOWLEDGE_SCRIPTS/index-vault.py update .knowledge/path/to/note.md 'summary from haiku' 'keywords,from,haiku' 'related/paths.md'")
<path> — Print a file's content and hash for you to summarize.<path> <summary> <keywords-csv> [related-csv] — Write an index entry.The index is stored at .knowledge/meta/semantic-index.json. Each entry contains:
source_path — path to the markdown filecontent_hash — short SHA-256 hash for change detectionsummary — one-line semantic summary (Haiku generates this)keywords — list of searchable keywords (Haiku generates these)related — optional list of related file pathsInclude these in the prompt to the Haiku subagent:
If $ARGUMENTS is provided, pass it as the command (e.g., /knowledge:index scan).
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (agiterra/knowledge-claude-code) — no native marketplace selected
npx claudepluginhub p/agiterra-knowledge17 skills in this plugin
/associateAssociate — Fast Keyword AssociationsLightweight keyword-only association search — fast (<100ms), no vector embeddings, no LLM. Returns quick context associations from the knowledge vault./bootKnowledge BootFull boot sequence — restores session state and memory continuity after context compaction./calibrateCalibrate — Compression Test BatteryMeasure decompression fidelity after compaction. Creates or runs a compression test battery tailored to the knowledge vault.Other plugins' skills for the same job