AGENT SKILL

routing-analysis

Routes OSMnx nearest-node and nearest-edge matching, edge weighting, routing, route GeoDataFrames, street statistics, bearings, and orientation entropy.

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

01 前言 Front Matter

name
routing-analysis
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes OSMnx nearest-node and nearest-edge matching, edge weighting, routing, route GeoDataFrames, street statistics, bearings, and orientation entropy.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

routing-analysis

Use this sub-skill when you need to match coordinates to an existing OSMnx graph, add or inspect edge weights, solve routes, convert routes to GeoDataFrames, or compute network statistics, bearings, and orientation entropy.

Use this route for

  • nearest_nodes and nearest_edges on projected or unprojected graphs.
  • great_circle, euclidean, and add_edge_lengths for distance and length preparation.
  • add_edge_speeds and add_edge_travel_times for speed_kph and travel_time edge attributes.
  • shortest_path, batch origin/destination routing with cpus, and k_shortest_paths.
  • route_to_gdf for ordered edge-level route output.
  • count_streets_per_node, basic_stats, and the lower-level street-stat helpers.
  • add_edge_bearings and orientation_entropy on unprojected graphs.

Do not use this route for

  • Graph acquisition, geocoding, or OSM feature downloads. Use ../data-acquisition/SKILL.md.
  • Projection, graph/GeoDataFrame conversion, or persistence. Use ../graph-modeling-io/SKILL.md.
  • Plotting routes or orientation diagrams. Use ../elevation-visualization/SKILL.md.

Read first

  • references/routing-reference.md for routing, nearest-match, weight, and route-to-GeoDataFrame details.
  • references/analysis-reference.md for stats, bearings, and orientation analysis details.
  • references/troubleshooting.md for the predictable routing, weight, and optional-dependency failures.
  • scripts/routing_analysis_smoke.py --help for the deterministic local smoke check.

Skill-owned script

  • scripts/routing_analysis_smoke.py — builds a tiny deterministic graph and exercises lengths, speeds, travel times, routing, route conversion, stats, bearings, orientation entropy, and nearest matching when the optional dependencies are available.

Typical workflow

  1. Confirm the graph already exists and has the right CRS for the task.
  2. Add or verify edge lengths, then add speeds and travel times before routing by time.
  3. Use nearest_nodes or nearest_edges to map coordinates onto the graph.
  4. Solve one route, many routes, or k_shortest_paths as needed.
  5. Convert the node path to a route GeoDataFrame when you need ordered edge output.
  6. Compute stats or orientation metrics on an undirected view when appropriate.
  7. Run the smoke script when you need a fast local check.

Cross-links

  • If the graph still needs to be downloaded or geocoded, switch to ../data-acquisition/SKILL.md.
  • If you need to project, simplify, validate, convert, or save the graph, switch to ../graph-modeling-io/SKILL.md.
  • If the request is actually about plotting routes or orientation roses, switch to ../elevation-visualization/SKILL.md.

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