mdata
由 sscccswa 提供
DevOps & Cloud简介
A comprehensive system diagnostics and troubleshooting toolkit for DevOps engineers and system administrators.
描述
该技能的功能
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.
何时使用
- 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
示例工作流
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
安装
clawhub install sscccswa/mdata运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。