ワンクリックで
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.
Use when bootstrapping or managing VPS agent environments: fresh install, add project, hex-relay redeploy, diagnostics, or fleet plan/apply.
Use when installing, verifying, or updating the shared VPS host runtime for Claude Code, Codex, MCP, and marketplace plugins.
Use when creating or verifying one project runtime on a prepared VPS, including god-session, provider credentials, and local dispatcher setup.
Use when deploying, redeploying, verifying, migrating, or syncing users for the hex-relay Telegram/API control plane on a VPS.
Reviews skills (D1-D11 + M1-M6 criteria) or .claude/commands for quality. Use when validating skill correctness before release.
Use when validating Stories, plans, or tasks through the evaluation platform with mandatory research, parallel evidence lanes, sequential merge, and bounded refinement. Modes: story | plan_review.
| 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