healthcheck
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 9
- Forks
- 1
03 SKILL.md 正文
Production Health Check
Run a comprehensive health check on the production server:
- SSH into server, check all Docker containers are running
- Verify all public URLs return 200 (marketing, web, admin, API)
- Check SSL cert expiry dates (warn if <30 days)
- Query Postgres: check table row counts, recent errors (use sent_at for email_logs, started_at for incidents)
- Check Redis connectivity and BullMQ queue status
- Check disk usage, memory, CPU load
- Check Docker image disk usage and reclaimable space
- Summarize findings in a table with status icons
CRITICAL RULES
- Run ALL checks from INSIDE containers using
docker exec, NOT from localhost - For database queries, ALWAYS check column names first with
\d table_namebefore writing any SELECT queries - Known schema gotchas:
email_logsusessent_atnotcreated_at,incidentsusesstarted_atnotcreated_at - Use actual public domains for URL checks, never localhost
Check Sequence
1. Docker Containers
- Run
docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Ports}}' - Flag any container not "Up" or with restart loops
2. Public URL Verification
- Hit every public-facing endpoint (marketing site, web app, admin, API /health)
- Verify HTTP 200 status codes
- Note response times for any slow endpoints (>2s)
3. SSL Certificates
- Check certificate expiry for all domains:
echo | openssl s_client -servername DOMAIN -connect DOMAIN:443 2>/dev/null | openssl x509 -noout -enddate - Flag any certificates expiring within 30 days
4. Database (Postgres)
- Connect via
docker exec - Check table schemas FIRST with
\d table_namebefore any data queries - Verify recent activity on key tables (users, email_logs, incidents, domains)
5. Redis & BullMQ
- Verify Redis connectivity via
docker execwithredis-cli ping - Check queue depths (pending, active, failed jobs)
- Flag any queues with >0 failed jobs
6. Disk & Resources
- Docker disk usage:
docker system df - System disk:
df -h - Memory and load averages
- If Docker reclaimable space exceeds 5GB, suggest
docker system prune -f
7. Recent Error Logs
- Check last 50 lines of each API/worker container logs
- Flag any repeated errors or stack traces
Output Format
Summarize all findings in a table with status indicators:
- PASS
- WARNING (needs attention soon)
- FAIL (needs immediate action)
End with a health score out of 100 and prioritized action items.
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
docs:write-concisely
Apply writing rules to any documentation that humans will read. Makes your writing clearer, stronger, and more professional.
kaizen:why
Iterative Five Whys root cause analysis drilling from symptoms to fundamentals
verification-loop
A comprehensive verification system for Claude Code sessions.
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always