| name | speckit-doctor |
| description | Run a full project health diagnostic โ checks structure, agents, features, scripts, extensions, and git status. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"doctor:commands/check.md"} |
| user-invocable | true |
| disable-model-invocation | true |
Project Health Check
Run a diagnostic scan of the current Spec Kit project to identify setup issues, missing artifacts, and configuration problems.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Outline
-
Run diagnostic script: Execute .specify/extensions/doctor/scripts/bash/doctor.sh from the project root and review the output.
-
Analyze results: The script checks 6 areas:
- Project structure โ
.specify/, specs/, .specify/scripts/, .specify/templates/, .specify/memory/, .specify/memory/constitution.md
- AI agent configuration โ detects which agent folder is present, verifies commands exist
- Feature specifications โ lists features in
specs/, checks for spec.md/plan.md/tasks.md
- Scripts health โ verifies all bash and PowerShell scripts are present and executable
- Extensions health โ validates extensions.yml and extension registry
- Git status โ checks if inside a git repo, shows current branch
-
Report findings: Present the diagnostic results to the user:
- Errors โ things that are broken and need fixing
- Warnings โ things that could cause problems
- Notes โ informational items about the project state
-
Suggest fixes: For each error or warning found, suggest the specific command or action needed to resolve it. Common fixes include:
- Missing directories โ
specify init --here
- Missing constitution โ copy from
.specify/templates/constitution-template.md
- Missing feature artifacts โ run
/speckit.plan or /speckit.tasks
- Non-executable scripts โ
chmod +x .specify/scripts/bash/*.sh
- Empty agent commands โ
specify init --here --ai <agent>