ssh-diagnose

ssh-diagnose is a skill for Claude Code, Codex from muchiny/bridge-mcp. It costs 63 tokens per session (724 once invoked), scanned A, original, MIT.

A procedure for investigating problems on a remote server, such as slowness, crashes, memory exhaustion, full disks, or network issues. It gathers system health information and then examines the suspected problem area.

In plain words
What is it for?
Use it to troubleshoot a slow or unresponsive server, a failed service, high resource use, a full disk, or a network problem.
Why use it?
It turns a broad server problem into a structured investigation of CPU, memory, storage, processes, services, and recent errors. This helps identify likely causes before making changes.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/muchiny/bridge-mcp/ssh-diagnose
Any agent
npx skills add muchiny/bridge-mcp --skill ssh-diagnose
Clone the repo
git clone --depth 1 https://github.com/muchiny/bridge-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ssh-diagnose

README.md
[![agentmods](https://agentmods.dev/badge/skills/muchiny/bridge-mcp/ssh-diagnose.svg)](https://agentmods.dev/skills/muchiny/bridge-mcp/ssh-diagnose)
Your own site
<a href="https://agentmods.dev/skills/muchiny/bridge-mcp/ssh-diagnose"><img src="https://agentmods.dev/badge/skills/muchiny/bridge-mcp/ssh-diagnose.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00063 $0.00724
Opus 5 $0.00032 $0.00362
Sonnet 5 $0.00013 $0.00145
Haiku 4.5 $0.00006 $0.00072

Measured 5d ago against content hash 7fbecd90dc9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ssh-diagnose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

contrib/claude-skills/ssh-diagnose/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

bridge-mcp tool ssh_diagnose host=HOST --json

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

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

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

Out of Memory

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

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

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

Network Issues

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:

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

For a specific service:

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

Read the full file on GitHub · 98 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 98 lines · 63 tokens per session scan A 7fbecd90dc9a

Subscribe to this mod's changes

ssh-diagnose is a skill published in the GitHub repository muchiny/bridge-mcp (8 stars, last pushed 4d ago), licensed MIT. It adds 63 tokens to every session and 724 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

performing-soc2-type2-audit-preparation

Automates SOC 2 Type II audit preparation including gap assessment against AICPA Trust Services Criteria (CC1-CC9), evidence collection from cloud providers and identity systems, control testing validation, remediation tracking, and continuous compliance monitoring. Covers all five TSC categories (Security…

adriannoes/awesome-agentic-ai · 112 tokens

eu-ai-act-compliance

EU AI Act compliance logging and requirements. Use this skill when ensuring transparency, human oversight, and record-keeping per Regulation (EU) 2024/1689 — even if they just say "add compliance logging" or "make sure this is EU AI Act compliant". Not for security-code-auditor, privacy-first.

d-o-hub/github-template-ai-agents · 72 tokens

implementing-aws-config-rules-for-compliance

Implementing AWS Config rules for continuous compliance monitoring of AWS resources, deploying managed and custom rules aligned to CIS and PCI DSS frameworks, configuring automatic remediation with SSM Automation, and aggregating compliance data across accounts.

adriannoes/awesome-agentic-ai · 53 tokens

implementing-gdpr-data-protection-controls

The General Data Protection Regulation (EU) 2016/679 (GDPR) is the EU's comprehensive data protection law governing the collection, processing, storage, and transfer of personal data. This skill cover.

adriannoes/awesome-agentic-ai · 52 tokens

release-and-publish

Ship a release end-to-end across every registry the project targets (npm, MCP Registry, GitHub Releases for .mcpb bundles, GHCR). Runs the final verification gate, pushes commits and tags, then publishes to each applicable destination. Assumes git wrapup (version bumps, changelog, commit, annotated tag) is already…

cyanheads/epa-mcp-server · 112 tokens

design-mcp-server

Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.

cyanheads/epa-mcp-server · 62 tokens