Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Enhanced netstat module with cached data and structured output. View network connections, routing tables, and interface statistics in interactive or TSV/CSV formats. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.
.claude/skills/x-cmd-x-nets/SKILL.md| Model | Eval pass | Runs |
|---|---|---|
| gemini-3.6-flash | 100% | 3 |
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -51% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -34% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -17% | 0% |
> Enhanced netstat with data caching and structured output formats.
bash# Update/collect network data (creates cache) x nets update # List available tables x nets ls # View a specific table x nets view internet
| Command | Description | |---------|-------------| | x nets update | Collect and cache network data | | x nets ls | List all available tables | | x nets view <table> | View table in interactive mode | | x nets view --tsv <table> | View table in TSV format | | x nets view --csv <table> | View table in CSV format |
bash# Collect and cache all network data x nets update # This creates cached data in ~/.x-cmd.root/data/nets/
bash# Show all available tables x nets ls # Common tables: # - internet : TCP/UDP connections # - route : Routing table # - interface : Network interface statistics
bash# Interactive mode - select table to view x nets view # View specific table (interactive) x nets view internet # View in TSV format (for scripting) x nets view --tsv internet # View in CSV format x nets view --csv route
bash# Filter connections with awk x nets view --tsv internet | awk -F'\t' '$1 == "TCP"' # Count connections by state x nets view --tsv internet | cut -f4 | sort | uniq -c # Import into spreadsheet x nets view --csv route > route.csv
| Table | Description | |-------|-------------| | internet | TCP/UDP connections (like netstat) | | route | Routing table information | | interface | Network interface statistics |
| Field | Description | |-------|-------------| | Protocol | TCP/UDP | | Local Address | Local IP:port | | Foreign Address | Remote IP:port | | State | Connection state (ESTABLISHED, LISTEN, etc.) |
| Field | Description | |-------|-------------| | Destination | Target network | | Gateway | Next hop | | Flags | Route flags | | Interface | Network interface |
bash# 1. Update data (do this first or when data is stale) x nets update # 2. List available tables x nets ls # 3. View specific table x nets view internet # 4. Or process with other tools x nets view --tsv internet | x csv sql "SELECT * WHERE State = 'ESTABLISHED'"
netstat, ss, or /proc/net datanetstat and route commandsnetstat commandData is cached in ~/.x-cmd.root/data/nets/latest/ for faster access.
netstat(8) manual page| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 44,912 | 9,253 | -79% | 1 | 1 | 0% | 2,485 | 1,215 | -51% | 0 | 0 | — |
case-02 | fail→pass | 21,191 | 8,750 | -59% | 1 | 1 | 0% | 1,959 | 1,289 | -34% | 0 | 0 | — |
case-03 | fail→pass | 8,426 | 4,020 | -52% | 1 | 1 | 0% | 1,344 | 1,394 | +4% | 0 | 0 | — |
case-04 | fail→pass | 10,941 | 3,000 | -73% | 1 | 1 | 0% | 1,490 | 1,192 | -20% | 0 | 0 | — |
case-05 | fail→pass | 11,638 | 2,926 | -75% | 1 | 1 | 0% | 1,428 | 1,187 | -17% | 0 | 0 | — |
case-06 | fail→pass | 13,401 | 3,533 | -74% | 1 | 1 | 0% | 1,981 | 1,290 | -35% | 0 | 0 | — |
case-07 | fail→pass | 8,079 | 3,458 | -57% | 1 | 1 | 0% | 1,117 | 1,234 | +10% | 0 | 0 | — |
case-08 | fail→pass | 19,944 | 6,706 | -66% | 1 | 1 | 0% | 2,169 | 1,657 | -24% | 0 | 0 | — |
case-09 | fail→pass | 18,319 | 4,916 | -73% | 1 | 1 | 0% | 2,811 | 1,338 | -52% | 0 | 0 | — |
case-10 | fail→pass | 9,423 | 3,213 | -66% | 1 | 1 | 0% | 1,677 | 1,178 | -30% | 0 | 0 | — |
case-11 | fail→pass | 13,330 | 6,853 | -49% | 1 | 1 | 0% | 1,963 | 1,644 | -16% | 0 | 0 | — |
case-12 | pass→pass | 27,733 | 2,810 | -90% | 1 | 1 | 0% | 2,268 | 1,188 | -48% | 0 | 0 | — |
case-13 | pass→pass | 15,333 | 2,749 | -82% | 1 | 1 | 0% | 2,507 | 1,135 | -55% | 0 | 0 | — |
case-14 | pass→pass | 7,907 | 6,231 | -21% | 1 | 1 | 0% | 1,084 | 1,108 | +2% | 0 | 0 | — |
case-15 | pass→pass | 15,639 | 2,383 | -85% | 1 | 1 | 0% | 2,634 | 1,070 | -59% | 0 | 0 | — |
case-16 | pass→pass | 16,171 | 2,669 | -83% | 1 | 1 | 0% | 2,938 | 1,119 | -62% | 0 | 0 | — |
case-17 | fail→pass | 12,585 | 3,549 | -72% | 1 | 1 | 0% | 1,506 | 1,250 | -17% | 0 | 0 | — |
case-18 | pass→pass | 14,336 | 3,001 | -79% | 1 | 1 | 0% | 2,354 | 1,192 | -49% | 0 | 0 | — |
case-19 | pass→pass | 13,974 | 3,808 | -73% | 1 | 1 | 0% | 2,249 | 1,121 | -50% | 0 | 0 | — |
case-20 | pass→pass | 6,260 | 3,465 | -45% | 1 | 1 | 0% | 934 | 1,148 | +23% | 0 | 0 | — |
case-21 | pass→pass | 10,102 | 10,605 | +5% | 1 | 1 | 0% | 1,638 | 1,621 | -1% | 0 | 0 | — |
case-22 | fail→pass | 14,227 | 6,911 | -51% | 1 | 1 | 0% | 1,956 | 1,488 | -24% | 0 | 0 | — |
case-23 | fail→pass | 6,589 | 5,206 | -21% | 1 | 1 | 0% | 984 | 1,607 | +63% | 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. 23 cases were attempted. The headline lift of +61 percentage points is the difference between those two pass rates over the 23 comparable cases.
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.