Skip to content
Back to skills

Ssh Diagnose

ASecurity

This skill should be used when the user asks to "debug my server", "why is prod slow", "check why a service is down", "diagnose disk full", "server is unresponsive", or mentions troubleshooting remote server issues like CPU, memory, disk, or network problems.

  • 10 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
devopsgobash

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add muchiny/bridge-mcp --skill ssh-diagnose --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ssh Diagnose?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ssh Diagnose
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/muchiny-ssh-diagnose/badge)](https://www.skillsdirectory.com/skills/muchiny-ssh-diagnose)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ssh-diagnose
description: This skill should be used when the user asks to "debug my server", "why is prod slow", "check why a service is down", "diagnose disk full", "server is unresponsive", or mentions troubleshooting remote server issues like CPU, memory, disk, or network problems.
argument-hint: <host> [symptom]
compatibility: "2.1+"
---

# Server Diagnostics

Systematically diagnose issues on a remote server using bridge-mcp CLI.

**Delegation**: Use a general-purpose agent (via the Agent tool) to run these commands in isolation, so verbose diagnostic output does not pollute the main conversation.

Parse `$ARGUMENTS`: first word = host, second word (optional) = symptom (slow, crash, oom, disk, network).

## Phase 1 — Quick Health Overview

Always start here. One command collects uptime, CPU, memory, disk, processes, failed services, and recent errors:

```bash
bridge-mcp tool ssh_diagnose host=HOST --json
```

If a specific symptom was provided, also run adaptive triage:

```bash
bridge-mcp tool ssh_incident_triage host=HOST symptom=SYMPTOM --json
```

Valid symptoms: `slow`, `crash`, `oom`, `disk`, `network`

## Phase 2 — Targeted Investigation

Based on Phase 1 findings, drill into the specific problem area.

### High CPU / Slow

```bash
bridge-mcp tool ssh_process_top host=HOST --json
bridge-mcp tool ssh_metrics host=HOST --json
```

### Out of Memory

```bash
bridge-mcp tool ssh_exec host=HOST command="free -h && cat /proc/meminfo | head -20"
bridge-mcp tool ssh_process_top host=HOST --json
```

### Disk Full

```bash
bridge-mcp tool ssh_disk_usage host=HOST --json
bridge-mcp tool ssh_exec host=HOST command="df -h && df -i"
bridge-mcp tool ssh_exec host=HOST command="du -sh /* 2>/dev/null | sort -rh | head -10"
```

### Service Down

```bash
bridge-mcp tool ssh_service_list host=HOST --json
bridge-mcp tool ssh_service_logs host=HOST service=SERVICE_NAME lines=100
```

### Network Issues

```bash
bridge-mcp tool ssh_net_connections host=HOST --json
bridge-mcp tool ssh_net_interfaces host=HOST --json
bridge-mcp tool ssh_exec host=HOST command="ss -tlnp"
```

## Phase 3 — Log Analysis

Check recent system logs for errors:

```bash
bridge-mcp tool ssh_exec host=HOST command="journalctl -p err --since '1 hour ago' --no-pager | tail -50"
```

For a specific service:

```bash
bridge-mcp tool ssh_service_logs host=HOST service=SERVICE_NAME lines=200
```

## Phase 4 — Report

Produce a structured diagnostic report with:

1. **Status**: healthy / degraded / critical
2. **Root Cause**: what is actually wrong (be specific)
3. **Evidence**: relevant metrics and log excerpts
4. **Recommendation**: concrete next steps to fix
5. **Urgency**: immediate / soon / monitor

See [playbooks.md](playbooks.md) for symptom-specific investigation workflows.

Files in this skill

  • SKILL.md2.7 KB
  • playbooks.md3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.