skills-catalog/ln-034-vps-environment-diagnostics/SKILL.md
Use when inspecting health, drift, logs, auth, ports, systemd, tmux, or safe repair needs for one VPS project environment.
npx skillsauth add levnikolaevich/claude-code-skills ln-034-vps-environment-diagnosticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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
testing
Checks runtime lifecycle and config validation: bootstrap, shutdown, probes, cleanup, env sync, and fail-fast startup. Use for runtime readiness.
testing
Checks races, deadlocks, async hazards, TOCTOU, blocking I/O, and shared resource contention. Use when auditing concurrency correctness.
testing
Checks diagnosability through structured logs, metrics, traces, correlation IDs, and useful log levels. Use when auditing incident visibility.
development
Finds code that can be safely deleted: unreachable, unused, obsolete compatibility, and commented-out code. Use when pruning dead code.