health-check
Skill1 starsChanged 9 months agoMITView on GitHub
Check health status of all running services and dependencies. Use when verifying services are running, debugging connectivity issues, or monitoring system status.
- Sends data out
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Check the health and status of all services, databases, and dependencies.
- Distinctive: line 106
Run all checks at once:
- Distinctive: line 177
If critical services are down:
- Distinctive: line 190
If a service is down:
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Service Health Checker
Check the health and status of all services, databases, and dependencies.
Arguments
$ARGUMENTS: Specific service name (optional - checks all if not specified)
Services Configuration
| Service | Type | Health Endpoint | Port |
| eruditiontx-services-mvp | FastAPI | /health, /v1/health | 8000 |
| mathmatterstx-services | FastAPI | /health, /v1/health | 8002 |
| eruditiontx-client-mvp | React | / | 3000 |
| notaryo.ph | Next.js | /api/health | 3000 |
| MongoDB | Database | Connection test | 27017 |
| PostgreSQL | Database | Connection test | 5432 |
| Redis | Cache | PING | 6379 |
| MinIO | Storage | /minio/health/live | 9000 |
Health Check Commands
HTTP Services
# Basic health check
curl -sf http://localhost:$PORT/health && echo "OK" || echo "FAILED"
# With timeout
curl -sf --max-time 5 http://localhost:$PORT/health
# Get response details
curl -sf -w "\nStatus: %{http_code}\nTime: %{time_total}s\n" http://localhost:$PORT/health
# Check multiple endpoints
for port in 8000 8002 3000; do
echo "Checking port $port..."
curl -sf --max-time 5 http://localhost:$port/health && echo " OK" || echo " FAILED"
doneDatabase Services
MongoDB:
# Check connection
mongosh --eval "db.adminCommand('ping')" --quiet
# or
mongosh mongodb://localhost:27017/test --eval "db.runCommand({ping: 1})"PostgreSQL:
# Check connection
pg_isready -h localhost -p 5432
# or with psql
psql -h localhost -U postgres -c "SELECT 1" > /dev/null 2>&1 && echo "OK" || echo "FAILED"Redis:
redis-cli ping
# Should return "PONG"Process Status
Systemd Services:
systemctl is-active erudition-service
systemctl status erudition-service --no-pagerDocker Containers:
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
docker inspect --format='{{.State.Health.Status}}' $CONTAINERPM2 Processes:
pm2 status
pm2 show $APP_NAMEPort Checks
# Check if port is listening
lsof -i :$PORT
# or
netstat -tlnp | grep $PORT
# or on macOS
lsof -nP -iTCP:$PORT | grep LISTENComprehensive Health Check
Run all checks at once:
echo "=== Service Health Check ==="
echo ""
# HTTP Services
echo "HTTP Services:"
for service in "8000:eruditiontx-api" "8002:mathmatterstx-api" "3000:frontend"; do
port=$(echo $service | cut -d: -f1)
name=$(echo $service | cut -d: -f2)
status=$(curl -sf --max-time 3 http://localhost:$port/health && echo "UP" || echo "DOWN")
printf " %-20s %s\n" "$name" "$status"
done
echo ""
echo "Databases:"
# MongoDB
mongo_status=$(mongosh --eval "db.adminCommand('ping')" --quiet 2>/dev/null && echo "UP" || echo "DOWN")
printf " %-20s %s\n" "MongoDB" "$mongo_status"
# PostgreSQL
pg_status=$(pg_isready -h localhost -p 5432 2>/dev/null && echo "UP" || echo "DOWN")
printf " %-20s %s\n" "PostgreSQL" "$pg_status"
# Redis
redis_status=$(redis-cli ping 2>/dev/null | grep -q PONG && echo "UP" || echo "DOWN")
printf " %-20s %s\n" "Redis" "$redis_status"
echo ""
echo "Docker Containers:"
docker ps --format " {{.Names}}: {{.Status}}" 2>/dev/null || echo " Docker not running"Output Format
Health Check Report
Generated: [timestamp]
Services:
Service Status Response Time
--------------------- ------ -------------
eruditiontx-api UP 45ms
mathmatterstx-api UP 32ms
frontend UP 28ms
Databases:
Database Status Connection
--------------------- ------ ----------
MongoDB UP localhost:27017
PostgreSQL DOWN Connection refused
Redis UP localhost:6379
Infrastructure:
Component Status
--------------------- ------
Docker Running (5 containers)
Nginx Running
Issues Found:
- PostgreSQL is not running
- Port 5432 not listening
Recommendations:
1. Start PostgreSQL: brew services start postgresql
2. Check PostgreSQL logs: tail -f /usr/local/var/log/postgresql.logAlerting
If critical services are down:
# Send alert (example with curl to Slack webhook)
if ! curl -sf http://localhost:8000/health > /dev/null; then
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"ALERT: eruditiontx-api is DOWN"}' \
$SLACK_WEBHOOK_URL
fiTroubleshooting
If a service is down:
- Check if process is running:
ps aux | grep $SERVICE - Check port binding:
lsof -i :$PORT - Check logs:
/logs $SERVICE error - Restart service:
sudo systemctl restart $SERVICE
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- zylos-ai/zylos-core★ 1.2ksame name
- bitwize-music-studio/claude-ai-music-skills★ 589same name
- Resgrid/Core★ 229same name
- kubehan/PromAI★ 125same name
- hoangsonww/AI-Agents-Orchestrator★ 83same name
- fagemx/edda★ 36same name
- weklund/fiduciary★ 10same name
- aws-samples/sample-aws-ops-skills-for-agents★ 8same name
- link7373/agentic-bi-team★ 4same name
- davidromeo/tradeblocks-skills★ 2same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository125 other files it gives its agents.
- skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-native-skills/AGENTS.mdAGENTS.md
- address-sanitizerSkill
- aflppSkill
- algorand-vulnerability-scannerSkill
- algorithmic-artSkill
- ask-questions-if-underspecifiedSkill
- atherisSkill
- audit-context-buildingSkill
- audit-prep-assistantSkill
- autonomous-skillSkill
- aws-skillsSkill
- better-authSkill
- brainstormingSkill
- brand-guidelinesSkill
- burpsuite-project-parserSkill
- cairo-vulnerability-scannerSkill
- canvas-designSkill
- cargo-fuzzSkill
- changelog-generatorSkill
- claude-in-chrome-troubleshootingSkill
- cloudflare-skillsSkill
- code-maturity-assessorSkill
- codeqlSkill
- codex-skillSkill
- constant-time-analysisSkill
- constant-time-testingSkill
- cosmos-vulnerability-scannerSkill
- coverage-analysisSkill
- d3js-visualizationSkill
- db-resetSkill
- deep-researchSkill
- deploySkill
- dev-startSkill
- differential-reviewSkill
- dispatching-parallel-agentsSkill
- doc-coauthoringSkill
- doc-generateSkill
- documentationSkill
- docxSkill
- dwarf-expertSkill
- entry-point-analyzerSkill
- env-checkSkill
- executing-plansSkill
- expo-skillsSkill
- finishing-a-development-branchSkill
- firebase-apk-scannerSkill
- fix-reviewSkill
- frontend-designSkill
- fuzzing-dictionarySkill
- fuzzing-obstaclesSkill
- git-automationSkill
- google-design-mdSkill
- guidelines-advisorSkill
- harness-writingSkill
- huggingface-skillsSkill
- insecure-defaultsSkill
- internal-commsSkill
- interpreting-culture-indexSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

