agentleFS
skyvanguardskyvanguard/infra-ops/skills/system-diagnostics/SKILL.md

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.

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
  1. Distinctive:

    Run ALL of the following checks appropriate to the platform:

    line 26
  2. Distinctive:

    NEVER run commands that modify system state

    line 112
  3. Distinctive:

    ALWAYS show the user what commands you're about to run

    line 113
  4. Distinctive:

    If a command fails, note it in the report and continue with others

    line 114
  5. Distinctive:

    Do NOT install any packages or tools

    line 115

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

PlatformCommand
WindowsGet-CimInstance Win32_Processor | Select LoadPercentage, Name, NumberOfCores
Linuxcat /proc/loadavg && nproc && lscpu | grep "Model name"
macOSsysctl -n vm.loadavg && sysctl -n hw.ncpu && sysctl -n machdep.cpu.brand_string

Memory:

PlatformCommand
WindowsGet-CimInstance Win32_OperatingSystem | Select TotalVisibleMemorySize, FreePhysicalMemory
Linuxfree -h
macOSvm_stat && sysctl -n hw.memsize

Disk:

PlatformCommand
WindowsGet-CimInstance Win32_LogicalDisk | Select DeviceID, Size, FreeSpace
Linuxdf -h
macOSdf -h

Top Processes (by CPU):

PlatformCommand
WindowsGet-Process | Sort-Object CPU -Descending | Select -First 10 Name, CPU, WorkingSet64
Linuxps aux --sort=-%cpu | head -11
macOSps aux -r | head -11

Top Processes (by Memory):

PlatformCommand
WindowsGet-Process | Sort-Object WorkingSet64 -Descending | Select -First 10 Name, WorkingSet64
Linuxps aux --sort=-%mem | head -11
macOSps aux -m | head -11

Uptime:

PlatformCommand
Windows(Get-CimInstance Win32_OperatingSystem).LastBootUpTime
Linuxuptime -p
macOSuptime

Network Interfaces:

PlatformCommand
WindowsGet-NetAdapter | Select Name, Status, LinkSpeed
Linuxip -br addr
macOS`ifconfig | grep -E "^[a-z]inet "`

Step 3: Analyze and Rate

For each category, assign a severity:

SeverityCriteria
OKWithin normal parameters
WARNINGApproaching limits (>70% usage)
CRITICALAt 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.