Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Enhanced lsof (List Open Files) with interactive UI and structured output. View open files, network connections, and processes. **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-lsof/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 12% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 12% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-03 | ✓→✗ | ▼ Worse | 49% | 0% |
> Enhanced lsof with interactive UI, fzf search, and TSV/CSV/JSON output formats.
bash# Interactive view (default in TTY) x lsof # fzf interactive search x lsof fz # TSV format output x lsof --tsv
lsof is not available, x-cmd automatically downloads a portable version from trusted sources| Command | Description | |---------|-------------| | x lsof | Interactive TUI view (default in TTY) / TSV (piped) | | x lsof fz | Interactive fzf search | | x lsof --app | TUI application view | | x lsof --tsv | TSV format output | | x lsof --csv | CSV format output | | x lsof --raw | Raw format output | | x lsof --pidofport <port> | Find PID by port number |
bash# Interactive view (TTY default) x lsof # fzf interactive mode x lsof fz # TSV format for processing x lsof --tsv # CSV format x lsof --csv
bash# Find PID listening on port 8080 x lsof --pidofport 8080 # Find all processes using port 443 x lsof -i:443
bash# Filter with awk x lsof --tsv | awk -F'\t' '$2 == "TCP"' # Import to spreadsheet x lsof --csv > open_files.csv # Count files by process x lsof --tsv | cut -f1 | sort | uniq -c | sort -rn
| Field | Description | |-------|-------------| | COMMAND | Process name | | PID | Process ID | | USER | User name | | FD | File descriptor | | TYPE | File type (REG, DIR, IPv4, IPv6) | | DEVICE | Device number | | SIZE/OFF | File size or offset | | NODE | Inode number | | NAME | File name / network connection |
If lsof is not installed on your system, x-cmd automatically downloads a portable version from trusted sources (pixi/conda-forge) and manages it locally. No manual installation required.
Supported platforms:
lsof(8) manual page| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 15,452 | 3,058 | -80% | 1 | 1 | 0% | 981 | 1,096 | +12% | 0 | 0 | — |
case-02 | fail→pass | 30,461 | 4,542 | -85% | 1 | 1 | 0% | 1,310 | 1,110 | -15% | 0 | 0 | — |
case-03 | pass→fail | 18,552 | 8,392 | -55% | 1 | 1 | 0% | 1,336 | 1,991 | +49% | 0 | 0 | — |
case-04 | pass→pass | 11,015 | 11,626 | +6% | 1 | 1 | 0% | 1,771 | 2,231 | +26% | 0 | 0 | — |
case-05 | pass→pass | 26,197 | 15,034 | -43% | 1 | 1 | 0% | 2,386 | 3,006 | +26% | 0 | 0 | — |
case-06 | pass→pass | 9,200 | 11,696 | +27% | 1 | 1 | 0% | 1,056 | 1,295 | +23% | 0 | 0 | — |
case-07 | pass→pass | 5,662 | 3,251 | -43% | 1 | 1 | 0% | 829 | 1,119 | +35% | 0 | 0 | — |
case-08 | pass→pass | 9,240 | 4,922 | -47% | 1 | 1 | 0% | 887 | 1,093 | +23% | 0 | 0 | — |
case-09 | pass→pass | 18,529 | 3,758 | -80% | 1 | 1 | 0% | 1,210 | 1,241 | +3% | 0 | 0 | — |
case-10 | pass→pass | 12,317 | 4,450 | -64% | 1 | 1 | 0% | 1,705 | 1,239 | -27% | 0 | 0 | — |
case-11 | fail→fail | 19,139 | 13,508 | -29% | 1 | 1 | 0% | 1,721 | 2,011 | +17% | 0 | 0 | — |
case-12 | pass→pass | 19,425 | 4,995 | -74% | 1 | 1 | 0% | 1,418 | 1,181 | -17% | 0 | 0 | — |
case-13 | pass→pass | 9,528 | 146,280 | +1435% | 1 | 1 | 0% | 1,530 | 1,784 | +17% | 0 | 0 | — |
case-14 | fail→pass | 28,700 | 5,935 | -79% | 1 | 1 | 0% | 1,449 | 1,629 | +12% | 0 | 0 | — |
case-15 | pass→pass | 29,219 | 9,369 | -68% | 1 | 1 | 0% | 2,199 | 1,107 | -50% | 0 | 0 | — |
case-16 | pass→pass | 11,473 | 2,888 | -75% | 1 | 1 | 0% | 1,753 | 1,046 | -40% | 0 | 0 | — |
case-17 | pass→pass | 5,071 | 2,704 | -47% | 1 | 1 | 0% | 704 | 1,024 | +45% | 0 | 0 | — |
case-18 | pass→pass | 23,909 | 8,791 | -63% | 1 | 1 | 0% | 2,880 | 1,922 | -33% | 0 | 0 | — |
case-19 | pass→pass | 9,472 | 4,757 | -50% | 1 | 1 | 0% | 1,252 | 1,079 | -14% | 0 | 0 | — |
case-20 | fail→pass | 10,729 | 4,736 | -56% | 1 | 1 | 0% | 1,239 | 1,104 | -11% | 0 | 0 | — |
case-21 | pass→pass | 5,800 | 2,966 | -49% | 1 | 1 | 0% | 878 | 1,020 | +16% | 0 | 0 | — |
case-22 | pass→pass | 35,357 | 3,167 | -91% | 1 | 1 | 0% | 1,151 | 1,048 | -9% | 0 | 0 | — |
case-23 | pass→pass | 25,665 | 2,730 | -89% | 1 | 1 | 0% | 2,054 | 1,065 | -48% | 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 +13 percentage points is the difference between those two pass rates over the 23 comparable cases. 1 case got worse with the skill loaded, and it is 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.