Skip to content
Development
Command

/remote-health

Check remote dev environment health dashboard

From plugin
safe-agentic-workflow
39524 skills11 agents24 commands
Install
$ npx -y skills add bybren-llc/safe-agentic-workflow --agent claude-code

How 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.md
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/health

Expected 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
Ships withsafe-agentic-workflow

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.

Get the whole plugin