/agent:doctorfrom ClawCode
Runs diagnostic checks on the agent workspace: config, identity, memory, SQLite index, cron, hooks, HTTP bridge, messaging plugins. Use when setup feels off, memory search fails, or crons don't fire.
Ships in ClawCode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Health check for this agent. Inspects config, identity, memory, SQLite index, QMD, crons, hooks, HTTP bridge, messaging plugins, and dreaming. When invoked with --fix, applies safe auto-repairs (create memory dir, sync index, delete stale BOOTSTRAP.md) before re-running checks.
This is a CORE feature — always available. See docs/doctor.md for the full list of checks and auto-fixes.
/agent:create or /agent:import — verify setup is cleanCronList → writeback.sh audit — so the registry's .audit state is currentagent_doctor with action='check' (or action='fix' when the user passes --fix); its cron-registry check reads the .audit you just refreshedCronList output — the MCP server cannot see Claude Code's cron state--fix or /agent:doctor fix or says "arreglar" / "auto-fix" / "repara" → mode is fixcheckThe agent_doctor card reads the registry's persisted .audit offline. Refresh it first, or the card may render stale/contradictory cron state.
CronList is a deferred tool. Load it first:
ToolSearch(query='select:CronList')
Call CronList() and pipe its FULL output (verbatim, including a literal No scheduled jobs.) to the mechanical auditor:
printf '%s\n' "<full CronList output>" | bash "$CLAUDE_PLUGIN_ROOT/skills/crons/writeback.sh" audit
(Exit 4 = CronList format drift — remember it and report it as its own ⚠️ line in Step 4.) Keep the CronList output for Step 4.
Call:
agent_doctor(action='<mode>')
Print the returned card verbatim.
Append a cron section rendered from the Step 2 CronList output (do not call it again):
prompt contains /agent:heartbeat → report scheduleprompt contains dream → report schedule⚠️ and suggest: "Missing cron — run the default crons flow (see AGENTS.md)"orphaned>0, add: ⚠️ <N> registry reminder(s) not firing — run /agent:crons reconcileblocked key= lines, add: ⚠️ <B> reminder(s) with ambiguous live duplicates — review with /agent:crons listFormat:
Crons:
✅ Heartbeat: */30 * * * *
✅ Dreaming: 0 3 * * *
✅ Registry audit: alive=5/5
If the diagnostic card includes any → hint: lines, those are already rendered. Do not repeat them; the user has what they need.
fix mode, remind the user to reloadAfter a fix run, if any fix was applied or any hook-related issue remains, recommend /mcp to reload the MCP server. Example:
Some changes take effect only after reloading the MCP server. Run `/mcp` to apply.
✅ Config · ✅ Identity · ⏸️ HTTP · ℹ️ Dreaming · ... — full card is too wide for mobile./agent:doctor, only check. Only apply fixes on --fix or when the user explicitly asks to repair.lib/doctor.ts. If they ask about something not covered (e.g. "check my OpenAI API key"), say the doctor doesn't cover that yet — or consult docs/doctor.md for the current check list.docs/doctor.md — full feature documentationlib/doctor.ts — implementation (checks + fixes)docs/INDEX.md — master feature indexWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-health, diagnostics, troubleshooting, workspace-check, auto-repair
21 skills in this plugin
/aboutShow the plugin source — name, version, and repo URL. Works from CLI or messaging. Triggers on /about, /version, /agent:about, /agent:version, "qué versión", "what version", "about the plugin", "about clawcode"./channelsShow messaging channel status (WhatsApp, Telegram, Discord, iMessage, Slack, Fakechat) and the launch command to load them. Triggers on /agent:channels, /agent:channels list, /agent:channels status, /agent:channels launch, "ver canales", "estado de canales", "cómo lanzo con whatsapp", "channel status", "messaging status"./compactFlush important session context to daily log (manual memory flush). Does NOT invoke native /compact. Triggers on /compact, /agent:compact, /flush, "guarda memoria", "flush".npx claudepluginhub crisandrews/clawcode --plugin agentOther plugins' skills for the same job