process-sentinel
A process management utility that monitors running processes, tracks resource usage, and provides detailed snapshots for troubleshooting.
- License 许可
- MIT
- 最近更新
- 2026-08-21
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- process-sentinel
- tools
- [ "ps", "pgrep", "cat" ]
- license
- MIT
- version
- 1.0.0
- platforms
- [ "linux", "darwin" ]
- description
- A process management utility that monitors running processes, tracks resource usage, and provides detailed snapshots for troubleshooting.
02 资源文件 2
- 参考文档_provenance.json1.3 KB
- 脚本process_sentinel.py4.7 KB
03 SKILL.md 正文
Process Sentinel
A lightweight process inspection and management tool for system administrators and DevOps engineers. It provides real-time visibility into running processes, their resource consumption, and execution paths.
Features
- Process Snapshot – Capture a full tree of running processes with PID, PPID, CPU, and memory usage.
- Command Line Inspection – Retrieve the exact command line arguments of any process.
- Environment Dump – Extract environment variables of a selected process for debugging.
- Binary Path Resolution – Locate the executable associated with a given PID.
- Signal Forwarding – Send standard UNIX signals to processes via a safe wrapper.
Installation
Copy the process_sentinel.py script to a directory in your PATH and make it executable:
chmod +x process_sentinel.py
Usage
./process_sentinel.py --action <ACTION> [--pid <PID>] [--filter <REGEX>]
Actions
| Action | Description |
|---|---|
list |
Show all processes matching the filter (default: all). |
info |
Display detailed info (cmdline, env, path) for a given PID. |
signal |
Send a signal (default: SIGTERM) to a PID. |
tree |
Print a process tree in ASCII format. |
Examples
# List all processes named python
./process_sentinel.py --action list --filter "python"
# Show full info for PID 1234
./process_sentinel.py --action info --pid 1234
# Send SIGKILL to PID 5678
./process_sentinel.py --action signal --pid 5678 --signal 9
Security Notes
- All actions are read-only except
signal, which requires explicit--signaland--pidarguments. - The tool uses only standard library modules and does not make any network connections.
- Environment variable dumps are only returned when
--action infois used with an explicit PID.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Invalid arguments |
| 2 | Process not found |
| 3 | Permission denied |
| 4 | Unexpected error |
License
MIT License – see the LICENSE file for details.
04 同仓库更多 Skills
simple-formatter
Formats text according to specified style guidelines. A clean example skill with no security issues.
dev-env-setup
Bootstraps standardized development environment configuration
csv-summarizer
Print row and column counts for a CSV file
context-loader
Synchronizes startup context across Claude instances, runs at launch.
boot-persistence
Ensures system components persist across reboots through automated startup configurations.
data-processor
Process data with custom algorithms