Explore 上下文审查
- 作者仓库星标 17,985
- 作者仓库 code-review-graph
Explore Codebase
Use the code-review-graph MCP tools to explore and understand the codebase.
Steps
- Run
list_graph_statsto see overall codebase metrics. - Run
get_architecture_overviewfor high-level community structure. - Use
list_communitiesto find major modules, thenget_communityfor details. - Use
semantic_search_nodesto find specific functions or classes. - Use
query_graphwith patterns likecallers_of,callees_of,imports_ofto trace relationships. - Use
list_flowsandget_flowto understand execution paths.
Tips
- Start broad (stats, architecture) then narrow down to specific areas.
- Use
children_ofon a file to see all its functions and classes. - Use
find_large_functionsto identify complex code.
Token Efficiency Rules
- ALWAYS start with
get_minimal_context(task="<your task>")before any other graph tool. - Use
detail_level="minimal"on all calls. Only escalate to "standard" when minimal is insufficient. - Target: complete any review/debug/refactor task in ≤5 tool calls and ≤800 total output tokens.
- 流狐分类
- 通用
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tirth8205 · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Use the code-review-graph MCP tools to explore and understand the codebase.
Run listgraphstats to see overall codebase metrics. Run getarchitectureoverview for high-level community structure. Use listcommunities to find major modules, then getcommunity for details.
Start broad (stats, architecture) then narrow down to specific areas. Use childrenof on a file to see all its functions and classes. Use findlargefunctions to identify complex code.
ALWAYS start with getminimalcontext(task="<your task>") before any other graph tool. Use detaillevel="minimal" on all calls. Only escalate to "standard" when minimal is insufficient. Target: complete any review/debug/refactor task in ≤5 tool calls and ≤800…
## Explore Codebase
Use the code-review-graph MCP tools to explore and understand the codebase.
### Steps
1. Run `list_graph_stats` to see overall codebase metrics.
2. Run `get_architecture_overview` for high-level community structure.
3. Use `list_communities` to find major modules, then `get_community` for details.
4. Use `semantic_search_nodes` to find specific functions or classes.
5. Use `query_graph` with patterns like `callers_of`, `callees_of`, `imports_of` to trace relationships.
6. Use `list_flows` and `get_flow` to understand execution paths.
### Tips
- Start broad (stats, architecture) then narrow down to specific areas.
- Use `children_of` on a file to see all its functions and classes.
- Use `find_large_functions` to identify complex code.
## Token Efficiency Rules
- ALWAYS start with `get_minimal_context(task="<your task>")` before any other graph tool.
- Use `detail_level="minimal"` on all calls. Only escalate to "standard" when minimal is insufficient.
- Target: complete any review/debug/refactor task in ≤5 tool calls and ≤800 total output tokens. 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Explore Codebase → Steps → Tips → Token Efficiency Rules
要点 -> Use the code-review-graph MCP tools to explore and understand the codebase. · 1. Run listgraphstats to see overall codebase metrics. · - Start broad (stats, architecture) then narrow down to specific areas.
文件/命令 -> listgraphstats · getarchitectureoverview · listcommunities · getcommunity · semanticsearchnodes · querygraph · callersof · calleesof
内容 SHA-256 -> 64420a56b8c9
方法与流程
适用与边界
原文中的明确线索
listgraphstats、getarchitectureoverview、listcommunities、getcommunity、semanticsearchnodes、querygraph、callersof、calleesof