From rag-reviewer
Builds or updates a vector store (pgvector) and code graph (Neo4j) index from a local repo clone using the reviewer tool. Invoke when the user asks to index, sync, or rebuild the codebase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rag-reviewer:sync-codebaseThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Builds or updates the reviewer base index — vector embeddings (Postgres/pgvector) and code graph
Builds or updates the reviewer base index — vector embeddings (Postgres/pgvector) and code graph
(Neo4j) — from a local repo clone using reviewer index. This is a one-time setup operation;
subsequent runs are incremental (only changed files are re-embedded).
Parse from $ARGUMENTS (all optional):
--path <path>: path to the local repo clone. Default: current working directory.--ref <branch>: git ref to index. Default: main.--repo <owner/name>: repo identifier for multi-repo setups. If omitted, derived automatically
from git remote get-url origin.--backend <auto|scip|treesitter>: graph backend override. Default: auto (SCIP if in PATH,
else tree-sitter).Resolve inputs. If --path not given, use the current working directory. If --ref not
given, use main. If --repo not given, run:
git -C <path> remote get-url origin
Strip .git suffix, extract the last two path segments (owner/name).
Check prerequisites. Verify:
uvx is available: uvx --version succeeds.git -C <path> rev-parse --git-dir succeeds.reviewer check or confirm the user has .env
configured with PG_DSN, NEO4J_URI, VOYAGE_API_KEY).docker compose ps shows paradedb and
neo4j running.Run indexing.
uvx --from rag-reviewer reviewer index <path> --ref <ref>
Add --repo <owner/name> if resolved or provided. Stream the output to the user.
Expected duration: seconds for small repos, minutes for large ones — Voyage free tier
(3 RPM / 10K TPM) causes throttling with automatic retry/backoff. That is normal, not an error.
Use --limit N (if supported) for a quick smoke run.
Verify. After indexing completes, optionally run a diagnostic search to confirm the corpus:
uvx --from rag-reviewer reviewer search "your query here"
Or call search_code via the reviewer MCP tools directly.
Report. Summarise the output: chunks indexed/updated, graph nodes/edges upserted, warnings
(e.g. "SCIP unavailable, fell back to tree-sitter"). If the SCIP backend was used, note that
IMPLEMENTS edges and full call-graph accuracy are available; if tree-sitter, only CALLS by
name are available.
IMPLEMENTS edges: install scip-python first:
npm install -g @sourcegraph/scip-python
Then re-run — GRAPH_BACKEND=auto picks it up automatically.reviewer index, individual PR reviews (reviewer_review-pr) trigger incremental
re-sync of changed files automatically via prepare_review. Full re-index is only needed when
the base branch diverges significantly or after a fresh deploy.reviewer_sync-tasks instead.npx claudepluginhub mimfort/rag_for_gitBuilds or incrementally updates the repository code knowledge graph for review. Use for initial setup, after refactors or branch switches; supports Python, TypeScript/JS, Go; SQLite storage.
Re-indexes the current codebase with Codescope's index_codebase tool, fetches graph stats, and reports counts for files, functions, classes, imports, and relations. Use after code changes to refresh the knowledge graph.
Manages SocratiCode codebase indexing: checks infrastructure health with Docker/Qdrant/Ollama, starts/stops indexing and file watching, builds code graphs, configures context artifacts.