system-diagnostics
Skill1 starsChanged 10 months agoMITView on GitHub
Use when the user reports system slowness, wants a health check, or needs to understand current system state. Runs real diagnostic commands and produces a structured report.
In this repository9 other files it gives its agents.
- container-opsSkill
- disk-cleanupSkill
- incident-triageSkill
- log-analyzerSkill
- network-troubleshooterSkill
- performance-optimizerSkill
- security-auditorSkill
- service-monitorSkill
- ssl-checkerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 26
Run ALL of the following checks appropriate to the platform:
- Distinctive: line 112
NEVER run commands that modify system state
- Distinctive: line 113
ALWAYS show the user what commands you're about to run
- Distinctive: line 114
If a command fails, note it in the report and continue with others
- Distinctive: line 115
Do NOT install any packages or tools
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
System Diagnostics
Overview
Perform a comprehensive system health check by executing platform-appropriate commands. Produce a structured diagnostic report with findings, severity ratings, and actionable recommendations.
Process
Step 1: Detect Platform
Determine the operating system before running any commands:
- Windows: Check for `$env:OS` or `systeminfo`
- Linux: Check for `/etc/os-release`
- macOS: Check for `sw_vers`Step 2: Collect System Information
Run ALL of the following checks appropriate to the platform:
CPU & Load:
| Platform | Command |
| Windows | Get-CimInstance Win32_Processor | Select LoadPercentage, Name, NumberOfCores |
| Linux | cat /proc/loadavg && nproc && lscpu | grep "Model name" |
| macOS | sysctl -n vm.loadavg && sysctl -n hw.ncpu && sysctl -n machdep.cpu.brand_string |
Memory:
| Platform | Command |
| Windows | Get-CimInstance Win32_OperatingSystem | Select TotalVisibleMemorySize, FreePhysicalMemory |
| Linux | free -h |
| macOS | vm_stat && sysctl -n hw.memsize |
Disk:
| Platform | Command |
| Windows | Get-CimInstance Win32_LogicalDisk | Select DeviceID, Size, FreeSpace |
| Linux | df -h |
| macOS | df -h |
Top Processes (by CPU):
| Platform | Command |
| Windows | Get-Process | Sort-Object CPU -Descending | Select -First 10 Name, CPU, WorkingSet64 |
| Linux | ps aux --sort=-%cpu | head -11 |
| macOS | ps aux -r | head -11 |
Top Processes (by Memory):
| Platform | Command |
| Windows | Get-Process | Sort-Object WorkingSet64 -Descending | Select -First 10 Name, WorkingSet64 |
| Linux | ps aux --sort=-%mem | head -11 |
| macOS | ps aux -m | head -11 |
Uptime:
| Platform | Command |
| Windows | (Get-CimInstance Win32_OperatingSystem).LastBootUpTime |
| Linux | uptime -p |
| macOS | uptime |
Network Interfaces:
| Platform | Command | |
| Windows | Get-NetAdapter | Select Name, Status, LinkSpeed | |
| Linux | ip -br addr | |
| macOS | `ifconfig | grep -E "^[a-z] | inet "` |
Step 3: Analyze and Rate
For each category, assign a severity:
| Severity | Criteria |
| OK | Within normal parameters |
| WARNING | Approaching limits (>70% usage) |
| CRITICAL | At or exceeding limits (>90% usage) |
Step 4: Produce Report
Format the output as a structured diagnostic report:
## System Diagnostics Report
**Host:** [hostname] | **OS:** [os] | **Time:** [timestamp]
### Summary
| Category | Status | Details |
|----------|--------|---------|
| CPU | [OK/WARNING/CRITICAL] | [brief] |
| Memory | [OK/WARNING/CRITICAL] | [brief] |
| Disk | [OK/WARNING/CRITICAL] | [brief] |
| Network | [OK/WARNING/CRITICAL] | [brief] |
### Findings
[Detailed findings per category]
### Recommendations
[Actionable items sorted by severity]Rules
- NEVER run commands that modify system state
- ALWAYS show the user what commands you're about to run
- If a command fails, note it in the report and continue with others
- Do NOT install any packages or tools
- Report raw numbers AND percentages for clarity
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

