AGENT SKILL

graph-exploration

Explore code relationships, search, flows, communities, architecture, and refactor previews with code-review-graph.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
graph-exploration
license
MIT
metadata
{ "disco-role": "operating" }
description
Explore code relationships, search, flows, communities, architecture, and refactor previews with code-review-graph.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Graph Exploration

Use this sub-skill when the task is to understand code structure after a graph exists: find callers or callees, search by keyword or embedding, inspect flows or communities, identify large functions, or preview safe refactors.

Start here

  1. Ensure the graph exists and is current.
  2. Ask the smallest useful query first.
  3. Escalate from search to graph traversal to flow/community/refactor analysis only as needed.

Read references/search-and-analysis.md for search, traversal, flow, community, architecture, and refactor workflows. Read references/architecture-and-schema.md for graph-node and edge semantics, flow/community storage, and supported query shapes. Read references/troubleshooting.md when search falls back, flows miss entry points, communities are sparse, or a refactor preview looks incomplete.

Route by task

User task Do this
"Who calls this function?" query_graph_tool(pattern="callers_of", target=...)
"What does this function call?" query_graph_tool(pattern="callees_of", target=...)
"Find tests for this symbol" query_graph_tool(pattern="tests_for", target=...)
"Search for login/auth code" semantic_search_nodes_tool or query_graph_tool depending on whether the answer is semantic or structural.
"Show execution paths" list_flows_tool, then get_flow_tool or get_affected_flows_tool.
"Show architecture" get_architecture_overview_tool and, if needed, list_communities_tool.
"Find large functions" find_large_functions_tool.
"Preview a rename" refactor_tool(mode="rename").
"Find dead code" refactor_tool(mode="dead_code").

Use search vs graph traversal correctly

  • Use semantic_search_nodes for natural-language or fuzzy discovery.
  • Use query_graph_tool when the question is about exact structural relationships.
  • Use traverse_graph_tool when you already have a promising node and want to walk outward.
  • Use get_minimal_context_tool first if you are unsure where to start.

Flows and communities

Flows represent execution paths, usually rooted in entry points or decorators. Communities represent structural clusters and help with architecture-level reasoning. A good exploration answer usually explains both the local symbol and the surrounding flow/community context when relevant.

Refactor previews

The safe refactor path is preview first, apply second:

  1. refactor_tool(mode="rename", ...) or refactor_tool(mode="dead_code", ...)
  2. Inspect the returned edits and affected locations.
  3. Only then run apply_refactor_tool if the change is intentional.

Boundaries

  • For install/setup, use install-and-setup.
  • For diff review and PR comments, use review-changes.
  • For embeddings, custom languages, registry/daemon, wiki, and eval workflows, use integrations-and-extensions.

Verification anchors

Native tests that ground this route include search tests, flow tests, community tests, integration tests, refactor tests, visualization tests, and status/regression tests. These are validation anchors only; do not rely on them as runtime instructions.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351