| name | doctor |
| description | Load Devflow Native execution rules and repeated-mistake memory before running shell, browser, MCP, or test commands. |
Devflow Doctor
Use before command-heavy work, debugging, browser automation, MCP transport
work, or any task likely to hit platform-specific tooling issues.
Workflow
- Run
devflow doctor --json.
- Apply
executionContract exactly. On Windows PowerShell, keep commands
PowerShell-compatible and avoid Bash-only syntax unless the task targets
WSL.
- Read repeated mistake memory and incorporate corrections before trying a
command that matches a known failure category.
- If a new repeated failure appears, run
devflow mistakes detect --json and
record high-confidence candidates only when appropriate.
- When the same high-confidence mistake repeats, use
devflow mistakes promote --id <id> --target agents|skill|hook|config --dry-run --json
to inspect patch candidates. Record maintainer evidence with
devflow mistakes review --id <id> --status approved|rejected --summary <text> --json
before applying any durable rule.
- Apply durable promotion only with repo-local evidence:
devflow mistakes promote --id <id> --target <target> --apply --json.
Use devflow mistakes rules --json to confirm the active promoted rule.
Output
State platform assumptions, required command style, available tools, repeated
mistakes, active promoted rules, and any command forms to avoid.