/doctor Command
Run a comprehensive diagnostic on your pro-workflow and Claude Code setup. Identifies configuration issues, context problems, and setup gaps.Syntax
What It Checks
Hooks Status
Checks if hooks.json is loaded and hooks are active:Checks:
- hooks.json in correct location
- Script paths use
${CLAUDE_PLUGIN_ROOT}or absolute paths - Scripts have execute permissions
Context Health
Measures context window usage:Thresholds:
- Usage < 70%: Healthy
- Usage 70-90%: Warning — Consider
/compact - Usage > 90%: Critical — Compact immediately or start fresh
CLAUDE.md Size
Checks memory file length:Thresholds:
- < 60 lines: Ideal
- 60-150 lines: Acceptable
- > 150 lines: Too long — Split into modules
Git Status
Checks for uncommitted changes and stale stashes:Flags:
- Uncommitted changes → Commit or stash
- Stale stashes → Clean up
Quick Fixes
The/doctor command provides fixes for common issues:
| Issue | Fix |
|---|---|
| Commands missing | cp -r /path/to/pro-workflow/commands/* ~/.claude/commands/ |
| Database missing | mkdir -p ~/.pro-workflow && npm run build (in plugin dir) |
| Hooks not firing | Check paths in hooks.json use absolute paths |
| Context degraded | Run /compact or start fresh session |
| Too many MCPs | Disable unused: disabledMcpServers in settings |
| CLAUDE.md too long | Split into root + package-level files |
Example Output
When to Run /doctor
- Run Weekly
- Run When Issues Arise
- Run After Setup
Scheduled health check:
- Every Monday or at start of sprint
- After installing new MCPs
- After major config changes
- When sessions feel slow
Interpreting Results
Installation Issues
Commands Missing:Hook Issues
Hooks Inactive: Check hooks.json paths:Context Issues
High Context Usage (>70%):MCP Issues
Too Many MCPs (>10 servers): Disable unused MCPs in settings.json:CLAUDE.md Issues
File Too Long (>150 lines): Split into modular files:Best Practices
Run Weekly
Schedule a weekly
/doctor check to catch config drift early.After Plugin Updates
Run
/doctor after updating pro-workflow or Claude Code.Before Big Features
Verify health before starting large features with
/develop.Share Reports
Share
/doctor output when asking for support or reporting issues.Troubleshooting
/doctor command not found
/doctor command not found
If
/doctor isn’t recognized:-
Check plugin installation:
-
Try with full namespace:
-
Reinstall plugin:
Database check fails
Database check fails
If database isn’t found:
-
Check location:
-
Initialize database:
-
Verify SQLite support:
Hooks show as inactive
Hooks show as inactive
If hooks aren’t firing:
-
Check hooks.json location:
-
Verify script paths:
-
Test hook manually:
Related Commands
/wrap-up
Full session audit after fixing issues
Settings Guide
Complete settings reference
Next Steps
- Review Configuration Guide
- Set up MCP Servers
- Configure Quality Gates