Gasp diagnostics

From aiskillstore/marketplace · View interactive version

Gasp diagnostics is an AI agent skill from the GitHub repository aiskillstore/marketplace. System diagnostics using GASP (General AI Specialized Process monitor). Use when user asks about Linux system performance, requests system checks, mentions GASP, asks to diagnose hosts, or says things like "check my system" or "what's wrong with [hostname]". Can actively fetch GASP metrics from host

How to use this skill

Skill file

GASP Diagnostics

Enables comprehensive Linux system diagnostics using GASP's AI-optimized monitoring output. Actively fetches metrics from hosts and provides intelligent analysis with context-aware interpretation.

Fetching GASP Metrics

When user mentions a host or requests a system check:

  1. Fetch the metrics endpoint

```

web_fetch("http://{hostname}:8080/metrics")

```

  1. Hostname formats supported
  1. Default port: 8080 (unless user specifies otherwise)
  1. Error handling
  1. Multi-host queries: If user mentions multiple hosts, fetch each in sequence and compare

Quick Diagnosis Workflow

For any system check request:

  1. Fetch metrics from specified host(s)
  2. Check summary first: Look at summary.health and summary.concerns[]
  3. Identify issues using metric correlations below
  4. Report findings with severity and specific recommendations

Trigger Examples

These user messages should trigger this skill and active fetching:

Metric Interpretation

Health Summary

CPU Analysis

Load ratio = load_avg_1m / cores:

Key indicators:

Memory Analysis

Red flags (priority order):

  1. oom_kills_recent > 0: CRITICAL - system killed processes, find memory hog immediately
  2. swap_used_mb > 0: Performance degradation in progress
  3. pressure_pct > 5%: System struggling with memory contention
  4. usage_percent > 90%: Getting close to limits

Important: Linux uses memory for cache, so high usage_percent alone is normal. Focus on pressure and swap.

Disk I/O

Saturation indicators:

Storage capacity:

Network

Process Intelligence

Systemd Services

Log Summary

Desktop Metrics (when present)

Common System Patterns

Development Workstation (Expected)

Container Host (Expected)

Proxmox/Virtualization Host (Expected)

GPU Workload (Expected)

Multi-Host Analysis

When checking multiple hosts:

  1. Fetch all hosts first (parallel thinking)
  2. Compare baselines: Identify outliers
  3. Look for correlations: Network event vs individual host issue
  4. Check recent_changes: Migrations, deployments, package updates
  5. Identify the odd one out: Which host differs from the pattern?

Example analysis pattern:

Host 1: Load 2.1/8 cores (26%), normal
Host 2: Load 7.8/8 cores (97%), ATTENTION NEEDED  ← outlier
Host 3: Load 1.9/8 cores (24%), normal

Focus on Host 2 - investigate top_processes

Diagnosis Strategies

"System is slow"

  1. Check load ratio (CPU saturation?)
  2. Check io_wait (disk bottleneck?)
  3. Check memory pressure (swapping?)
  4. Identify top consumer in relevant category
  5. Assess if consumption is expected for that process

"High memory usage"

  1. First: Check pressure_pct (real issue or just cache?)
  2. Check swap_used_mb (actual problem?)
  3. Find top memory consumers
  4. Check process uptime (leak or normal?)
  5. Compare to baseline (delta more important than absolute)

"Unexpected behavior"

  1. Check recent_changes for clues
  2. Review systemd failed units
  3. Check recent_errors in logs
  4. Look for new processes since last snapshot
  5. Compare current metrics to baseline

Reporting Guidelines

When reporting findings:

  1. Start with verdict: "Healthy", "Issue found", "Critical problem"
  2. Be specific: Name the process/service causing issues
  3. Provide context: Is this expected for this host type?
  4. Give actionable recommendations: What should user do?
  5. Include relevant metrics: Back up findings with data

Good example:

"Issue found on accelerated.local: Memory pressure at 8.2%. The postgres container started swapping 2 hours ago and is now using 12GB RAM (up from 4GB baseline). This likely indicates a query leak. Recommend checking recent queries and restarting the container."

Bad example:

"Memory usage is high. You might want to look into it."

Advanced Diagnostics

For complex issues or when initial analysis is unclear, consult:

Using with Provided JSON

If user pastes GASP JSON instead of requesting a fetch:

  1. Analyze the provided JSON using all guidance above
  2. Don't attempt to fetch (data already provided)
  3. Apply same interpretation and reporting guidelines
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.