Agent skill
babysitter:doctor
Diagnose babysitter run health — journal integrity, state cache, effects, locks, sessions, logs, and disk usage.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/doctor-a5c-ai-babysitter
SKILL.md
babysitter:doctor
Comprehensive diagnostic agent for babysitter runtime health. Performs 10 mandatory health checks on a specific run (or the most recent run if no ID is provided).
Run Discovery
If no run-id argument provided, find the most recent run:
ls -t .a5c/runs/ | head -1
10 Mandatory Health Checks
For each check, report PASS, WARN, or FAIL.
1. Run Discovery
- Verify run directory exists at
.a5c/runs/<runId>/ - Display run metadata (process ID, created at, status)
- Check manifest.json exists and is valid
2. Journal Integrity
- Verify
.a5c/runs/<runId>/journal.jsonlexists - Check each line is valid JSON
- Verify timestamps are monotonically increasing
- Verify event type consistency
- Count events by type
3. State Cache Consistency
- Compare
state.jsonagainst journal events - Verify derived state matches journal history
- Check for orphaned state entries
4. Effect Status
- List all effects and their statuses
- Flag stuck effects (requested > 30 minutes ago, still pending)
- Flag errored effects
- Count pending vs completed
5. Lock Status
- Check for
run.lockfile - If lock exists, verify PID is alive
- Flag stale/orphaned locks
6. Session State
- Inspect session state file
- Check iteration count vs max
- Detect potential runaway loops (fast iteration pattern)
7. Log Analysis
- Check
.a5c/logs/for hook logs - Scan for errors in stderr logs
- Report log file sizes
8. Disk Usage
- Report
.a5c/runs/<runId>/total size - Identify files > 10MB
- Report blob storage usage
9. Process Validation
- Verify process entry point exists and passes
node --check - Check
@a5c-ai/babysitter-sdkdependency is installed - Verify process exports match manifest
10. Hook Health
- Check all hook scripts exist and are executable
- Verify
sh -npasses for shell scripts - Verify
node --checkpasses for JS hooks
Output
Print a summary table:
Check Status Details
─────────────────────────────────────────
1. Run Discovery PASS Run 01KJY... found
2. Journal Integrity PASS 42 events, checksums valid
3. State Cache PASS Consistent
4. Effect Status WARN 1 stuck effect (> 30min)
5. Lock Status PASS No stale locks
...
Then print detailed findings and recommendations for any WARN/FAIL checks.
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?