skills/team/environment-health/SKILL.md
Docker health checks, service monitoring, container lifecycle management, connection validation, and environment diagnostics. Use when troubleshooting dev environment issues or performing health audits.
npx skillsauth add michaelalber/ai-toolkit environment-healthInstall 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.
"Hope is not a strategy. Monitoring is." -- Tom Limoncelli, The Practice of Cloud System Administration
This skill provides the diagnostic toolkit for environment health assessment. It covers Docker container health, service endpoint monitoring, connection validation, port conflict resolution, resource usage analysis, and dependency verification. Every diagnosis is evidence-based — no assumptions, no guesses, only verified findings.
Non-Negotiable Constraints:
The domain principles table, AI discipline rules, anti-patterns catalog, and error-recovery
procedures live in references/diagnostic-discipline.md.
The full command catalog for each phase is in references/diagnostic-commands.md (environment
discovery, Docker health checks, service endpoints, database connections, port conflicts,
resource usage, dependency graph). Docker Compose health-check patterns by service type are in
references/docker-health-patterns.md.
PROBE Discover what is running and where before any health check: containers (all
states), compose services, listening ports, and environment type. No write actions.
DIAGNOSE Gather evidence per failing service — health status, restart count, log errors,
endpoint/connection checks, resource pressure, dependency order. Form a root-cause
hypothesis backed by command output, never assumption.
REMEDIATE Dev only, after confirming environment=dev. Fix one service at a time; prefer
restart over recreate, recreate over rebuild. Each action idempotent and logged.
VERIFY Re-run the same probe that detected the problem. A captured command result, never a
claim. After a restart, wait, then re-check application-level health before reporting.
Exit criteria: each finding is backed by command output, remediations are verified by re-probe, and non-dev environments produce a report rather than mutations.
<env-health-state>
phase: DIAGNOSE
environment: dev
services_total: 5
services_healthy: 3
services_degraded: 1
services_failing: 1
issues_found: 2
issues_resolved: 0
last_action: Checked container logs for app-worker
last_verified: Database connection healthy on port 5432
blockers: none
</env-health-state>
## Environment Health Audit: [Project Name]
**Environment**: [dev/staging/prod] | **Date**: [date]
| Service | Status | Health Check | Uptime | Restarts |
|---------|--------|--------------|--------|----------|
| [name] | [running/stopped] | [healthy/unhealthy/none] | [duration] | [N] |
| Resource | Current | Threshold | Status |
|----------|---------|-----------|--------|
| Disk (/) | [N]% | 80% | [ok/warn/critical] |
| # | Severity | Component | Issue | Status |
|---|----------|-----------|-------|--------|
Full templates (Port Mapping table, Dependency Health Map, Remediation Actions log): references/service-recovery-playbook.md
This is a standalone skill designed for the environment-health-agent. It provides the diagnostic commands, health check patterns, and recovery procedures that the agent executes during its PROBE, DIAGNOSE, REMEDIATE, and MONITOR phases.
Reference files:
references/diagnostic-commands.md — full command catalog per workflow phasereferences/diagnostic-discipline.md — domain principles, AI discipline rules, anti-patterns, error recoveryreferences/docker-health-patterns.md — Docker Compose health checks by service type, container log analysis, network debugging, volume mount verificationreferences/service-recovery-playbook.md — database connection pool exhaustion, port conflicts, certificate expiry, DNS failures, memory leaks, zombie processes; full output templatesdevelopment
Interviews the user relentlessly about a plan, decision, or idea — one question at a time, each with a recommended answer. Shared engine behind "grill-me" and "grill-with-docs". Use on any "grill" trigger phrase or to stress-test thinking. Do NOT use to build the plan; it ends at shared understanding, not implementation.
testing
Runs a relentless interview to sharpen a plan or design, capturing the decisions as ADRs and a glossary along the way. Use when the user wants to be grilled AND wants the session to leave durable domain documentation behind. Do NOT use for a throwaway stress-test with no artifacts; use grill-me instead.
tools
OWASP-based security review of Vue/TypeScript front-ends. Detects framework (Vite/Vue CLI/Nuxt), entry points, and data flows; scans the OWASP Top 10 (2025) mapped to Vue client-side risks (raw-HTML XSS via v-html, URL/protocol injection, bundled secrets, insecure token storage, dependency CVEs, missing CSP, open redirects, router guard bypass); emits an exec summary plus graded findings. Use to audit Vue for vulnerabilities. Not for architecture grading (vue-architecture-checklist).
tools
Analyzes legacy Vue codebases and produces actionable modernization plans. Primary migration paths include Options API to Composition API, Vue 2 to Vue 3, Vue CLI to Vite, JavaScript to TypeScript, Vue Test Utils/Karma/Mocha to Vitest + Vue Testing Library, legacy Vuex to Pinia, and removed-in-Vue-3 pattern cleanup (filters, event bus, `$listeners`). Does NOT perform the migration — assesses, quantifies risk, and plans.