deploy-verify · git:20261123.a9eccfb · 2026-11-23 · sha256 fe13c16e9e1bac13

deploy-verify git:20261123.a9eccfbA

Immutable. This exact content never changes and is served at /api/v1/blob/fe13c16e9e1bac13.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_kamyrbpcsxtggdth/fe13c16e9e1bac135d73afc6dfee1c2b6d26836b7fdd9bf99833c353dbcd878e.json

Then /plugin install deploy-verify@markdownregistry-kamyrbpcsxtggdth in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: deploy-verify
description: "Verify a release right after it is deployed, using CLI checks only: health endpoints, API smoke tests, container status and recent error logs. Not for pre-release browser validation (validation) or the full hardening cycle (battle-test); when the release changed UI, hand the deployed URL to validation smoke instead of driving a browser here."
---

# Deploy & Verify Workflow

CLI-based deployment verification without browser dependencies. Use this after deploying any service.

## Workflow

### 1. Identify Deployment Target
Determine which service was deployed and its verification endpoints:
- **Vercel/static**: Check the deployment URL with curl
- **Docker**: Check container status, then health endpoints
- **Server (SSH)**: Verify service is running, then API health

### 2. Health Check
```bash
# HTTP health check
curl -s -o /dev/null -w "%{http_code}" <URL>/health

# Full response with timing
curl -s -w "\n---\nHTTP %{http_code} | Time: %{time_total}s\n" <URL>/health

# Multiple endpoints
for endpoint in /health /api/status /api/version; do
  echo "$endpoint: $(curl -s -o /dev/null -w '%{http_code}' <URL>$endpoint)"
done
```

### 3. API Smoke Tests
Test critical endpoints with actual requests:
```bash
# GET endpoint
curl -s <URL>/api/endpoint | head -c 500

# POST with auth
curl -s -X POST <URL>/api/endpoint \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"test": true}'

# Check response shape
curl -s <URL>/api/endpoint | python -m json.tool | head -20
```

### 4. Docker-Specific Checks
```bash
# Container running-
docker ps | grep <service>

# Recent logs (errors-)
docker logs <container> --tail 50 2>&1 | grep -i error

# Container health
docker inspect --format='{{.State.Health.Status}}' <container>
```

### 5. Log Monitoring
```bash
# Check for errors in last 10 minutes
docker logs <container> --since 10m 2>&1 | grep -iE "error|fatal|exception"

# Supabase: check edge function logs
# Check Supabase dashboard -> Edge Functions -> Logs

# Server logs
ssh user@server 'journalctl -u <service> --since "10 minutes ago" | grep -i error'
```

### 6. Generate Report
Output a verification summary:
```
DEPLOYMENT VERIFICATION REPORT
==============================
Service: <name>
Deployed at: <timestamp>
URL: <url>

Health Check: PASS/FAIL (HTTP <code>, <time>ms)
API Endpoints:
  - GET /api/endpoint: PASS (HTTP 200)
  - POST /api/endpoint: PASS (HTTP 201)
Container Status: Running (uptime: <time>)
Error Log: 0 errors in last 10 minutes

Overall: PASS/FAIL
```

## Rules
- **NEVER use browser tools** for deployment verification
- If the release changed UI, hand the deployed URL to the `validation` skill
  (`--mode smoke`); its browser rules apply there, not here
- Always check logs after verifying endpoints
- If any check fails, investigate before reporting success
- For Docker projects: verify both container status AND API responses