graphify-wrapper-indexlisted
Install: claude install-skill yoelgal/agent-tools
# /graphify-wrapper-index
Manage the set of named domain indexes for this repo. A domain = a `name` + a
repo-relative subtree `path` (e.g. `backend services/backend`). Scoping the
monorepo into domains keeps each graph small and each semantic build cheap.
```bash
. .better-dev/bin/bd-gfx 2>/dev/null || . "${CLAUDE_PLUGIN_ROOT}/scripts/bd-gfx"
reg=$(gfx_registry)
[ -f "$reg" ] || { echo "run /graphify-wrapper-setup first"; exit 1; }
```
## Register a domain
Validate and upsert into the registry. `--semantic` marks the domain for full
extract on sync (default AST-only).
```bash
name="$1"; idx_path="$2"; sem=false
case "$*" in *--semantic*) sem=true;; esac
root=$(gfx_this_worktree)
# The name becomes a directory under the graph home, so it is checked like one -
# by the same validator the path helper uses, never a second copy of the pattern.
gfx_valid_domain "$name" || exit 1
[ -d "$root/$idx_path" ] || { echo "path not found in repo: $idx_path"; exit 1; }
tmp=$(mktemp "$(dirname "$reg")/.reg.XXXXXX")
jq --arg n "$name" --arg p "$idx_path" --argjson s "$sem" \
'.indexes[$n]={path:$p, semantic:$s}' "$reg" > "$tmp" && mv "$tmp" "$reg"
echo "registered '$name' -> $idx_path (semantic=$sem)"
jq '.indexes' "$reg"
```
## Don't know the domains yet?
Use **`/graphify-wrapper-map`** - it analyzes the repo, proposes a focused
domain set, refines it with you interactively, and registers the chosen ones.
## Removing a domain
Drop the registry entry, then this worktree's graph for