OpenParable
Skip to content
← Back to skills

Cozempic Doctor

Agent Building
cozempic-doctor

Cozempic Doctor is an Agent Skill for agent building published in the Ruya-AI/cozempic repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Run health checks on Claude Code configuration and sessions. Use when troubleshooting Claude Code issues. (cozempic — does not shadow Claude Code's built-in /doctor)

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Ruya-AI/cozempic/blob/HEAD/plugin/skills/cozempic-doctor/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cozempic-doctor, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Run cozempic health checks:

cozempic doctor

Checks for:

  • Trust dialog hang — Windows resume bug where .claude.json trust entry causes hangs
  • Hooks trust flag — missing hasTrustDialogHooksAccepted causing hooks to silently fail (v2.1.51+ bug)
  • Agent model mismatch — spawned subagents not inheriting team lead's model causing 403 errors
  • Claude.json corruption — truncated or invalid .claude.json from concurrent write races
  • Corrupted tool_use — tool blocks with names >200 chars causing 400 API errors
  • Orphaned tool_results — tool_result blocks missing matching tool_use causing 400 API errors
  • Zombie teams — stale agent team directories accumulating on disk
  • Oversized sessions — sessions that may trigger compaction issues
  • Stale backups — old .bak files consuming disk space
  • Disk usage — total Claude Code storage footprint

To auto-fix detected issues:

cozempic doctor --fix