From claude-code
Use when diagnosing Claude Code install/update/auth/config/runtime health, broken customizations, safe mode, bare mode, debug logs, auto-mode classifier, settings validation, keychain or API-key auth boundaries, IDE/Chrome integration, doctor warnings, or update/install/setup-token issues.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code:claude-doctor-debuggerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when Claude Code itself is failing or unclear: install/update
Use this skill when Claude Code itself is failing or unclear: install/update state, auth, settings, hooks, plugins, MCP startup, keychain/API-key boundaries, safe-mode or bare-mode isolation, debug logs, auto-mode classifier behavior, IDE/Chrome integration, or native build installation.
From this skill directory, the plugin root is ../...
For broader safety contracts, read
../../references/cli-operation-contracts.md.
Use the inspector and help output before running health checks:
python3 ../../scripts/claude_code_inspector.py --commands doctor auto-mode install auth --json
claude doctor --help
Avoid running claude doctor automatically in untrusted repositories because
its help warns that it skips the workspace trust dialog and may spawn stdio
servers from project MCP config.
Use --safe-mode when customizations may be broken:
claude --safe-mode
claude --safe-mode --print "Check whether startup works."
Use --bare when the task needs minimal startup behavior, no keychain reads, no
hooks, no plugin sync, no auto-memory, and no CLAUDE.md auto-discovery:
claude --bare --print --settings /path/to/settings.json --add-dir /path/to/project "Inspect explicit context only."
In bare mode, auth is explicit: ANTHROPIC_API_KEY or an apiKeyHelper from
settings. Do not print or store key values.
Use debug only for targeted failures:
claude --debug api,hooks
claude --debug-file /tmp/claude-debug.log --print "Reproduce the issue."
Debug output may contain local paths, prompt fragments, tool inputs, hook output, or environment-derived details. Summarize issue names, timestamps, and error classes rather than pasting raw logs.
Read classifier state before changing settings:
claude auto-mode defaults
claude auto-mode config
claude auto-mode critique
Use this evidence when --permission-mode auto, tool denials, or custom
auto-mode rules behave unexpectedly.
Treat these as explicit user-request operations:
claude install stable
claude install latest --force
claude update
claude setup-token
claude auth
Do not run them speculatively. Report the intended target, version, and credential boundary before changing anything.
doctor in an untrusted directory unless the user selected that directory.Report the diagnostic lane, commands run, exact issue names or error text, version/help facts used, any config/auth/update/daemon state changed, and the smallest next repair or verified healthy state.
npx claudepluginhub xopoko/plug-n-skills --plugin claude-codeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.