Graphtrail
БесплатноБез исполняемых скриптовНе проверенUse when answering structural code questions in an indexed repo - who calls this, what does this call, what breaks if I change it, what changed between two…
от escoffier-labs280 установок в других каталогахОб этом скилле
graphtrail
GraphTrail keeps a SQLite code graph (symbols, imports, call edges) per repo, synced incrementally and queryable through 9 MCP tools. The point of this skill: for structural questions, the graph answers in one call what grep answers in five speculative ones, and the graph knows about relationships grep cannot see (cross-file call resolution through imports, transitive impact, before/after structure).
When to use which tool
- "Who calls X?" ->
callers. "What does X call?" ->callees. Exact answers from resolved call edges, including cross-file calls resolved through imports. grep finds the stringX(; the graph finds the actual callers of THISX. - "What breaks if I change X?" ->
impactwith--depthfor transitive reach. This is the blast-radius question; hop counts tell you how direct the dependency is. - "Where is symbol X?" ->
search(qualified-name aware, path-filterable). Faster and more precise than grep for symbol lookup; use grep when you want arbitrary text, comments, or strings. - "What is around this file?" ->
file_neighbors(imports in, imports out, co-change candidates) andcontextfor an orientation brief before editing unfamiliar code. - "What changed structurally?" ->
diffwith two DB snapshots (--before/--after). Reports added/removed/changed symbols (body-hash exact: a body edit with unchanged signature is detected) and call-edge changes, with line-insensitive edge counts alongside raw ones. Brigade attaches these deltas to verify and run receipts automatically, and recordscontext_eval.brief_hit_ratewhen a pre-run code-graph brief is compared to the post-run delta (did the brief name the files that actually changed?). - "Which repos are indexed?" ->
repos; per-repo numbers ->stats.
Freshness
The graph re-syncs on a 15-minute timer, at session start (hook), and on demand: query tools accept refresh: true to run an incremental sync before answering. Sync is incremental and cheap; a no-op pass is sub-second. Use refresh: true when you just wrote code and are about to ask about it.
When NOT to use it
- Text questions: strings, comments, TODO hunts, log messages. That is grep/ripgrep.
- Pattern-shaped syntax questions ("find every
foo(_, None)call shape"): that is ast-grep, which matches tree structure by example. The three lanes are exact-graph (graphtrail), tree-pattern (ast-grep), and text (grep). Pick by question shape. - Repos with no
.graphtrail/index: checkreposfirst; index one withgraphtrail sync <root>if it should be covered.
Honest limits
- Call edges include the call line, so raw added/removed edge counts churn on pure line shifts; the diff's line-insensitive counts exist for exactly this. Read both.
- Dynamic dispatch, reflection, and metaprogrammed calls are not in the graph. An empty
callersresult means no STATIC callers. - The graph is derived state, rebuildable by rescan. When in doubt about staleness,
refresh: trueorgraphtrail sync.
Brigade loop (when the repo is Brigade-wired)
GraphTrail is half of the measured context loop. After work flows through Brigade:
- Verify/run receipts carry
code_graph_delta(fail-open if GraphTrail is missing). brigade receipts export miseledger --new-only --importarchives those receipts.- The next
brigade runcan attach a MiseLedger evidence brief; when a code-graph brief was present,context_eval.brief_hit_ratemeasures coverage. brigade operator checkupreports graph ok / ledger ok / last brief hit rate in one glance.
Use brigade-work for the full verify → capture → export discipline; this skill is the structural-query half.
Установить Graphtrail в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Graphtrail?
Use when answering structural code questions in an indexed repo - who calls this, what does this call, what breaks if I change it, what changed between two versions. Reach for it BEFORE grep whenever the question is about relationships between symbols rather than text. Triggers include "who calls", "what uses", "blast radius", "impact of changing", "callers of", "what depends on", and reviewing a diff's structural effect.
Как установить скилл Graphtrail?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Graphtrail запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic