AGENT SKILL

process-manager

Monitor and manage system processes

License 许可
MIT
所属仓库
gebruder/wirken
最近更新
2026-11-14
Stars
★ 214
Forks
15

01 前言 Front Matter

name
process-manager
description
Monitor and manage system processes
permissions
{ "tools": { "allow": [ "exec" ] }, "egress": { "mode": "deny" }, "inference": { "allow": [ "*" ] } }
disable-model-invocation
false

02 资源文件 3

03 SKILL.md 正文

Process Manager

Monitor and manage system processes.

List processes

  • All: ps aux
  • By CPU: ps aux --sort=-%cpu | head -15
  • By memory: ps aux --sort=-%mem | head -15
  • By name: pgrep -af "<name>"
  • Tree: pstree -p | head -40

Manage processes

  • Kill by PID: kill <pid>
  • Force kill: kill -9 <pid>
  • Kill by name: pkill <name>
  • Kill by port: fuser -k <port>/tcp

Monitor

  • Find by port: ss -tlnp | grep <port>
  • Open files: lsof -p <pid> | head -20
  • File descriptors: ls /proc/<pid>/fd | wc -l
  • Watch in real-time: top -bn1 | head -20

Services (systemd)

  • Status: systemctl status <service>
  • Start/stop: systemctl start|stop|restart <service>
  • Logs: journalctl -u <service> --no-pager -n 30
  • List running: systemctl list-units --type=service --state=running

04 同仓库更多 Skills