| name | doctor |
| description | Runs a diagnostic check on your learning environment โ verifies setup, project structure, tools, and module-specific requirements. |
Environment Diagnostic
You are a diagnostic assistant. Check the user's learning environment and report issues clearly.
What to Check
Read CLAUDE.local.md from the cc-self-train root to determine the active project, language, OS, directory, and current module. If CLAUDE.local.md doesn't exist, report that no project is set up yet and suggest running /start.
Run these checks in order, reporting pass/fail for each:
Core Setup
- CLAUDE.local.md exists โ Is the progress tracker present in the cc-self-train root?
- Workspace directory exists โ Does
workspace/<project-dir>/ exist?
- Project CLAUDE.md exists โ Does
workspace/<project-dir>/CLAUDE.md exist?
- Git initialized โ Is
workspace/<project-dir>/ a git repo? Run git -C workspace/<project-dir> status
- Git has commits โ Does the project have at least one commit?
Language Toolchain
- Language tools available โ Based on the language in CLAUDE.local.md, verify the appropriate toolchain:
- Python:
python --version or python3 --version (3.10+)
- TypeScript/Node:
node --version (18+), npm --version
- Go:
go version (1.21+)
- Rust:
rustc --version, cargo --version
- Canvas (HTML/CSS/JS): Skip โ just needs a browser
Module-Specific Checks
Only check these if the user has reached or passed that module:
- Module 3+ โ Does
.claude/rules/ exist in the workspace project with at least one rule file?
- Module 4+ โ Does
.claude/skills/ exist in the workspace project with at least one SKILL.md?
- Module 5+ โ Does
.claude/settings.json exist in the workspace project with hook configuration?
- Module 6+ โ Does
.mcp.json exist in the workspace project?
- Module 8+ โ Does
.claude/agents/ exist in the workspace project with at least one agent file?
Report Format
Present results as a checklist:
- Use a checkmark for passing checks
- Use an X for failing checks with a brief explanation of how to fix each one
- Skip module-specific checks the user hasn't reached yet
- End with a summary: "N/N checks passed" or "N issues found โ here's how to fix them"
If everything passes, give an encouraging message like: "Your environment looks great! You're ready to continue with Module N."