Ps

From x-cmd/x-cmd · View interactive version

Ps is an AI agent skill from the GitHub repository x-cmd/x-cmd. Enhanced `ps` process viewer with interactive UI, fzf support, AI filtering, and CSV/JSON/TSV output 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.

How to use this skill

Skill file

x ps - Process Status Viewer

Enhanced process viewer with interactive UI, multiple output formats, and AI-powered filtering.


Quick Start

# Interactive process viewer (default)
x ps

# List all processes with details
x ps aux

Features


Commands

| Command | Description |

|---------|-------------|

| x ps | Interactive process viewer (default) |

| x ps aux | Show all processes |

| x ps fz | Interactive fzf view |

| x ps --csv | CSV format output |

| x ps --json | JSON format output |

| x ps --tsv | TSV format output |


Examples

Interactive View

# Default interactive mode
x ps

# Use fzf for fuzzy search
x ps fz

Format Conversion

# Convert ps output to JSON
ps aux | x ps --tojson

# Get CSV format
x ps --csv

# Process and convert
ps -ef | x ps --tocsv

AI-Powered Filtering

# Natural language process selection
x ps = "heavy cpu processes"
x ps = "nodejs processes using most memory"

Process Management

# View and kill from interactive UI
x ps
# Select process → Choose action (dump, TERM, INT, KILL)

Data Pipeline

# Chain with other tools
x ps --csv | x csv sql "SELECT * WHERE CPU > 5"
x ps --json | jq '.[] | select(.USER == "root")'

Platform Notes

Linux

macOS

Windows


Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.