env-doctor
Installation
SKILL.md
env-doctor — Execution Environment Diagnostics & Remediation
Operating Invariants
- Idempotent Local Boundary: Confine remediation strictly to project-scoped actions (declared dependency sync, local service boot, test datastore migration, synthetic test secrets); forbid system-wide mutations (
sudo,brew), host PATH tampering, or remote secret fetching. Halt withUNRESOLVEDfor port collisions, missing daemons, or destructive actions. - Zero-Secret Exposure: Never inspect or copy production secret files (
.env*except.env.example); inject deterministic mocks into.env.testor environment stubs. - Manifest SSOT Grounding: Read
.agents/environment.mdas the authoritative specification. Treat omissible sections (services for pure libraries, external datastores) asPASSwhen absent. - Adaptive Invocation Output: Render the full Canonical Output Contract when invoked by a human; output only a single-line Micro-Summary token (
READYorUNRESOLVED: <blocker>) when called by an autonomous runner.
Domain Rubric
1. Dimension Audit & Probing Discipline
Cross-reference declared manifests against host runtimes and execution wrappers (pnpm, cargo, uv). Execute declared service readiness probes (socket, HTTP /healthz, database ping) with exponential backoff (max 15s); forbid treating process state (Up) as readiness. Verify test datastore migrations, fixtures, and synthetic .env.test stubs.
Canonical Output Contract
# Environment Health Report: <Scope> · <READY | STAGED | UNRESOLVED>