$ recombobulate _
home / tips / run-doctor-to-validate-your-claude-code-environment
0

Run /doctor to Validate Your Claude Code Environment

bagwaa @bagwaa · Mar 25, 2026 · Debugging
run-doctor-to-validate-your-claude-code-environment

Something's not working right, but you're not sure if it's your prompt, your code, or your setup. /doctor cuts through the guesswork and checks your Claude Code environment in one shot.

/doctor

It validates your API key, checks that the selected model is accessible, confirms tool availability, and surfaces any configuration issues — all at once.

It's the first thing to run when Claude starts behaving unexpectedly, especially after:

  • Updating Claude Code to a new version
  • Rotating or changing your API key
  • Switching machines or dev containers
  • Modifying your config files
# You can also run it without entering interactive mode
claude /doctor

The output will tell you exactly what's wrong — whether it's an expired API key, a missing model permission, or a misconfigured tool. Most setup issues have a clear fix once you know which layer is broken.

Before spending 20 minutes debugging your prompt, spend 5 seconds debugging your environment.

Run /doctor before blaming your prompt — it might just be a stale API key.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Detect and Fix Memory Leaks in Your Node.js Application with Claude

Hand Claude your heap snapshots or server code and ask it to trace memory leaks — it spots missing event listener cleanup, unbounded caches, and stream lifecycle bugs that are easy to miss in code review.

bagwaa @bagwaa · 2 hours ago
0
Audit Your UI Components for Accessibility Issues with Claude

Ask Claude to audit your UI components for WCAG accessibility issues — it catches semantic problems, missing ARIA attributes, and keyboard navigation gaps that automated tools miss.

bagwaa @bagwaa · 2 hours ago
0
Debug API and MCP Issues with --debug

The --debug flag enables verbose logging for Claude Code, and an optional category filter like "api,mcp" lets you narrow output to exactly the subsystem you need to investigate.

bagwaa @bagwaa · 5 hours ago