/doctor
Diagnose and repair system issues -- dependencies, config, engine health.
Usage
/doctor [--fix]
What It Does
Checks that all system components are properly configured and operational. Verifies Elixir/Mix installation, engine compilation, SQLite database, folder structure, and MCP server connectivity. Reports issues with specific remediation steps.
Implementation
- Elixir toolchain -- verify
elixir --version,mix --version. - Engine compilation --
cd engine && mix compilesucceeds. - Dependencies --
cd engine && mix deps.getup to date. - Database -- SQLite file exists and is readable.
- Folder structure -- all 12 numbered folders exist with context.md.
- Search index -- FTS5 index is populated and queryable.
- Rhythm files -- required workflow files exist.
- Config -- engine config is valid.
With --fix: attempt to repair issues automatically (install deps, create missing files, rebuild index).
Examples
# Check system health
/doctor
# Check and auto-fix issues
/doctor --fix