From wicked-garden
Builds or refreshes the code-intelligence index, producing semantic (concept/symbol) and structural (codegraph) layers for search commands. Accepts a required path argument.
How this command is triggered — by the user, by Claude, or both
Slash command
/wicked-garden:index <path>search/Files this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /wicked-garden:search:index Refresh the two code-intelligence layers the other `search:*` commands query. Both live in **wicked-brain** now (ADR 0004): - **semantic** (wicked-brain) — concept/symbol search, `wicked-brain:search`/`query`. - **structural** (codegraph graph, owned by brain) — `wicked-brain:graph` (blast-radius/lineage) and the wicked-patch family. ## Arguments - `path` (required): directory to index (the brain server's `--source` repo). ## Instructions 1. **Semantic layer** — invoke `/wicked-brain:ingest` with `<path>` (incremental; only changed files re-ingest). 2. **...
Refresh the two code-intelligence layers the other search:* commands query. Both
live in wicked-brain now (ADR 0004):
wicked-brain:search/query.wicked-brain:graph (blast-radius/lineage) and the wicked-patch family.path (required): directory to index (the brain server's --source repo).Semantic layer — invoke /wicked-brain:ingest with <path> (incremental; only changed files re-ingest).
Structural layer — one call rebuilds the codegraph static graph and re-applies every injected-edge extractor (built-in bus/dispatch/capability + any per-repo drop-ins under .codegraph-extractors/):
npx -y wicked-brain-call graph-index
This replaces the old codegraph index + inject_all.py two-step — brain runs the build and the extractors in a single pass, so the injected layer is never left empty after a re-index. The result reports per-extractor counts, total_injected_edges, and a staleness stamp.
Verify:
npx -y wicked-brain-call stats # brain chunk/tag counts (semantic layer)
and confirm graph-index reported total_injected_edges > 0 on a repo with wiring.
graph-* results carry commits_behind/indexed_at; re-run graph-index when stale.graph-* returns engine:"unavailable" — install @colbymchenry/codegraph or set WICKED_CODEGRAPH_BIN.npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-garden/indexGenerates project documentation, knowledge base, API docs, structure analysis, or README for a target path. Supports --type (docs|api|structure|readme) and --format (md|json|yaml).
/indexIndexes codebase into Supermemory for persistent context: detects tech ecosystem, scans manifests/configs/entry points/architecture.
/indexIndexes codebase components and external resources into searchable specs in `specs/.index/`. Supports --path, --type, --exclude, --dry-run, --force, --changed, --quick flags.
/indexGenerates project documentation (docs, API, structure, readme) and knowledge base for a target directory in MD, JSON, or YAML format with update option.
/indexGenerates AI-readable feature index mapping natural language descriptions of UI elements, interactions, and business flows to exact code locations and modification guides. Saves markdown report to .claude/context/index.md.
/indexDisplays visual dashboard of Beacon index: chunks, coverage, provider. Lists indexed files with --files. Adds one-line summary; suggests /reindex on failure.