بنقرة واحدة
system-health
Comprehensive system health check - all components, queue, circuit breakers, active work, errors
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Comprehensive system health check - all components, queue, circuit breakers, active work, errors
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | system-health |
| description | Comprehensive system health check - all components, queue, circuit breakers, active work, errors |
| user_invocable | true |
You are performing a comprehensive health check of the orchestrator system. Execute all checks below using the Bash tool, then synthesize into a structured health report.
curl -s http://localhost:5001/health | jq .
Reports status of: Redis, GitHub authentication, Docker socket.
Check both the observability API and actual Docker containers:
curl -s http://localhost:5001/agents/active | jq .
docker ps --filter "name=claude-agent-" --format "table {{.Names}}\t{{.Status}}\t{{.RunningFor}}\t{{.Image}}"
Compare the two - if containers exist but aren't tracked by the API, there may be orphaned containers.
docker-compose exec orchestrator python scripts/inspect_task_health.py --json
If the script is unavailable, check Redis directly:
docker-compose exec redis redis-cli LLEN tasks:critical && docker-compose exec redis redis-cli LLEN tasks:high && docker-compose exec redis redis-cli LLEN tasks:medium && docker-compose exec redis redis-cli LLEN tasks:low
docker-compose exec orchestrator python scripts/inspect_circuit_breakers.py
Also check API:
curl -s http://localhost:5001/api/circuit-breakers | jq .
Any open circuit breakers indicate repeated failures for a specific agent/project combination.
curl -s http://localhost:5001/active-pipeline-runs | jq .
curl -s "http://localhost:9200/decision-events-*/_search" -H 'Content-Type: application/json' -d '{
"query": {
"bool": {
"must": [
{"terms": {"event_type": ["error_encountered", "agent_failed", "circuit_breaker_opened", "pipeline_run_failed", "status_progression_failed", "container_execution_failed", "result_persistence_failed", "empty_output_detected"]}},
{"range": {"timestamp": {"gte": "now-1h"}}}
]
}
},
"sort": [{"timestamp": "desc"}],
"size": 50
}' | jq '.hits.hits[]._source | {timestamp, event_type, agent, project, data}'
Also check agent-events for failures:
curl -s "http://localhost:9200/agent-events-*/_search" -H 'Content-Type: application/json' -d '{
"query": {
"bool": {
"must": [
{"term": {"event_type": "agent_failed"}},
{"range": {"timestamp": {"gte": "now-1h"}}}
]
}
},
"sort": [{"timestamp": "desc"}],
"size": 20
}' | jq '.hits.hits[]._source | {timestamp, agent_name, project, task_id, error_message, duration_ms}'
docker-compose ps
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}\t{{.NetIO}}" | head -20
curl -s "http://localhost:9200/_cat/indices?v&s=index" | grep -E "(logs-claude|metrics-claude|decision-events|agent-events|pipeline-runs|agent-logs|task-metrics)"
Check for red/yellow indices or unexpectedly large doc counts.
Present findings as a structured report:
## System Health Report
### Component Status
| Component | Status | Details |
|-----------|--------|---------|
| Redis | ... | ... |
| GitHub | ... | ... |
| Docker | ... | ... |
| Elasticsearch | ... | ... |
| Orchestrator | ... | ... |
### Active Work
- Pipeline runs: ...
- Active agents: ...
- Queued tasks: ...
### Issues Detected
1. ...
2. ...
### Recommendations
1. ...
2. ...
Flag any of these conditions:
Reference for correctly querying GitHub issue state - board status, parent/child links, sub-issues. Use these patterns instead of `gh issue view --json projectItems` which does not reliably return status field values.
Analyze recommendations from pipeline run analyses — filter by priority, target (orchestrator/project), pipeline run ID, or project
Deep-dive into agent execution - Docker logs, Claude stream events, tool calls, errors
Search and analyze Claude Code live execution logs captured in Elasticsearch - tool calls, tool results, API usage, and errors for a specific task or pipeline run
Quick reference for Elasticsearch indices, event types, Docker patterns, and pipeline flows
Investigate a pipeline run - timeline, Docker logs, decision events, root cause analysis