with one click
ln-034-vps-environment-diagnostics
// Use when inspecting health, drift, logs, auth, ports, systemd, tmux, or safe repair needs for one VPS project environment.
// Use when inspecting health, drift, logs, auth, ports, systemd, tmux, or safe repair needs for one VPS project environment.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | ln-034-vps-environment-diagnostics |
| description | Use when inspecting health, drift, logs, auth, ports, systemd, tmux, or safe repair needs for one VPS project environment. |
| license | MIT |
| allowed-tools | Bash, Read, mcp__hex-ssh__remote-ssh, mcp__hex-ssh__ssh-read-lines, mcp__hex-ssh__ssh-write-chunk, mcp__hex-ssh__ssh-edit-block |
Paths: File paths (
shared/,../ln-030-vps-bootstrap/references/) are relative to skills repo root. If not found at CWD, locate thisSKILL.mddirectory and go up one level for repo root.
Type: L3 Worker Category: 0XX Shared / Infrastructure
Inspects one VPS project environment and reports health, drift, logs, auth state, ports, systemd, tmux, and bounded safe repairs.
MANDATORY READ: Load shared/references/worker_runtime_contract.md, shared/references/coordinator_summary_contract.md, and shared/references/vps_runtime_contract.md
MANDATORY READ: Load ../ln-030-vps-bootstrap/references/scope_layers.md, ../ln-030-vps-bootstrap/references/troubleshooting.md, and ../ln-030-vps-bootstrap/references/verification_recipes.md
| Direction | Content |
|---|---|
| Input | mode, project/VPS variables, optional repair_scope, optional dry_run, optional runId, optional summaryArtifactPath |
| Output | vps-environment-diagnostics summary with status, findings, drift, safe repairs, warnings, blockers, and verification |
If summaryArtifactPath is provided, write the same summary JSON there. If not provided, return the summary inline and write it to the standalone run-scoped path. Generate a standalone run_id when runId is absent.
| Mode | Behavior |
|---|---|
inspect | Read-only health and drift report |
verify | Read-only post-install/post-redeploy verification |
repair_safe | Apply only documented bounded safe repairs selected by repair_scope |
Resolve target environment and set mutation guard:
inspect and verify are read-onlyrepair_safe requires explicit repair_scopedry_run=true converts repairs to planned actionsInspect:
${BOT_USER}${AGENT_SKILLS_DIR} git stateagent-update.timer and log tailInspect:
${PROJECT_DIR} git state/etc/${PROJECT_NAME} and /var/lib/${PROJECT_NAME}${SERVICE_PREFIX}-god@*.serviceWhen Telegram/relay is enabled, inspect:
${SERVICE_PREFIX}-hex-relay.service/opt/${SERVICE_PREFIX}-hex-relay/healthrelay-bot service/path driftRELAY_HOOK_PORT listener collisionsAllowed safe repairs only:
systemctl daemon-reloadForbidden repairs:
Write a vps-environment-diagnostics summary artifact with:
N/A:.dry_run=true, inspect, and verify performed no mutation.vps-environment-diagnostics summary artifact written.Version: 1.0.0 Last Updated: 2026-05-05