| name | doctor |
| description | Diagnose and fix common issues. Use for "debug", "fix this", "what's wrong", and "doctor". |
| trigger | doctor:, /doctor, /omp:doctor |
| autoinvoke | false |
Skill: Doctor
Metadata
| Field | Value |
|---|
| ID | doctor |
| Keywords | doctor:, /doctor |
| Tier | Developer Tool |
| Source | src/skills/doctor.mts |
Description
Diagnose problems and prescribe solutions based on symptoms. A general-purpose Socratic diagnostic for any error, failure, or unexpected behavior — not limited to OMP installation issues.
Differentiation from omp-doctor
| Aspect | doctor | omp-doctor |
|---|
| Scope | Any problem: errors, performance, config, setup | OMP-specific: plugin version, skills dir, agents dir, plugin.json |
| Method | Symptom collection -> hypothesis -> root cause -> prescription | Structured installation checks with known pass/fail criteria |
| Use when | Something is broken and you don't know why | OMP itself is not working correctly after install |
Interface
interface SkillInput {
trigger: string;
args: string[];
}
interface SkillOutput {
status: "ok" | "error";
message: string;
}
export async function activate(input: SkillInput): Promise<SkillOutput>
export function deactivate(): void
Implementation
Spawns bin/omp.mjs doctor [args]. No persistent resources are maintained.
When to Use
- Unexpected errors or failures
- Degraded performance
- Configuration issues
- Setup problems
- "Something is wrong"
Diagnosis Process
1. Collect Symptoms
- Error messages
- Behavior observed
- When it started
- Recent changes
2. Identify Possible Causes
- Based on symptoms
- Known patterns
- Recent updates
- Environmental changes
3. Narrow Down
- Test each hypothesis
- Eliminate unlikely causes
- Gather more data
4. Prescribe Fix
- Root cause identified
- Solution determined
- Steps to resolve
- Prevention
Common Diagnoses
"Command not found"
Possible causes:
- PATH misconfiguration
- Installation incomplete
- Typo in command name
- Shell not reloaded
Fix:
echo $PATH
which {command}
source ~/.zshrc
"Permission denied"
Possible causes:
- File ownership wrong
- Missing execute bit
- SELinux/AppArmor
- Sandbox restrictions
Fix:
chown {user}:{group} {file}
chmod +x {file}
"Module not found"
Possible causes:
- Not installed
- Wrong environment
- PYTHONPATH issue
- Virtual env not activated
Fix:
pip install {module}
which python
export PYTHONPATH={path}
Output Format
## Doctor: {issue}
### Symptoms Reported
- {symptom 1}
- {symptom 2}
### Diagnosis
#### Possible Causes
| Cause | Likelihood | Evidence |
|-------|------------|----------|
| {cause 1} | High | {evidence} |
| {cause 2} | Low | {evidence} |
#### Root Cause
**Identified:** {cause}
**Confidence:** {percentage}
### Prescription
#### Fix Steps
\`\`\`bash
{step 1}
{step 2}
\`\`\`
#### Verification
\`\`\`bash
{verify command}
\`\`\`
### Prevention
{how to prevent recurrence}
### Outcome
**Status:** {resolved|partial|unresolved}
**Follow-up:** {if needed}
Constraints
- Collect evidence before diagnosing
- Start with common causes
- Verify fixes work
- Document solutions
- Build pattern library