🦀 ClawHub
Linux & service basics
by @kowl64
Diagnoses common Linux service issues using logs, systemd/PM2, file permissions, Nginx reverse proxy checks, and DNS sanity checks. Use when a server app is failing, unreachable, or misconfigured.
TERMINAL
clawhub install linux-service-triage📖 About This Skill
name: linux-service-triage description: Diagnoses common Linux service issues using logs, systemd/PM2, file permissions, Nginx reverse proxy checks, and DNS sanity checks. Use when a server app is failing, unreachable, or misconfigured.
Linux & service basics: logs, systemd/PM2, permissions, Nginx reverse proxy, DNS checks
PURPOSE
Diagnoses common Linux service issues using logs, systemd/PM2, file permissions, Nginx reverse proxy checks, and DNS sanity checks.WHEN TO USE
INPUTS
systemctl status myapp output + journalctl excerpt
- Nginx server block + domain + upstream portOUTPUTS
WORKFLOW
1. Confirm scope and safety: - identify service name and whether changes are permitted. 2. Gather evidence: - status output + recent logs (seereferences/triage-commands.md).
3. Classify failure:
- config error, dependency missing, permission denied, port conflict, upstream unreachable, DNS mismatch.
4. Propose minimal fix + verification steps.
5. Validate network path (if web service):
- app listens → Nginx proxies → DNS resolves → (TLS sanity if applicable).
6. Provide restart/reload plan and confirm health checks.
7. STOP AND ASK THE USER if:
- logs/status output are missing,
- actions require privileged access not confirmed,
- TLS/cert management is required but setup is unknown.OUTPUT FORMAT
TRIAGE REPORT
Symptom:
Evidence (what you provided):
Most likely cause:
Fix plan (minimal steps):
Exact commands (ONLY if user approved changes):
Verification:
Rollback:
SAFETY & EDGE CASES
nginx -t before reload and verify ports with ss.