/repo-graph:glia-debugfrom repo-graph
Transforms stacktraces, failing test IDs, or diffs into ranked, located code for debugging. Use when a test fails or an error appears.
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.
Start from the error, not a filename. glia matches the frames, test id or changed paths in a failure to nodes in its graph, then ranks the code around them.
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 |
|---|---|---|---|
| Code a stacktrace points at | find query=<failure> kind=stacktrace | glia resolve . "<signal>" --kind stacktrace --json | uvx mcp-repo-graph find - --kind stacktrace |
| Code a failing test id points at | find query=<test id> kind=test | glia resolve . "<test id>" --kind test --json | uvx mcp-repo-graph find "<test id>" --kind test |
| What a diff touches | find query=<diff> kind=diff | glia diff-impact . --diff <file> --json | uvx mcp-repo-graph find - --kind diff |
| The tests to run | impact nodes=<node> | glia tests-for . <node> --json | uvx mcp-repo-graph impact "<node>" |
Give the raw failure. Don't trim it to one line: the frames are the signal. --kind is auto (sniff, the default), stacktrace, test or diff.
glia resolve . "$(pytest -x 2>&1 | tail -n 80)" --kind stacktrace --json
glia resolve . "tests/test_cart.py::test_total" --kind test --json
git diff > /tmp/d.diff && glia diff-impact . --diff /tmp/d.diff --json
pytest -x 2>&1 | uvx mcp-repo-graph find - --kind stacktrace
Read the top hits: open each row's file:line (over MCP, read node=<a>,<b> slices them in one call with a context: footer of callers and covering tests).
Find the tests that cover the suspect: glia tests-for . <node> --json, or for the whole change glia tests-for . --base main --json. Run those first.
Widen only if the cause isn't there: glia blast-radius . <node> --direction both --depth 1 --json lists the direct callers and callees.
An empty answer says why: an absence with its reason and tier, plus the caveats of what it read. When every frame points outside the repo (site-packages, node_modules), run glia find . <name> --json on the deepest in-repo function name as a plain keyword.
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
stacktrace-analysis, test-failure, debugging, code-navigation
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-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./glia-impactBlast radius before changing code. Lists everything a function, route, class or whole diff reaches or is reached by, ranked and located, with likely-dead code flagged. Use before a refactor, rename, delete or signature change, for a PR review, and for "who uses this" or "what breaks if I change this"./glia-initBuild, rebuild or wire up the glia structural map for a repository, with the history its rankings read. Use on first use in a repo, after a large refactor or branch switch, to keep the graph fresh, or to add glia (through the repo-graph MCP server) to a project's coding agents for good./glia-orientMap a codebase before opening files. Shows the services and how they talk, the entry points and where each flows, and where the glia graph is blind. Use at the start of a task in an unfamiliar or large repo, or when asked how a codebase is laid out or what's in it./glia-overlayClose glia's blind spots in a repo by writing .glia/overlay.toml stanzas: propose the gaps, write candidate stanzas from the code, measure them with glia overlay try, and accept only what the measurement keeps. Use it when glia gaps or glia coverage shows unpaired endpoints, unresolved sinks, tag-only queues, dead-flagged symbols or overlay rot, or when a person asks for an architecture rule to be declared and checked.npx claudepluginhub james-chahwan/repo-graph --plugin repo-graphOther plugins' skills for the same job