lsof
The lsof module provides a more intuitive way to interact with the system's open file list. It supports an interactive TUI for exploration and allows exporting results in common data formats.
Works with
Agent Skills format with YAML frontmatter. Claude Code reads it as-is.
--- name: "lsof" description: "The lsof module provides a more intuitive way to interact with the system's open file list. It supports an interactive TUI for exploration and allows exporting results in common data formats." license: "MIT" --- # lsof - List Open Files Enhancement The `lsof` module provides a more intuitive way to interact with the system's open file list. It supports an interactive TUI for exploration and allows exporting results in common data formats. ## When to Activate - When investigating file locking issues or identifying process ownership of files. - When performing interactive searches of open files using FZF. - When exporting open file data to CSV or TSV for script processing. - When needing thread-level details (`--task`) for open files. ## Core Principles & Rules - **Interactive TUI**: Automatically displays a TUI when connected to a terminal; otherwise, defaults to TSV. - **Data-Centric**: Use `--csv` or `--tsv` when the output is intended for automation or external analysis. - **Searchable**: Leverage the `fz` subcommand for fast interactive filtering. ## Patterns & Examples ### Interactive Search ```bash # Interactively search and view open files via FZF x lsof fz ``` ### Export to CSV ```bash # Output current open files as a CSV for processing x lsof --csv ``` ### View Thread Info ```bash # Display task (thread) IDs and names for open files x lsof --task ``` ## Checklist - [ ] Confirm if the user needs an interactive view or a static data export. - [ ] Verify if thread-level information is required. - [ ] Ensure the correct export format (CSV/TSV) is selected if needed.
More General & Other skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
grill-with-docs
mattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

