process-management

A set of commands for viewing and controlling programs running on a computer. A process is one active program or task, identified by a name or process ID.

In plain words
What is it for?
List and search processes, find which program uses a port, inspect CPU and memory use, view process trees, start background jobs, and stop processes or services.
Why use it?
It helps find stuck or resource-heavy programs and manage background tasks and system services.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bug-ops/zeph/process-management
Any agent
npx skills add bug-ops/zeph --skill process-management
Clone the repo
git clone --depth 1 https://github.com/bug-ops/zeph

Made for: Claude Code, Codex.

Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,777 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00080 $0.02777
Opus 5 $0.00040 $0.01388
Sonnet 5 $0.00016 $0.00555
Haiku 4.5 $0.00008 $0.00278

Measured 2d ago against content hash f877a635f5fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

process-management scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo nice -n -10 command
.zeph/skills/process-management/SKILL.md · 491 lines

How it starts

The opening of the file, as written. The whole thing — 491 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Process Management

Quick Reference

Task Command
List all processes ps aux
Find process by name pgrep -a name
Find process on port lsof -i :8080
Kill by PID kill PID
Kill by name pkill name
Force kill kill -9 PID
Process tree pstree
Interactive monitor top or htop
Background a command command &
List background jobs jobs

Viewing Processes

ps — Process Status

# All processes (BSD-style, most common)
ps aux

# All processes (POSIX-style)
ps -ef

# Process tree (Linux)
ps -ef --forest

# Specific user's processes
ps -u username

# Specific process by PID
ps -p 1234

# Specific process by name
ps aux | grep nginx

# Custom output columns
ps -eo pid,ppid,user,%cpu,%mem,vsz,rss,stat,start,time,comm

# Sort by CPU usage
ps aux --sort=-%cpu | head -20

# Sort by memory usage
ps aux --sort=-%mem | head -20

# Show threads
ps -eLf                  # Linux
ps -M PID                # macOS

# Show full command line
ps auxww

# Count processes
ps aux | wc -l

Process Status Codes (STAT column)

Code Meaning
R Running or runnable
S Sleeping (interruptible)
D Uninterruptible sleep (I/O wait)
T Stopped (by signal or debugger)
Z Zombie (terminated but not reaped)
I Idle kernel thread
< High priority
N Low priority (nice)
s Session leader
l Multi-threaded
+ Foreground process group

top — Interactive Process Monitor

# Start top
top

# Sort by CPU (default)
# Press: P (CPU), M (memory), T (time), N (PID)

# Show specific user
top -u username

# Non-interactive mode (batch, for scripting)
top -b -n 1

# Refresh interval (seconds)
top -d 2

# Show specific number of processes
top -n 1 -b | head -20

# macOS top: sort by CPU
top -o cpu

# macOS top: sort by memory
top -o mem

htop — Enhanced Interactive Monitor

htop                             # start htop
htop -u username                 # filter by user
htop -t                          # tree view
htop --sort-key=PERCENT_CPU      # sort by CPU

Read the full file on GitHub · 491 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 491 lines · 80 tokens per session scan B f877a635f5fa

Subscribe to this mod's changes

process-management is a skill published in the GitHub repository bug-ops/zeph (57 stars, last pushed 7d ago), licensed MIT. It adds 80 tokens to every session and 2,777 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.