From gograph
Provides Go repository intelligence via AST-accurate call graphs, blast radius analysis, and 57+ semantic queries. Replaces grep for Go symbol navigation, editing, refactoring, and bug hunting.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gograph:gograph gograph status | gograph plan UserService.Login | gograph reviewgograph status | gograph plan UserService.Login | gograph reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
`gograph` is a local, AST-aware Go code intelligence engine that exposes 57+ semantic query tools over the Model Context Protocol. It gives terminal LLMs (Claude Code, Cursor agents, OpenClaw) deterministic structural awareness of a Go codebase without grepping files. One `gograph_context` call replaces 4-5 separate Read / Grep tool calls.
gograph is a local, AST-aware Go code intelligence engine that exposes 57+ semantic query tools over the Model Context Protocol. It gives terminal LLMs (Claude Code, Cursor agents, OpenClaw) deterministic structural awareness of a Go codebase without grepping files. One gograph_context call replaces 4-5 separate Read / Grep tool calls.
gopls is optimized for human IDEs. gograph is optimized for AI coding agents that pay for every token of context.
Activate whenever the user is working in a Go repository:
If a .go file is in the CWD or the user mentions a Go symbol, type, package, or interface by name, the skill applies.
Do NOT invoke for non-Go work. The skill is Go-scoped.
The gograph binary must be installed and on $PATH:
go install github.com/ozgurcd/gograph@latest
Verify with gograph --version. The MCP server registration ships with the plugin and auto-connects once the binary is installed.
gograph_capabilities to confirm what the connected server exposes.gograph build . --precise (requires the package to compile).gograph build . - and explain why precise mode was unavailable.grep, rg, find, or glob. Use gograph_query instead. Text search returns false positives across vendored code, comments, and string literals; gograph_query returns AST-accurate matches.gograph_plan <symbol>. The plan returns callers, tests connected to the symbol, and a blast-radius estimate. Edit decisions should reference the plan.gograph_context <symbol>. This single call returns node + source + callers + callees + tests, replacing 4-5 separate tool calls and saving substantial context tokens.gograph_review --uncommitted to verify test coverage and surface the blast radius of the change.| Tool | Use case |
|---|---|
gograph_capabilities | Discover what the connected server exposes |
gograph_query | AST-accurate symbol search (replaces grep) |
gograph_context <symbol> | Node + source + callers + callees + tests in one call |
gograph_plan <symbol> | Pre-edit blast radius + callers + tests |
gograph_review --uncommitted | Post-edit coverage check |
gograph_impact <symbol> | What breaks if this changes |
gograph_callers / gograph_callees | Explicit call-graph traversal |
gograph_implementers <interface> | All types implementing an interface |
gograph_routes | HTTP route discovery across handler / service / repository layers |
gograph_sql | SQL query inventory across the codebase |
gograph_complexity | Cyclomatic complexity per function |
gograph_godobj | God-object detection |
gograph_coupling | Package coupling / instability scores |
gograph_diagram | Mermaid architecture diagrams |
gograph_errors / gograph_errorflow | Error propagation paths |
gograph_changes | Diff what changed since the last build |
gograph_tests | Tests connected to a symbol |
The full surface is 57+ tools; gograph_capabilities is the live source of truth.
Graph building is fully local. No source code leaves the machine. MCP transport is local stdio. Respects .gitignore and skips AI-agent worktree directories automatically. See PRIVACY.md in the gograph repo for details.
grep / rg / find on a Go codebase when gograph is connected. Text search is inaccurate and wastes tokens.gograph_plan first. You will miss callers and break tests downstream.gograph_review after a multi-file change. Blast radius regressions slip through.gograph_context <symbol> returns the same answer in a single structured response.LLMs reading source through grep / Read / Glob burn 5-15K context tokens to understand a single function's surroundings. gograph returns the same answer in one structured response. Token cost drops by roughly 80% and the answer is AST-accurate, not text-pattern-fuzzy.
npx claudepluginhub ozgurcd/gograph --plugin gographIndexes a codebase as a structural graph for querying callers, callees, inheritance, blast radius, and semantic code search. Useful for understanding code connectivity, impact analysis, and navigating unfamiliar repos.
Detects codegraph CLI and indexed repos, then uses AST/graph queries for callers, callees, impact analysis, symbol definitions, and architectural overviews.
Reference for code-review-graph MCP queries: graph freshness, embedding setup, semantic search, and targeted queries. Other skills call graph tools inline via ToolSearch.