Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

gasp-diagnostics

БесплатноЗапускает вложенные скриптыНе проверен

System diagnostics using GASP (General AI Specialized Process monitor). Use when user asks about Linux system performance, requests system checks, mentions…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub

Об этом скилле

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")
    
  2. Hostname formats supported

    • mDNS/local: accelerated.local, hyperion.local
    • DNS names: proxmox1, dev-server, workstation
    • IP addresses: 192.168.1.100
  3. Default port: 8080 (unless user specifies otherwise)

  4. Error handling

    • Host unreachable: Inform user, suggest checking if GASP is running
    • Port closed/refused: Try suggesting systemctl status gasp on the host
    • JSON parse error: GASP may not be installed or wrong endpoint
    • Timeout: Network issue or host down
  5. 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:

  • "Check hyperion for me"
  • "What's going on with accelerated.local?"
  • "Is proxmox1 having issues?"
  • "Compare hyperion and proxmox1"
  • "Why is my system slow?" (fetch localhost)
  • "Diagnose 192.168.1.50"
  • "Check all my proxmox nodes"

Metric Interpretation

Health Summary

  • summary.health: Quick assessment
    • "healthy": No action needed
    • "degraded": Issues present but not critical
    • "critical": Immediate attention required
  • summary.concerns[]: Pre-analyzed issues to investigate first
  • summary.recent_changes[]: Context for current state

CPU Analysis

Load ratio = load_avg_1m / cores:

  • < 0.7: Normal usage
  • 0.7-1.0: Busy but healthy
  • 1.0-2.0: Saturated (may cause slowness)
  • > 2.0: Severe overload

Key indicators:

  • trend: "increasing" is concerning even if current load is acceptable
  • baseline_load: Delta from baseline is more important than absolute value
  • top_processes[]: Check for unexpected CPU hogs

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:

  • io_wait_ms > 10: Significant disk bottleneck
  • queue_depth consistently high: Disk can't keep up
  • High read_iops or write_iops with slow response: Disk performance issue

Storage capacity:

  • usage_percent > 90%: Running out of space
  • usage_percent > 95%: Critical - will cause failures soon

Network

  • rx_bytes_per_sec / tx_bytes_per_sec: Check for unexpected traffic spikes
  • errors > 0 or drops > 0: Network hardware/configuration issue
  • Large number of time_wait connections: May indicate connection leak

Process Intelligence

  • zombie > 0: Process management bug (usually benign but indicates issue)
  • Processes in D state: Stuck in uninterruptible sleep (disk or kernel issue)
  • new_since_last[]: Check for unexpected process spawning

Systemd Services

  • units_failed > 0: Check failed_units[] array
  • recent_restarts[]: May indicate instability

Log Summary

  • errors_last_interval: Elevated error rate indicates problems
  • message_rate_per_min: Spikes suggest logging storm or serious issue
  • Review recent_errors[] for specific problems

Desktop Metrics (when present)

  • gpu.utilization_pct vs CPU: Identify GPU-bound vs CPU-bound workloads
  • gpu.temperature_c > 85: Thermal throttling likely
  • active_window: Provides context for resource usage

Common System Patterns

Development Workstation (Expected)

  • High memory usage from IDEs, browsers
  • Firefox/Chrome often in top memory consumers
  • Docker daemon using CPU/memory
  • VSCode, JetBrains IDEs in top processes
  • Baseline load: 10-30% of cores

Container Host (Expected)

  • Elevated baseline load (many processes)
  • dockerd/containerd in top processes
  • 50-70% memory usage normal
  • Many processes in top list

Proxmox/Virtualization Host (Expected)

  • Baseline load proportional to VM count
  • Consistent low-level resource usage
  • ~2GB overhead for Proxmox itself
  • Multiple QEMU/KVM processes

GPU Workload (Expected)

  • High GPU utilization with lower CPU
  • Significant GPU memory usage
  • Common for: rendering, ML inference, gaming

Multi-Host Analysis

When checking multiple hosts:

Полный SKILL.md на GitHub

Установить gasp-diagnostics в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdreferences/common-patterns.mdreferences/diagnostic-workflows.mdscripts/fetch-gasp.shskill-report.json

FAQ

Что делает скилл gasp-diagnostics?

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 hosts via HTTP or interpret provided JSON output.

Как установить скилл gasp-diagnostics?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл gasp-diagnostics запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить gasp-diagnostics с