explore-codebase — скилл для Claude Code: что делает и как установить
Помогает исследовать архитектуру проекта через граф знаний MCP-сервера code-review-graph с экономным расходом контекста.
npx skills add tirth8205/code-review-graph --skill explore-codebase -a claude-codeЧто делает explore-codebase
Скилл задаёт агенту пошаговый сценарий навигации по кодовой базе с помощью инструментов MCP-сервера code-review-graph. Он выстраивает работу по цепочке: начинает с get_minimal_context_tool, запрашивает структуру модулей через get_architecture_overview_tool, ищет классы и функции с помощью semantic_search_nodes_tool и прослеживает вызовы или импорты через query_graph_tool.
Главное ограничение — скилл не работает без установленного MCP-сервера code-review-graph. Инструкция требует жесткой экономии токенов: около пяти вызовов инструментов и до 800 токенов вывода на задачу, а также параметр detail_level="minimal" при каждом удобном случае.
Граф знаний только сужает область поиска. Перед изменением кода агент всё равно обязан прочесть саму реализацию и её тесты.
Какие задачи решает
- разобрать архитектуру проекта через структуру сообществ
- проследить цепочки вызовов и импортов с помощью
query_graph_tool - отследить путь выполнения через инструменты потоков
- найти слишком длинные функции в репозитории
Примеры запросов агенту
- Используй explore-codebase, чтобы разобрать граф вызовов функции processOrder
- Найди через граф знаний раздутые функции и покажи их связи
- Покажи архитектуру проекта и модули, которые зависят от auth
Как установить explore-codebase
1Через Skills CLI (Vercel)
npx skills add tirth8205/code-review-graph --skill explore-codebase -a claude-code2Вручную: положить файлы
~/.claude/skills/explore-codebase/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/explore-codebase/
1Через Skills CLI (Vercel)
npx skills add tirth8205/code-review-graph --skill explore-codebase -a codex2Вручную: положить файлы
.agents/skills/explore-codebase/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add tirth8205/code-review-graph --skill explore-codebase -a cursor2Вручную: положить файлы
.cursor/skills/explore-codebase/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install tirth8205/code-review-graph explore-codebase2Вручную: положить файлы
.github/skills/explore-codebase/SKILL.md1Через Skills CLI (Vercel)
npx skills add tirth8205/code-review-graph --skill explore-codebase -a gemini-cli2Командой платформы
gemini skills install https://github.com/tirth8205/code-review-graph --path skills/explore-codebaseВручную: положить файлы
.devin/skills/explore-codebase/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add tirth8205/code-review-graph --skill explore-codebase -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора7
Весь набор →Похожие
Вопросы о explore-codebase
Как установить explore-codebase в Claude Code?
Выполните команду npx skills add tirth8205/code-review-graph --skill explore-codebase -a claude-code. Также можно вручную сохранить файл по пути ~/.claude/skills/explore-codebase/SKILL.md.
Что делает скилл explore-codebase?
Он задаёт правила обхода кодовой базы через граф знаний: поиск узлов, трассировку вызовов и проверку путей выполнения с минимальным расходом токенов.
Что нужно для работы скилла explore-codebase?
Понадобится подключённый MCP-сервер code-review-graph. Инструкции скилла опираются на его инструменты вроде query_graph_tool и list_flows_tool.
Исходный текст
SKILL.md · MIT
--- name: explore-codebase description: Navigate and understand codebase structure using the knowledge graph --- ## Explore Codebase Use the code-review-graph MCP tools to find your way around the codebase. ### Steps 1. Call `get_architecture_overview_tool` for the community structure. Call `list_communities_tool`, then `get_community_tool`, only for the modules you need. 2. Call `semantic_search_nodes_tool` to find a function or class by name or keyword. 3. Call `query_graph_tool` with `callers_of`, `callees_of` or `imports_of` to trace relationships. `children_of` on a file lists its functions and classes. 4. Call `list_flows_tool`, then `get_flow_tool` for one flow, to follow an execution path. 5. Call `find_large_functions_tool` to find oversized functions. 6. Call `list_graph_stats_tool` only 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_tool` call 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.
© tirth8205 · MIT · tirth8205/code-review-graph