/crg:onboard-repo [repo path] [area of interest]from crg
Indexes an unfamiliar codebase into a knowledge graph and produces an orientation map showing entry points, hotspots, and module dependencies.
Ships in crg. 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.
Take a codebase you have never seen and turn it into a queryable graph, then read the graph to produce an orientation map. Use this on first contact with a repository, before answering questions about it or changing anything in it.
Scope: this skill builds and reads a knowledge graph. It does not modify source files, CI configuration, or project conventions. The only files it creates are the graph database under .crg/ (already self-ignored) and, when you choose to add one, a .code-review-graphignore.
Command surface: run the local CLI through the coding harness shell. Examples
use the installed crg command; from a source checkout,
prefix it with uv run. No MCP mapping is required.
Check what already exists with crg graph stats --repo-root "<path>". A non-empty graph can go directly to step 5; a missing-graph error means continue with a build.
Decide the indexing scope before building:
--repo-root "<path>"..code-review-graphignore at the repo root (one fnmatch pattern per line, # for comments) so vendored trees, build output, and fixtures do not inflate the graph. Common additions: vendor/*, third_party/*, **/generated/*, **/*.min.js.--roots in step 3, then use impact-audit for cross-repo questions.Build the graph with crg graph build --full-rebuild --repo-root "<path>".
crg graph build --full-rebuild --repo-root "<path-a>" --roots "<path-b>". Each root is registered in the repo registry and its files are tagged with a repo_id, which later lets you scope any query with --repo "<repo_id>".Enable semantic search with crg graph embed --repo-root "<path>". Without embeddings, the CLI's search action falls back to name and keyword matching, which will miss "where is authentication handled" style questions.
crg graph summarize --repo-root "<path>" adds generated summaries for function nodes, but only when a summarizer model chain is configured. It is a no-op otherwise -- do not report it as a failure.Read the shape of the codebase with crg graph stats --repo-root "<path>". Record the language mix, file count, and node/edge counts. The language mix decides which conventions to expect in later steps -- do not assume the dominant language from the repository name.
Locate the entry points. Use crg query search --search-query "<term>" --repo-root "<path>" with terms that suit the language mix -- main, cli, handler, route, server, worker, command. Then confirm each candidate is genuinely an entry point by checking it has few or no callers:
crg query query --pattern callers_of --target "<name>" --repo-root "<path>" -- an entry point is typically called by nothing inside the repo.Find the load-bearing modules -- the files everything else depends on:
crg query query --pattern importers_of --target "<file_path>" --repo-root "<path>" for candidate core files; the ones with the most importers are where a newcomer should start reading.crg query query --pattern file_summary --target "<file_path>" --repo-root "<path>" for a structural digest of a file without reading it in full.Trace one representative flow end to end. Pick a single entry point from step 6 and walk outward with crg query query --pattern callees_of --target "<name>" --repo-root "<path>", two or three hops deep. One traced flow teaches the layering faster than reading ten files.
Check the test topology:
crg query query --pattern tests_for --target "<name>" --repo-root "<path>" on the core modules from step 7.Report the orientation map:
## Codebase Orientation: <repo>
### Graph
- **Nodes / edges**: N / M across K files
- **Languages**: <language: file count, ...>
- **Semantic search**: enabled (<backend>) / name-matching only
### Entry Points
- `<name>` (<file>:<line>) -- <what starts here>
### Core Modules (most depended upon)
| Module | Importers | Tested |
|---|---|---|
| <file> | N | yes / no |
### Traced Flow: <entry point>
<entry> -> <callee> -> <callee> -- <one line on what the layering implies>
### Hotspots
- <file or function> -- <many dependents / oversized / untested>
### Suggested Reading Order
1. <file> -- <why first>
2. <file> -- <why next>
### Open Questions
- <what the graph could not answer and where to look instead>
| Observation | What it means |
|---|---|
| Many nodes, few edges | Mostly leaf code, or a language whose call edges resolve poorly -- lean on search over callers_of |
| A file with very high importer count | Core abstraction; changes there need impact-audit before editing |
Entry point with no tests_for result | Integration behaviour is unverified; treat changes as high risk |
languages shows a language you did not expect | Generated or vendored code is likely in scope; add it to .code-review-graphignore and rebuild |
impact-audit -- once oriented, to scope a planned change across repositoriesrefactor-check -- safety verdict for changing one specific symbolsecurity-sweep -- risk-ranked security posture of the newly indexed codeWhat SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (n24q02m/crg) — no native marketplace selected
npx claudepluginhub p/n24q02m-better-code-review-graph6 skills in this plugin
/impact-auditBlast radius of a change you have not made yet -- traces a symbol across federated repositories, splits impact per repo, and reports what must ship together./refactor-checkSafety analysis before refactoring -- dependency graph, test coverage, public API exposure, blast radius verdict./review-deltaReview uncommitted changes using impact analysis. Quick local delta review with blast-radius detection./review-prComprehensive PR review -- full branch diff against base, commit-by-commit analysis, breaking change detection, conventional commit verification./security-sweepGraph-driven security sweep -- scan for dangerous sinks, then rank each finding by whether an entry point can actually reach it, and triage the rest into suppressions.2 plugins ship this exact skill · first indexed Nov 4, 2026
Other plugins' skills for the same job