Skill: Workspace Doctor
Description
Check prerequisites, verify installations, and run health checks for workspace services.
Instructions
When the user wants to check workspace health:
Step 1: Check Prerequisites
Parse the ## Prerequisites section from WORKSPACE.md:
## Prerequisites
- Node.js 20+
- Docker & Docker Compose
- PostgreSQL 15+ (or use Docker)
Verify each prerequisite is installed and meets version requirements.
Step 2: Check Required Tools
Always verify these tools are available:
git - Version control
curl or wget - HTTP requests
jq - JSON processing (optional but recommended)
Step 3: Run Health Checks
Parse the ## Health Checks section:
## Health Checks
api: curl -s http://localhost:3000/health | grep -q "ok"
admin: curl -s http://localhost:3001 | grep -q "<!DOCTYPE"
Run each check and report results.
Step 4: Display Results
๐ฉบ Workspace Doctor - Acme Corp
Prerequisites:
โ Node.js 22.0.0 (required: 20+)
โ Docker 24.0.6
โ Docker Compose 2.21.0
โ PostgreSQL not found (install or use Docker)
Tools:
โ git 2.42.0
โ curl 8.1.2
โ jq 1.7
Projects:
โ api - cloned at ~/work/acme/api
โ admin - cloned at ~/work/acme/admin
โ homepage - not cloned
Health Checks:
โ api - healthy (http://localhost:3000/health)
โ admin - not running (port 3001)
Summary:
โข 2 issues found
Recommendations:
โข Clone missing projects: /workspaces:clone all
โข Start services: /workspaces:start all
Status Icons
โ - Passed
โ - Failed (blocking)
โ - Warning (non-blocking)