mdata
by sscccswa
DevOps & CloudBrief
A comprehensive system diagnostics and troubleshooting toolkit for DevOps engineers and system administrators.
Description
What This Skill Does
System Diagnostics gives AI agents tools to inspect server health, read log files, check service status, and test network connectivity on Linux and macOS. It wraps common diagnostic commands like df, ps, free, and netstat into structured tool calls an agent can invoke directly.
Consolidates the most common incident-response commands into a single agent-accessible interface, removing the need to open a separate terminal session mid-investigation.
When to Use It
- Checking disk usage before deploying a large build
- Identifying which process is consuming the most CPU during a slowdown
- Reading the last 100 lines of an nginx error log after a 502 alert
- Confirming a systemd service restarted successfully after a config change
- Running a DNS lookup to verify a new domain resolves correctly
Example Workflow
User asks: My server feels sluggish, what's going on?
- 1
Call system_summary to get an overview of CPU, memory, disk, and top processes
- 2
Call run_diagnostic with 'ps aux --sort=-%cpu | head -20' to identify the top offenders
- 3
Call read_log with '/var/log/syslog' to look for recent errors or warnings
- 4
Call check_service for any services showing high resource usage
A summary identifying the resource bottleneck, relevant log entries, and the status of implicated services
Installation
clawhub install sscccswa/mdataRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.