/remote-health
Check remote dev environment health dashboard
$ npx -y skills add bybren-llc/safe-agentic-workflow --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/remote-health
Context preview
What this command does when you run it.
Check remote dev environment health dashboard
Command definition
remote-health.mddescription: Check remote dev environment health dashboard
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob]
Remote Health Command
Display comprehensive health status of your remote dev environment including containers, resources, connectivity, and recent issues.
> **๐ TEMPLATE**: This command is a template. See "Customization Guide" at the end to adapt for your infrastructure.
Workflow
1. Container Health Check
Check all project services:
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# โ CUSTOMIZE: Replace with your SSH and container details โ
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker ps --filter name={{PROJECT}} --format 'table {{.Names}}\t{{.Status}}\t{{.State}}'"Get detailed health status:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker inspect {{CONTAINER_NAME}} --format='{{.Name}}: {{.State.Health.Status}}'"2. Resource Usage
Check CPU and Memory usage:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'"Check disk space:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} "df -h / | tail -1"Check Docker disk usage:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} "docker system df"3. Application Health Endpoint
Test your app's health endpoint:
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# โ CUSTOMIZE: Replace with your health endpoint URL โ
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
curl -s -w '\nHTTP Status: %{http_code}\nResponse Time: %{time_total}s\n' \
http://{{REMOTE_HOST}}:{{APP_PORT}}/api/healthExpected response:
{
"status": "healthy",
"timestamp": "2025-10-11T19:35:00.000Z",
"uptime": 25234.567,
"environment": "development"
}4. Database Connectivity
Test PostgreSQL connection:
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# โ CUSTOMIZE: Replace with your database container and credentials โ
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker exec {{DB_CONTAINER}} pg_isready -U {{DB_USER}}"5. Redis/Cache Connectivity
Test Redis connection:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker exec {{REDIS_CONTAINER}} redis-cli ping"Expected: `PONG`
6. Recent Error Check
Check for recent errors in logs:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker logs {{CONTAINER_NAME}} --since 5m 2>&1 | grep -i 'error\|fatal\|exception' | tail -10"7. Version Information
Get running version:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker inspect {{CONTAINER_NAME}} | grep 'org.opencontainers.image.revision'"8. Health Dashboard Report
Generate comprehensive health report:
๐ฅ Remote Dev Environment Health Dashboard
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Container Health
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{{PROJECT}}-app โ
Healthy Up 2 hours
{{PROJECT}}-postgres โ
Healthy Up 2 hours
{{PROJECT}}-redis โ
Healthy Up 2 hours
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Resource Usage
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Container CPU Memory
{{PROJECT}}-app 2.45% 312MB / 2GB (15%)
{{PROJECT}}-postgres 0.12% 45MB / 2GB (2%)
{{PROJECT}}-redis 0.08% 8MB / 2GB (0%)
Disk Space: 125GB / 250GB (50% used)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Overall Status: โ
HEALTHY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโHealth Score Calculation
Calculate overall health score (0-100):
| Criteria | Points | | ------------------------- | ------ | | Containers running | +30 | | Health checks passing | +20 | | Resource usage < 80% | +15 | | No recent errors | +15 | | Response time < 500ms | +10 | | Database/Redis responding | +10 |
**Score Interpretation**:
- 90-100: โ
Excellent
- 70-89: โ ๏ธ Good (minor issues)
- 50-69: โ ๏ธ Degraded (needs attention)
- 0-49: โ Critical (immediate action required)
Alert Conditions
Critical Alerts (โ)
- Any container stopped/crashed
- Health endpoint not responding
- Database unreachable
- Disk space > 90%
Warning Alerts (โ ๏ธ)
- Response time > 1 second
- Memory usage > 80%
- Error spike in last 5 minutes
Customization Guide
| Placeholder | Description | Example | | ------------------- | ------------------------- | --------------------------- | | `{{SSH_KEY_PATH}}` | Path to SSH private key | `~/.ssh/id_ed25519_staging` | | `{{REMOTE_USER}}` | Username on remote host | `deploy` | | `{{REMOTE_HOST}}` | Remote server hostname/IP | `staging.example.com` | | `{{PROJECT}}` | Your project name | `myapp` | | `{{CONTAINER_NAME}}` | Docker container name | `myapp-staging` | | `{{APP_PORT}}` | Port your app runs on | `3000` | | `{{DB_CONTAINER}}` | Database container name | `myapp-postgres` | | `{{DB_USER}}` | Database username | `app_user` | | `{{REDIS_CONTAINER}}` | Redis container name | `myapp-redis` |
Related Commands
- `/remote-logs` - View detailed logs
- `/remote-status` - Check for updates
- `/remote-deploy` - Deploy latest version
- `/remote-rollback` - Rollback if unhealthy
Read more
description: Check remote dev environment health dashboard allowed-tools: [Read, Write, Edit, Bash, Grep, Glob]
Remote Health Command
Display comprehensive health status of your remote dev environment including containers, resources, connectivity, and recent issues.
> **๐ TEMPLATE**: This command is a template. See "Customization Guide" at the end to adapt for your infrastructure.
Workflow
1. Container Health Check
Check all project services:
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# โ CUSTOMIZE: Replace with your SSH and container details โ
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker ps --filter name={{PROJECT}} --format 'table {{.Names}}\t{{.Status}}\t{{.State}}'"Get detailed health status:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker inspect {{CONTAINER_NAME}} --format='{{.Name}}: {{.State.Health.Status}}'"2. Resource Usage
Check CPU and Memory usage:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker stats --no-stream --format 'table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}'"Check disk space:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} "df -h / | tail -1"Check Docker disk usage:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} "docker system df"3. Application Health Endpoint
Test your app's health endpoint:
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# โ CUSTOMIZE: Replace with your health endpoint URL โ
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
curl -s -w '\nHTTP Status: %{http_code}\nResponse Time: %{time_total}s\n' \
http://{{REMOTE_HOST}}:{{APP_PORT}}/api/healthExpected response:
{
"status": "healthy",
"timestamp": "2025-10-11T19:35:00.000Z",
"uptime": 25234.567,
"environment": "development"
}4. Database Connectivity
Test PostgreSQL connection:
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
# โ CUSTOMIZE: Replace with your database container and credentials โ
# โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker exec {{DB_CONTAINER}} pg_isready -U {{DB_USER}}"5. Redis/Cache Connectivity
Test Redis connection:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker exec {{REDIS_CONTAINER}} redis-cli ping"Expected: `PONG`
6. Recent Error Check
Check for recent errors in logs:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker logs {{CONTAINER_NAME}} --since 5m 2>&1 | grep -i 'error\|fatal\|exception' | tail -10"7. Version Information
Get running version:
ssh -i {{SSH_KEY_PATH}} {{REMOTE_USER}}@{{REMOTE_HOST}} \
"docker inspect {{CONTAINER_NAME}} | grep 'org.opencontainers.image.revision'"8. Health Dashboard Report
Generate comprehensive health report:
๐ฅ Remote Dev Environment Health Dashboard
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Container Health
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{{PROJECT}}-app โ
Healthy Up 2 hours
{{PROJECT}}-postgres โ
Healthy Up 2 hours
{{PROJECT}}-redis โ
Healthy Up 2 hours
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Resource Usage
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Container CPU Memory
{{PROJECT}}-app 2.45% 312MB / 2GB (15%)
{{PROJECT}}-postgres 0.12% 45MB / 2GB (2%)
{{PROJECT}}-redis 0.08% 8MB / 2GB (0%)
Disk Space: 125GB / 250GB (50% used)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Overall Status: โ
HEALTHY
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโHealth Score Calculation
Calculate overall health score (0-100):
| Criteria | Points | | ------------------------- | ------ | | Containers running | +30 | | Health checks passing | +20 | | Resource usage < 80% | +15 | | No recent errors | +15 | | Response time < 500ms | +10 | | Database/Redis responding | +10 |
**Score Interpretation**:
- 90-100: โ Excellent
- 70-89: โ ๏ธ Good (minor issues)
- 50-69: โ ๏ธ Degraded (needs attention)
- 0-49: โ Critical (immediate action required)
Alert Conditions
Critical Alerts (โ)
- Any container stopped/crashed
- Health endpoint not responding
- Database unreachable
- Disk space > 90%
Warning Alerts (โ ๏ธ)
- Response time > 1 second
- Memory usage > 80%
- Error spike in last 5 minutes
Customization Guide
| Placeholder | Description | Example | | ------------------- | ------------------------- | --------------------------- | | `{{SSH_KEY_PATH}}` | Path to SSH private key | `~/.ssh/id_ed25519_staging` | | `{{REMOTE_USER}}` | Username on remote host | `deploy` | | `{{REMOTE_HOST}}` | Remote server hostname/IP | `staging.example.com` | | `{{PROJECT}}` | Your project name | `myapp` | | `{{CONTAINER_NAME}}` | Docker container name | `myapp-staging` | | `{{APP_PORT}}` | Port your app runs on | `3000` | | `{{DB_CONTAINER}}` | Database container name | `myapp-postgres` | | `{{DB_USER}}` | Database username | `app_user` | | `{{REDIS_CONTAINER}}` | Redis container name | `myapp-redis` |
Related Commands
- `/remote-logs` - View detailed logs
- `/remote-status` - Check for updates
- `/remote-deploy` - Deploy latest version
- `/remote-rollback` - Rollback if unhealthy
SAW โ SAFe Agentic Workflow AI Agent Harness for Multi-Agent Team Workflows Built on SAFe methodology (Scaled Agile Framework), adapted for AI agent teams (Now With AI-DLC!) Works for any team with repeatable processes: Software, Marketing, Research, Legal, Operations.
Other commands on safe-agentic-workflow.
- /audit-deps
Run comprehensive dependency audit
Open command - /check-docker-status
Check if {{DEV_MACHINE}} Docker environment needs updating
Open command - /check-workflow
Quick status check of current workflow state
Open command - /deploy-dev
Deploy latest Docker image to {{DEV_MACHINE}} dev environment
Open command - /dev-health
Check {{DEV_MACHINE}} dev environment health dashboard
Open command - /dev-logs
View {{DEV_MACHINE}} dev container logs
Open command

