Workspace Intelligence command
workspai doctor
Diagnose the active project or workspace and produce actionable findings with evidence-backed remediation guidance.
- Category
- Workspace Intelligence
- Workspace Intelligence
- Yes
- Produced artifacts
- 7
- Related contracts
- 9
- Registration
- commander
- Registered options
- 15
Operational role
This purpose is versioned in the CLI runtime command surface. It is not inferred from page copy or a generic command template.
Canonical invocation
This invocation is derived from the runtime command surface. Commands with a registered intelligence execution include their canonical evidence-producing flags.
npx workspai doctorRuntime signature
Arguments, aliases, and options come from the versioned snapshot of the live Commander tree emitted by the CLI. Contract-declared delegated commands intentionally expose only their canonical invocation.
Arguments and aliases
Aliases: None
- scope · optional
Options
- --workspace [path]
- --project
- --json [mode]
- --fresh
- --verbose
- --strict
- --ci
- --profile <profile>
- --fix
- --plan
- --apply
- --runtime <runtime>
- --framework <framework>
- --validate
- --write
Contract relationships
Capability contracts govern whether the command exists; artifact contracts govern the structured output it produces.
contracts/runtime-command-surface.v1.jsonContractcontracts/command-capabilities.v1.jsonContractcontracts/workspace-intelligence/doctor-capabilities.v1.jsonContractcontracts/workspace-intelligence/doctor-fix-result.v1.jsonContractcontracts/doctor-workspace-evidence.v1.jsonContractcontracts/doctor-project-evidence.v1.jsonContractcontracts/workspace-intelligence/doctor-receipt.v1.jsonContractcontracts/workspace-intelligence/doctor-validation.v1.jsonContractcontracts/doctor-workspace-cache.v2.jsonProduced artifacts
Artifacts are durable machine-readable outputs. Their schema, path, and producer relationship must remain stable across CLI, CI, IDE, MCP, and agent consumers.
| Artifact | Schema version | Contract |
|---|---|---|
| .workspai/reports/doctor-capabilities.json | workspai.doctor-capabilities.v1 | contracts/workspace-intelligence/doctor-capabilities.v1.json |
| .workspai/reports/doctor-fix-result-last-run.json | rapidkit-doctor-fix-result-v1 | contracts/workspace-intelligence/doctor-fix-result.v1.json |
| .workspai/reports/doctor-last-run.json | doctor-workspace-evidence-v1 | contracts/doctor-workspace-evidence.v1.json |
| .workspai/reports/doctor-project-last-run.json | doctor-project-evidence-v1 | contracts/doctor-project-evidence.v1.json |
| .workspai/reports/doctor-receipt-last-run.json | workspai.doctor-receipt.v1 | contracts/workspace-intelligence/doctor-receipt.v1.json |
| .workspai/reports/doctor-validation-last-run.json | workspai.doctor-validation.v1 | contracts/workspace-intelligence/doctor-validation.v1.json |
| .workspai/reports/doctor-workspace-cache.json | doctor-workspace-cache-v2 | contracts/doctor-workspace-cache.v2.json |