/repo-graph:glia-initfrom repo-graph
Builds or rebuilds the glia structural map for a repository, syncs history for ranking calibration, and wires the repo-graph MCP server into coding agents. Use after clone, refactor, or branch switch.
Ships in repo-graph. 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.
Build the graph so the other glia skills have something to read, give it the history its rankings use, and wire it into the project's agents.
Use whichever is available, in this order: the repo-graph MCP tools when loaded (mcp__repo-graph__<tool>, or mcp__plugin_repo-graph_repo-graph__<tool> from the Claude Code plugin; they may be deferred, so search your tool list first); the glia CLI when on PATH; else uvx --from glia-cli glia <command> .. (no install; the first run downloads the wheel); else uvx mcp-repo-graph <verb>. The MCP tools and uvx mcp-repo-graph print the same text; the glia CLI answers the same question with --json rows (file, line, tier). Run any of them at the repo root (. below).
| Want | MCP tool call | glia CLI | uvx mcp-repo-graph |
|---|---|---|---|
| Build or rebuild (incremental) | refresh | glia build . | uvx mcp-repo-graph refresh |
| Clean reparse | refresh full=true | glia build . --no-incremental | uvx mcp-repo-graph refresh --full |
| History for co-change and calibrated rankings | glia history sync ., then glia history calibrate . --json | ||
| Keep it fresh | the server's file watcher | glia install-hooks . or glia watch . |
glia answer builds in memory from the parse cache, and the MCP server builds on its first call. glia build . writes the layout to .glia/graph/ (the directory the MCP server and load_from_gmap read); after a big refactor or a branch switch, run it again. Only changed files re-parse; --no-incremental forces a clean reparse.glia history sync . writes .glia/history-snapshot/ (commits, co-change, redacted messages; --blame adds blame for hotspots). Then glia history calibrate . --json replays past commits to pick each answer's best ranking for this repo and writes .glia/calibration-snapshot/. Rerun both after upgrading glia: a calibration is read only by the build that wrote it.glia install-hooks . adds post-commit, post-merge and post-checkout hooks that rerun glia build ., or glia watch . keeps one build open and prints an update per change (stop it with Ctrl-C).glia arch . --json (or orient over MCP).uvx mcp-repo-graph install finds the coding agents installed on this machine (Claude Code, Cursor, VS Code, Codex, Gemini CLI and others), then writes each one's MCP config, a short usage block in its instructions file, and auto-allow for the tools. --dry-run previews it, --agents all covers every supported agent, and uvx mcp-repo-graph uninstall reverses it. Restart the agent session afterwards so it loads the tools.
By hand, it's one .mcp.json at the repo root:
{"mcpServers": {"repo-graph": {"command": "uvx", "args": ["mcp-repo-graph", "--repo", "."]}}}
No MCP at all? Copy these skills to ~/.claude/skills/ and the agent calls the CLI.
Siblings: glia-orient, glia-find, glia-debug, glia-impact, glia-trace, glia-init; glia is the full CLI reference (every command, flag and answer shape).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/gliaAnswer structural questions about a codebase with the glia CLI, no MCP server needed. Use it for where X is defined, what changing X (or a diff) affects, how feature Y flows across services, what calls, serves or implements X, what X writes or sends, which tests cover a change, what a change did to the graph, a PR review of a change, whether a change breaks an API client, whether a frontend's model of an API matches what the backend sends, what usually changes with a change, which files a task, ticket or PR title is about, the context for a task packed to a token budget, where the churning, load-bearing or tightly coupled code is, what is one thing across repos, which bazel targets own a file or a change reaches, and any structural question a Datalog or GQL query can ask. Reach for it before grep when the question is about structure, not text./glia-debugTurn a stacktrace, failing test id or diff into the code it implicates, ranked and located, then read it. Use when a test fails, an error or traceback shows up, or you need to know where to start on a bug./glia-findFind where a feature, symbol or concept lives in a codebase, as ranked nodes with path:line, then read their source. Use for "where is X", "find the code that handles Y", "which files is this task about", or to work out which files matter before reading any.npx claudepluginhub james-chahwan/repo-graph --plugin repo-graphOther plugins' skills for the same job