cc-health-check
v1.0.0
Published
CLI diagnostic for your Claude Code setup. 20 checks across 6 dimensions.
Maintainers
Readme
cc-health-check
Is your Claude Code setup actually production-ready?
108 hours of autonomous AI operation taught us what breaks first. This tool checks your setup against 20 real failure patterns — in 30 seconds.
npx cc-health-checkNo installation required. Nothing leaves your machine.
Why this exists
Claude Code can run autonomously for hours. But most setups aren't built for that. Files get deleted. Costs spike. The AI loops on errors. Push-to-main happens without review.
These aren't hypothetical. They're what actually happens without the right guardrails.
cc-health-check scans your .claude/settings.json and CLAUDE.md for 20 known failure patterns, gives you a score, and tells you exactly what to fix.
Quick start (no install)
Web version — paste in your CLAUDE.md, get your score instantly: 👉 https://yurukusa.github.io/cc-health-check/
CLI — scans your local setup automatically:
npx cc-health-checkWhat it checks
| Dimension | Checks | What it looks for | |-----------|--------|-------------------| | Safety Guards | 4 | PreToolUse hooks, secret handling, branch protection, error gates | | Code Quality | 4 | Syntax checking, error tracking, DoD checklists, output verification | | Monitoring | 3 | Context window alerts, activity logging, daily summaries | | Recovery | 3 | Backup branches, watchdog, loop detection | | Autonomy | 3 | Task queues, question blocking, persistent state | | Coordination | 3 | Decision logs, multi-agent support, lesson capture |
Sample output
Claude Code Health Check v1.0
═══════════════════════════════════════
▸ Safety Guards
[PASS] PreToolUse hook blocks dangerous commands
[PASS] API keys stored in dedicated files
[FAIL] Setup prevents pushing to main/master without review
[PASS] Error-aware gate blocks external calls when errors exist
Score: 63/100 — Getting There
Top fixes:
→ Add a PreToolUse hook that blocks destructive commands.
→ Scan bash output for error patterns in PostToolUse hooks.Scores
| Score | Grade | |-------|-------| | 80-100 | Production Ready | | 60-79 | Getting There | | 35-59 | Needs Work | | 0-34 | Critical |
Got a low score?
claude-code-hooks covers 18 of the 20 checks — drop-in hooks and templates extracted from 108 hours of real autonomous operation.
# See what you're missing
npx cc-health-check
# Fix it
git clone https://github.com/yurukusa/claude-code-hooksHow it works
- Reads
~/.claude/settings.jsonfor hook configurations - Scans
CLAUDE.mdfiles (global + project) for patterns - Checks for common files (
mission.md,proof-log/,task-queue.yaml) - Scores each check (pass/fail) and calculates dimension scores
- Outputs actionable recommendations sorted by impact
Zero dependencies. No data sent anywhere. Runs entirely local.
JSON output
npx cc-health-check --jsonReturns structured JSON with score, grade, dimensions, and per-check results. Useful for CI pipelines, dashboards, or programmatic analysis.
README badge
npx cc-health-check --badgeGenerates a shields.io badge URL for your README:
CI integration
Exit code 0 if score >= 60, 1 otherwise.
# .github/workflows/health-check.yml
name: Claude Code Health Check
on:
push:
paths: ['.claude/**', 'CLAUDE.md']
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npx cc-health-check@latestThe cc-toolkit
| Tool | What it does | |------|--------------| | cc-health-check | Is your AI setup safe? (you are here) | | claude-code-hooks | Fix your score — 10 hooks + 5 templates | | cc-session-stats | How much are you using AI? | | cc-audit-log | What did your AI do? | | cc-cost-check | Cost per commit calculator | | cc-wrapped | Your AI year in review | | cc-roast | Your CLAUDE.md, brutally honest |
License
MIT
