/doctor
Run installation health diagnostics - detect ghost commands, stale cache, hash mismatches, and namespace pollution. Use when saying "doctor", "health check", "diagnose installation", or "check installation".
> /plugin marketplace add anton-abyzov/specweave > /plugin install sw@specweave
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/doctor
Context preview
What this command does when you run it.
Run installation health diagnostics - detect ghost commands, stale cache, hash mismatches, and namespace pollution. Use when saying "doctor", "health check", "diagnose installation", or "check installation".
Command definition
doctor.mddescription: Run installation health diagnostics - detect ghost commands, stale cache, hash mismatches, and namespace pollution. Use when saying "doctor", "health check", "diagnose installation", or "check installation".
argument-hint: "[--fix] [--verbose]"
Doctor - Installation Health Scanner
Project Overrides
**Skill Memories**: If `.specweave/skill-memories/doctor.md` exists, read and apply its learnings.
Project Context
!`.specweave/scripts/skill-context.sh doctor 2>/dev/null || true`
Run SpecWeave installation health diagnostics to detect and fix common issues.
Usage
sw:doctor [--fix] [--verbose]
**Flags**: `--fix` (auto-remediate safe issues) | `--verbose` (show details)
What It Checks
1. **Ghost slash commands** - PLUGIN.md, README.md, FRESHNESS.md leaked into `~/.claude/commands/` appearing as phantom slash commands 2. **Stale cache directories** - Orphaned `temp_local_*` dirs from interrupted plugin installs 3. **Lockfile integrity** - SHA mismatch between `vskill.lock` and installed commands 4. **Command namespace pollution** - Internal .md files (knowledge-base/, lib/, templates/) treated as commands
Execution
**Step 1**: Check if `specweave` CLI is available:
which specweave 2>/dev/null || echo "NOT_FOUND"
If NOT_FOUND, tell the user: "SpecWeave CLI not found. Install with: `npm install -g specweave`"
**Step 2**: Run the doctor command. Parse the arguments from the user:
- If `--fix` passed: `specweave doctor --fix --verbose`
- If `--verbose` passed: `specweave doctor --verbose`
- Default: `specweave doctor --verbose`
specweave doctor --verbose
**Step 3**: Present the output in a readable format. Highlight:
- Any `warn` or `fail` status items
- Suggested fix commands
- If issues found, recommend running with `--fix` flag
Fix Mode
With `--fix`, the doctor will:
- Delete ghost .md files from `~/.claude/commands/`
- Remove orphaned `temp_local_*` cache directories
- Delete namespace-polluting .md files from internal dirs
- Suggest (not auto-run) `specweave refresh-plugins` for hash mismatches
All fixes are **idempotent** and **safe** (only deletes within `~/.claude/`).
ARGUMENTS: $ARGUMENTS
Read more
description: Run installation health diagnostics - detect ghost commands, stale cache, hash mismatches, and namespace pollution. Use when saying "doctor", "health check", "diagnose installation", or "check installation". argument-hint: "[--fix] [--verbose]"
Doctor - Installation Health Scanner
Project Overrides
**Skill Memories**: If `.specweave/skill-memories/doctor.md` exists, read and apply its learnings.
Project Context
!`.specweave/scripts/skill-context.sh doctor 2>/dev/null || true`
Run SpecWeave installation health diagnostics to detect and fix common issues.
Usage
sw:doctor [--fix] [--verbose]
**Flags**: `--fix` (auto-remediate safe issues) | `--verbose` (show details)
What It Checks
1. **Ghost slash commands** - PLUGIN.md, README.md, FRESHNESS.md leaked into `~/.claude/commands/` appearing as phantom slash commands 2. **Stale cache directories** - Orphaned `temp_local_*` dirs from interrupted plugin installs 3. **Lockfile integrity** - SHA mismatch between `vskill.lock` and installed commands 4. **Command namespace pollution** - Internal .md files (knowledge-base/, lib/, templates/) treated as commands
Execution
**Step 1**: Check if `specweave` CLI is available:
which specweave 2>/dev/null || echo "NOT_FOUND"
If NOT_FOUND, tell the user: "SpecWeave CLI not found. Install with: `npm install -g specweave`"
**Step 2**: Run the doctor command. Parse the arguments from the user:
- If `--fix` passed: `specweave doctor --fix --verbose`
- If `--verbose` passed: `specweave doctor --verbose`
- Default: `specweave doctor --verbose`
specweave doctor --verbose
**Step 3**: Present the output in a readable format. Highlight:
- Any `warn` or `fail` status items
- Suggested fix commands
- If issues found, recommend running with `--fix` flag
Fix Mode
With `--fix`, the doctor will:
- Delete ghost .md files from `~/.claude/commands/`
- Remove orphaned `temp_local_*` cache directories
- Delete namespace-polluting .md files from internal dirs
- Suggest (not auto-run) `specweave refresh-plugins` for hash mismatches
All fixes are **idempotent** and **safe** (only deletes within `~/.claude/`).
ARGUMENTS: $ARGUMENTS
Spec-first AI development: describe a feature → AI creates spec + plan + tasks, builds autonomously, syncs to GitHub/JIRA. Domain-expert skills for PM, Architect, Frontend, QA learn your patterns permanently. Claude Code, Codex, Cursor, Copilot & more.
Repo: anton-abyzov/specweave
Other commands on specweave.
- /abandon
Abandon an incomplete increment (requirements changed, obsolete)
Open command - /ado-cleanup-duplicates
Clean up duplicate Azure DevOps work items for a Feature. Finds work items with duplicate titles and closes all except the first created item.
Open command - /ado-clone
Clone Azure DevOps repositories to local workspace. Use after init if cloning was skipped, or to add repos later.
Open command - /ado-close
Close Azure DevOps work item when increment complete
Open command - /ado-create
Create Azure DevOps work item from SpecWeave increment
Open command - /ado-import-areas
Import Azure DevOps area paths from a project and map them to SpecWeave projects. Creates 2-level directory structure with area path-based organization.
Open command

