workspace-doctor

SKILL.md

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)
Weekly Installs
1
GitHub Stars
7
First Seen
8 days ago
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
warp1