Agent Skillsviralcode/openwhale › linux-service-triage

linux-service-triage

GitHub

诊断 Linux 服务故障,通过日志、systemd/PM2、权限、Nginx 反向代理及 DNS 检查定位问题并提供修复方案。

skills/linux-service-triage/SKILL.md viralcode/openwhale

Trigger Scenarios

服务失败或不可达时的故障排查 清理重启应用并确认端口监听状态 修复服务文件夹读写权限 配置 Nginx 反向代理并验证 DNS/TLS 创建 systemd 服务以确保开机自启

Install

npx skills add viralcode/openwhale --skill linux-service-triage -g -y
More Options

Use without installing

npx skills use viralcode/openwhale@linux-service-triage

指定 Agent (Claude Code)

npx skills add viralcode/openwhale --skill linux-service-triage -a claude-code -g -y

安装 repo 全部 skill

npx skills add viralcode/openwhale --all -g -y

预览 repo 内 skill

npx skills add viralcode/openwhale --list

SKILL.md

Frontmatter
{
    "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

  • TRIGGERS:
    • Show me why this service is failing using logs, then give the exact fix commands.
    • Restart this app cleanly and confirm it is listening on the right port.
    • Fix the permissions on this folder so the service can read and write safely.
    • Set up Nginx reverse proxy for this port and verify DNS and TLS are sane.
    • Create a systemd service for this script and make it survive reboots.
  • DO NOT USE WHEN…
    • You need kernel debugging or deep performance profiling.
    • You want to exploit systems or bypass access controls.

INPUTS

  • REQUIRED:
    • Service type: systemd unit name or PM2 process name.
    • Observed symptom: error message, status output, or logs (pasted by user).
  • OPTIONAL:
    • Nginx config snippet, domain name, expected upstream port.
    • Filesystem paths used by the service.
  • EXAMPLES:
    • systemctl status myapp output + journalctl excerpt
    • Nginx server block + domain + upstream port

OUTPUTS

  • Default: triage report (likely cause, evidence from logs, minimal fix plan).
  • If explicitly requested and safe: exact shell commands to apply the fix. Success = service runs, listens on expected port, and reverse proxy/DNS path is correct.

WORKFLOW

  1. Confirm scope and safety:
    • identify service name and whether changes are permitted.
  2. Gather evidence:
    • status output + recent logs (see references/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

  • Read-only by default: diagnose from provided outputs; do not assume you can run commands.
  • Avoid destructive changes; require explicit confirmation for anything risky.
  • Prefer nginx -t before reload and verify ports with ss.

EXAMPLES

  • Input: “journal shows permission denied on /var/app/uploads.”
    Output: path permission analysis + safe chown/chmod plan + verification.

  • Input: “App works locally but domain returns 502.”
    Output: upstream port checks + nginx error log interpretation + proxy_pass fix plan.

Version History

  • 238a4b1 Current 2026-08-20 08:21

Same Skill Collection

skills/agenticflow-skill/SKILL.md
skills/agentlens/SKILL.md
skills/apple-hig/SKILL.md
skills/artifacts-builder/SKILL.md
skills/backend-patterns/SKILL.md
skills/bird/SKILL.md
skills/bot-bowl-party/SKILL.md
skills/botpress-adk/SKILL.md
skills/clawdbot-zoho-email/SKILL.md
skills/computer-use/SKILL.md
skills/deliberate-frontend-redesign/SKILL.md
skills/downloads/SKILL.md
skills/downloads/skills-skills-theme-factory/SKILL.md
skills/fanvue/SKILL.md
skills/frontend-design/SKILL.md
skills/human-optimized-frontend/SKILL.md
skills/miniflux-news/SKILL.md
skills/nextjs-expert/SKILL.md
skills/niri-ipc/SKILL.md
skills/nodetool/SKILL.md
skills/pinak-frontend-guru/SKILL.md
skills/react-email-skills/SKILL.md
skills/remotion-best-practices/SKILL.md
skills/remotion-server/SKILL.md
skills/remotion-video-toolkit/SKILL.md
skills/resume-builder/SKILL.md
skills/slack/SKILL.md
skills/smtp-send/SKILL.md
skills/technews/SKILL.md
skills/telegram-reaction-prober/SKILL.md
skills/trmnl/SKILL.md
skills/ui-audit/SKILL.md
skills/ui-design-system/SKILL.md
skills/ui-skills/SKILL.md
skills/ui-ux-master/SKILL.md
skills/ux-audit/SKILL.md
skills/ux-decisions/SKILL.md
skills/ux-researcher-designer/SKILL.md
skills/vercel-react-best-practices/SKILL.md
skills/vision-sandbox/SKILL.md
skills/weather/SKILL.md
skills/web-design-guidelines/SKILL.md
skills/webapp-testing/SKILL.md
skills/winamp/SKILL.md
skills/xcodebuildmcp/SKILL.md
skills/zoho-email-integration/SKILL.md
skills/comfyui-runner/SKILL.md
skills/ui-ux-pro-max/SKILL.md

Metadata

Files
0
Version
238a4b1
Hash
6029658d
Indexed
2026-08-20 08:21

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 23:36
浙ICP备14020137号-1 $mapa de visitantes$