explore-codebase
What it does
This skill guides the AI agent in navigating a codebase using the code-review-graph tool. It is for developers who are new to a project or need to understand how its parts connect.
When to use it
- ✓When you join a project and need an overview of its main modules.
- ✓When you want to find a function or class by name or keyword.
- ✓When you need to see which code calls a function or what it depends on.
Skill link
https://github.com/tirth8205/code-review-graph/blob/staging/skills/explore-codebase/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you give me an overview of how this project is organized and where the login logic lives?”
5 new skills a week. 1 minute to read.
How it works
The agent asks the graph for an architecture overview, searches for the named code, and follows the relationships between files and functions.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Explore Codebase
Use the code-review-graph MCP tools to find your way around the codebase.
Steps
- Call
get_architecture_overview_toolfor the community structure. Calllist_communities_tool, thenget_community_tool, only for the modules you need. - Call
semantic_search_nodes_toolto find a function or class by name or keyword. - Call
query_graph_toolwithcallers_of,callees_oforimports_ofto trace relationships.children_ofon a file lists its functions and classes. - Call
list_flows_tool, thenget_flow_toolfor one flow, to follow an execution path. - Call
find_large_functions_toolto find oversized functions. - Call
list_graph_stats_toolonly when you need node, edge and language counts.
Token Efficiency Rules
- Call
get_minimal_context_tool(task="<your task>")before any other graph tool. - Pass
detail_level="minimal"wherever a tool accepts it. Use "standard" only when minimal is not enough. - Prefer a targeted
query_graph_toolcall over a broad listing call. - Budget: about five tool calls and 800 tokens of graph output per task.
- Read the implementation and its tests before changing code. The graph narrows scope; it does not replace the source.
FAQ
What can it show me?
It can show architecture communities, functions, callers, callees, imports and execution flows.
Does it find large functions?
Yes. The skill includes a tool to find oversized functions.
Do I need the graph built first?
Yes. The graph must be built before the navigation tools return useful results.
Details
Original description by the author
Navigate and understand codebase structure using the knowledge graph
Popularity
- GitHub stars
- 33k
- Ranking position
- #9140
- License
- MIT
- Updated
- 10/29/2026
Comments
- …
More skills from this repository
build-graph
33kLets your agent build or update a code knowledge graph of your repository, so later code reviews and searches are faster.
debug-issue
33kHelps your agent trace a bug through a code knowledge graph, following the call chain before reading the source code.
refactor-safely
33kHelps your agent plan a code refactor using dependency analysis, and apply renames only after checking a preview.
review-changes
33kHelps your agent review a set of code changes with risk scores, test gaps and the blast radius, grouped by risk level.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.