Install any skill in seconds. Free to start, no credit card required.
Get Started Free →CCIE-level routing protocol analysis - OSPF, BGP, EIGRP, IS-IS, static routes, RIB/FIB verification, redistribution audit, and convergence validation. Use when analyzing routing tables, debugging OSPF neighbors, checking BGP peering, verifying route redistribution, or validating convergence after changes.
.claude/skills/automateyournetwork-pyats-routing/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 59% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 278% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 260% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 179% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 41% | 0% |
Always start here. The routing table is the source of truth for forwarding decisions.
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route"}'
bash# OSPF routes only PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route ospf"}' # BGP routes only PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route bgp"}' # Connected and static PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route connected"}' PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route static"}'
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route vrf MGMT"}'
Analysis checklist:
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf"}'
Check: Router ID, areas configured, SPF run count (high = instability), reference bandwidth, stub/NSSA config, authentication.
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf neighbor"}'
Neighbor state analysis:
Common OSPF problems and their symptoms: | Symptom | Likely Cause | |---------|-------------| | Stuck in EXSTART | MTU mismatch between neighbors | | Stuck in INIT | Hello reaching neighbor but not returning (ACL, asymmetric routing) | | Neighbor flapping | Unstable link, hello/dead timer too aggressive, CPU too high to process hellos | | Missing routes | Area type mismatch (stub vs non-stub), missing redistribute or default-information originate | | Suboptimal routing | Cost misconfiguration, missing auto-cost reference-bandwidth |
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf interface"}'
Check per interface: Area assignment, network type (broadcast/point-to-point/NBMA), cost, hello/dead timers, DR/BDR election, authentication type, passive status.
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip ospf database"}'
LSA types to understand:
Red flags in LSDB:
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip bgp summary"}'
Check: Local AS, router ID, table version, total paths/best paths, per-neighbor state.
Neighbor state column meaning:
Idle → Not configured correctly, or administratively shutIdle (Admin) → neighbor shutdown configuredActive → TCP connection failing → check reachability, TTL, ACLsConnect → TCP SYN sent, no responseOpenSent → TCP connected, waiting for OPEN replyOpenConfirm → OPEN received, waiting for KEEPALIVEEstablished → HealthybashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip bgp neighbors"}'
Deep analysis per neighbor:
Common BGP problems: | Symptom | Likely Cause | |---------|-------------| | Stuck in Active | TCP connection failing — check ACL, reachability, update-source, ebgp-multihop | | Neighbor flapping | Unstable link, route-map causing route churn, max-prefix exceeded | | 0 prefixes received | No network or redistribute on remote side, outbound filter on remote, address-family not activated | | Routes not in RIB | Next-hop unreachable (next-hop-self missing for iBGP), route filtered by policy | | Suboptimal path | Weight/local-pref/AS-path/MED not set correctly |
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip bgp"}'
BGP best path selection order (memorize this):
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip eigrp neighbors"}'
Check: Hold timer (resetting to max means hellos received), uptime, SRTT, RTO, Q count (should be 0 — non-zero means retransmission queue backed up).
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip eigrp topology"}'
DUAL states:
EIGRP metric components (classic): Bandwidth, Delay, Reliability, Load, MTU (only BW and delay used by default).
EIGRP metric components (wide/named mode): Throughput, Latency, Reliability, Load, MTU, Extended attributes.
When multiple routing protocols are in use, check redistribution points:
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip protocols"}'
Redistribution checklist:
bashPYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show route-map"}' PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip prefix-list"}'
After any routing change, verify convergence:
bash# Verify route count PYATS_TESTBED_PATH=$PYATS_TESTBED_PATH python3 $MCP_CALL "${PYATS_PYTHON:-python3} -u $PYATS_MCP_SCRIPT" pyats_run_show_command '{"device_name":"R1","command":"show ip route summary"}'
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-18 | pass→pass | 14,181 | 11,985 | -15% | 1 | 1 | 0% | 2,567 | 5,387 | +110% | 0 | 0 | — |
case-19 | pass→pass | 10,773 | 3,962 | -63% | 1 | 1 | 0% | 1,985 | 3,682 | +85% | 0 | 0 | — |
case-01 | fail→fail | 9,062 | 27,217 | +200% | 1 | 1 | 0% | 1,540 | 3,307 | +115% | 0 | 0 | — |
case-02 | fail→fail | 10,940 | 5,428 | -50% | 1 | 1 | 0% | 1,883 | 3,252 | +73% | 0 | 0 | — |
case-03 | fail→fail | 16,369 | 4,676 | -71% | 1 | 1 | 0% | 2,756 | 3,274 | +19% | 0 | 0 | — |
case-04 | fail→pass | 15,664 | 8,772 | -44% | 1 | 1 | 0% | 2,946 | 4,684 | +59% | 0 | 0 | — |
case-05 | pass→pass | 5,409 | 6,404 | +18% | 1 | 1 | 0% | 1,106 | 4,218 | +281% | 0 | 0 | — |
case-06 | fail→pass | 6,058 | 4,915 | -19% | 1 | 1 | 0% | 1,062 | 4,016 | +278% | 0 | 0 | — |
case-07 | pass→pass | 10,601 | 7,152 | -33% | 1 | 1 | 0% | 1,813 | 4,273 | +136% | 0 | 0 | — |
case-08 | fail→pass | 5,796 | 3,885 | -33% | 1 | 1 | 0% | 1,045 | 3,760 | +260% | 0 | 0 | — |
case-09 | pass→pass | 16,064 | 15,099 | -6% | 1 | 1 | 0% | 2,634 | 5,750 | +118% | 0 | 0 | — |
case-10 | fail→pass | 8,769 | 5,316 | -39% | 1 | 1 | 0% | 1,414 | 3,940 | +179% | 0 | 0 | — |
case-11 | fail→fail | 11,268 | 9,341 | -17% | 1 | 1 | 0% | 1,869 | 4,752 | +154% | 0 | 0 | — |
case-12 | pass→pass | 9,715 | 5,366 | -45% | 1 | 1 | 0% | 1,611 | 4,021 | +150% | 0 | 0 | — |
case-13 | fail→pass | 13,126 | 3,653 | -72% | 1 | 1 | 0% | 2,598 | 3,662 | +41% | 0 | 0 | — |
case-14 | pass→pass | 8,454 | 8,807 | +4% | 1 | 1 | 0% | 1,650 | 4,579 | +178% | 0 | 0 | — |
case-15 | fail→pass | 5,089 | 3,623 | -29% | 1 | 1 | 0% | 849 | 3,651 | +330% | 0 | 0 | — |
case-16 | fail→pass | 4,999 | 2,940 | -41% | 1 | 1 | 0% | 919 | 3,518 | +283% | 0 | 0 | — |
case-17 | pass→pass | 9,986 | 9,124 | -9% | 1 | 1 | 0% | 1,696 | 4,607 | +172% | 0 | 0 | — |
case-20 | pass→pass | 5,317 | 4,010 | -25% | 1 | 1 | 0% | 1,171 | 3,831 | +227% | 0 | 0 | — |
case-21 | pass→pass | 5,737 | 3,775 | -34% | 1 | 1 | 0% | 1,186 | 3,673 | +210% | 0 | 0 | — |
case-22 | pass→fail | 12,797 | 4,824 | -62% | 1 | 1 | 0% | 2,274 | 3,289 | +45% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 18 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +27 percentage points is the difference between those two pass rates over the 18 comparable cases. 3 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.