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
Drafts and publishes fact-checked GitHub Discussions announcements. Use for releases, updates, or project news; not for release creation or issue responses.
testing
Prepares and publishes a tagged GitHub release from repository evidence. Use for an explicit release request; not for ordinary commits, packages, or community news.
testing
Validates, commits, pushes, and remotely verifies approved repository changes. Use when publication is requested; not for releases, package publishing, or announcements.
development
Reviews standalone skills and their configured distribution surfaces before publication. Use for skill release readiness; not for product code or implementation-plan review.