一键导入
doctor
Diagnose and fix common issues. Use for "debug", "fix this", "what's wrong", and "doctor".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose and fix common issues. Use for "debug", "fix this", "what's wrong", and "doctor".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| 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 |
| Field | Value |
|---|---|
| ID | doctor |
| Keywords | doctor:, /doctor |
| Tier | Developer Tool |
| Source | src/skills/doctor.mts |
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.
| 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 SkillInput {
trigger: string;
args: string[];
}
interface SkillOutput {
status: "ok" | "error";
message: string;
}
export async function activate(input: SkillInput): Promise<SkillOutput>
export function deactivate(): void
Spawns bin/omp.mjs doctor [args]. No persistent resources are maintained.
Possible causes:
Fix:
# Check PATH
echo $PATH
# Verify installation
which {command}
# Reload shell
source ~/.zshrc
Possible causes:
Fix:
# Fix ownership
chown {user}:{group} {file}
# Add execute
chmod +x {file}
Possible causes:
Fix:
# Install if needed
pip install {module}
# Check environment
which python
# Set PYTHONPATH
export PYTHONPATH={path}
## 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}
UI/UX design and frontend component generation
Diagnose and fix build/CI failures automatically
Concurrent code generation via multi-model picker
OMP self-improvement — analyse own skills/agents and propose improvements
Visual diff/screenshot comparison verdict
Clone and adapt a web page/design to the codebase