Agent skill
monitor-baselhussain-ai-keto-meal-plan-ge
System health monitoring - check DB, Redis, Sentry, Vercel Blob, and SLA status
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/monitor-baselhussain-ai-keto-meal-plan-ge
SKILL.md
User Input
$ARGUMENTS
Options: detailed for comprehensive report, empty for quick status
Task
Check system health across all services and report status.
Steps
-
Check Database (Neon DB):
bashcd backend python -c " from src.lib.database import engine try: with engine.connect() as conn: result = conn.execute('SELECT 1') print('✅ Database: Connected') except Exception as e: print(f'❌ Database: {e}') " -
Check Redis:
bashpython -c " from src.lib.redis_client import redis_client try: redis_client.ping() print('✅ Redis: Connected') except Exception as e: print(f'❌ Redis: {e}') " -
Check Vercel Blob Storage:
bashcurl -s https://blob.vercel-storage.com/ \ -H "Authorization: Bearer ${BLOB_READ_WRITE_TOKEN}" | \ grep -q "blobs" && echo "✅ Vercel Blob: Connected" || echo "❌ Vercel Blob: Failed" -
Check Storage Usage (detailed mode):
bash# Get total blob size python -c " import os # Calculate blob storage usage # Target: Stay below 4GB (80% of 5GB free tier) " -
Check Sentry Status:
bashcurl -s "https://sentry.io/api/0/projects/" \ -H "Authorization: Bearer ${SENTRY_AUTH_TOKEN}" | \ grep -q "id" && echo "✅ Sentry: Connected" || echo "⚠️ Sentry: Check auth" -
Check Recent Errors (from Sentry):
bash# List last 10 errors from past 24h python -c " import sentry_sdk # Query recent errors " -
Check SLA Breaches:
bashpython -c " from src.models.manual_resolution import ManualResolution from src.lib.database import SessionLocal from datetime import datetime db = SessionLocal() breaches = db.query(ManualResolution).filter( ManualResolution.sla_deadline < datetime.utcnow(), ManualResolution.status == 'pending' ).count() if breaches > 0: print(f'⚠️ SLA Breaches: {breaches} pending cases past deadline') else: print('✅ SLA: No breaches') " -
Output Summary:
✅ System Health Report ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Timestamp: 2025-12-30 12:34:56 UTC Services: ✅ Database (Neon DB): Connected ✅ Redis: Connected (latency: 12ms) ✅ Vercel Blob: Connected ✅ Sentry: Connected Storage: 📊 Vercel Blob: 2.1 GB / 5 GB (42% used) ⚠️ Approaching 80% threshold at 4GB Errors (Last 24h): 📊 Total Errors: 12 🔴 Critical: 0 🟡 Warning: 3 🔵 Info: 9 SLA Status: ✅ No SLA breaches 📊 Manual resolution queue: 2 pending cases 📊 Oldest case: 45 minutes Recommendations: [List any issues or warnings]
Example Usage
/monitor # Quick status check
/monitor detailed # Comprehensive report with metrics
Exit Criteria
- All services checked and status reported
- Storage usage calculated
- Recent errors retrieved
- SLA status verified
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?