/plugin-doctor:fixer [plugin name (audit all if omitted)] [--update-spec: refresh official docs]from plugin-doctor
Audits, fixes, and improves every plugin in the marketplace against Claude Code official standards. plugin-doctor itself is included in the audit scope. Use on requests like "플러그인 점검", "plugin doctor", "플러그인 검증", "plugin validate", "플러그인 수정", "plugin fix", "마켓플레이스 검증", "플러그인 건강 검진".
Ships in plugin-doctor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Diagnose every plugin in the marketplace against Claude Code official standards, and fix auto-fixable issues immediately. plugin-doctor itself is included in the audit scope.
Respond to the user in Korean.
Validation criteria live in references/official-spec.md. It is refreshed automatically in Stage 0.
$ARGUMENTS → audit the whole marketplace$ARGUMENTS → audit only that plugin--update-spec → force-run Stage 0Run only when the --update-spec argument is present, or when the Last updated date in references/official-spec.md is more than 30 days old.
references/official-spec.md and check the Last updated datehttps://docs.anthropic.com/en/docs/claude-code/pluginshttps://docs.anthropic.com/en/docs/claude-code/skillshttps://docs.anthropic.com/en/docs/claude-code/agentshttps://docs.anthropic.com/en/docs/claude-code/hooksreferences/official-spec.md and refresh Last updatedValidate .claude-plugin/marketplace.json.
Checks:
name, owner.nameversion field in SemVer format (regex: ^\d+\.\d+\.\d+$)plugins[] array:
name field present + kebab-case (regex: ^[a-z][a-z0-9]*(-[a-z0-9]+)*$)source field present./Validate each plugin's .claude-plugin/plugin.json.
Checks:
name field: present + kebab-caseversion field: present (Warning if missing) + SemVer formatdescription field: present (Info if missing)author field: present (Info if missing)Validate each plugin's skills/*/SKILL.md.
Checks:
name field: kebab-case, max 64 charsdescription field: presence (Warning if missing)
allowed-tools field:
mcp__* patternmodel field: valid value (sonnet, haiku, opus, or full model ID)effort field: valid value (low, medium, high, max)context field: when using fork, check the agent field is also setcommands/ directory exists → Critical + provide a skills-migration guideValidate each plugin's agents/*.md.
Checks:
name (kebab-case), descriptiontools field: tool-name validity (same criteria as Stage 3)model field: valid value (sonnet, haiku, opus, inherit)maxTurns field: check it is a positive integerhooks, mcpServers, or permissionMode fields are present (ignored in plugin agents)whenToUse field: check it contains an <example> tag (Info if missing)color field: presence (Info if missing)Validate each plugin's hooks/hooks.json or the hooks field inside plugin.json.
Checks:
SessionStart, InstructionsLoaded, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, Notification, SubagentStart, SubagentStop, TaskCreated, TaskCompleted, TeammateIdle, Stop, StopFailure, ConfigChange, CwdChanged, FileChanged, WorktreeCreate, WorktreeRemove, PreCompact, PostCompact, Elicitation, ElicitationResult, SessionEndcommand, http, prompt, agentcommand-type hooks:
$CLAUDE_PLUGIN_ROOT is used correctlytimeout field: check it is a positive integerValidate each plugin's overall directory structure.
Checks:
README.md presence (Warning if missing)commands/, agents/, skills/, etc. with no content (Warning)reference/ and references/ directories coexist within the same skillplugin.json (commands, agents, etc.) live inside the .claude-plugin/ directory (wrong location)../ (path-escape detection)Validate plugin-doctor itself against the same criteria as Stage 1–6.
Additional checks:
references/official-spec.md exists and is not emptyallowed-tools includes WebFetch and WebSearch (needed to run Stage 0)official-spec.mdCombine all diagnostic results into a report.
Severity classification:
Auto-fixable items (run after user confirmation):
commands/ directoriesversion field (taken from marketplace.json)allowed-tools comma-separated string → YAML listReport output format:
# Plugin Doctor Report
## 스펙 상태
- official-spec.md: [날짜] ([갱신 여부])
## 요약
| 플러그인 | Critical | Warning | Info | 상태 |
|----------|----------|---------|------|------|
| plugin-a | 0 | 1 | 2 | 🟡 |
| plugin-b | 1 | 0 | 0 | 🔴 |
| plugin-doctor (self) | 0 | 0 | 0 | 🟢 |
## 상세 진단
### plugin-a
| 심각도 | Stage | 항목 | 현재 상태 | 권장 조치 |
|--------|-------|------|----------|----------|
| ⚠️ | 6 | README.md | 누락 | 생성 필요 |
| ℹ️ | 4 | agent color | 미설정 | color 필드 추가 권장 |
## 자동 수정 제안
다음 항목을 자동 수정할까요?
- [ ] plugin-a/commands/ 빈 디렉토리 삭제
- [ ] plugin-b/.claude-plugin/plugin.json에 version: "1.0.0" 추가
## 수동 조치 필요
1. [Critical] plugin-b: ...
Once the user approves an auto-fix, apply that item immediately.
If the Codex skill is available and there are 3 or more approved auto-fixable items, you can delegate some to /codex:rescue in parallel to speed up fixing.
codex:codex-rescue subagent (--write):
/codex:resultGuardrail:
official-spec.md, the severity rubric, and the revalidation score are owned by fixer as the source of truth. If Codex relaxes criteria or deletes a finding, reject that fix. If the Codex skill is not installed, or there are fewer than 3 auto-fixable items, fix directly using the existing approach.
Protocol reference:
references/evaluation-protocol.mdPrinciple: Generator-Evaluator role separation + skeptical evaluation (Anthropic Harness Design blog)
Before starting any auto-fix, define the completion criteria clearly:
## Sprint Contract
- 자동 수정 대상: [Critical/Warning 중 자동 수정 가능한 항목 목록]
- CLEAN 기준: Critical + Warning findings = 0
- 수동 조치 항목: [자동 수정 불가능한 항목 → 리포트에만 표시]
- 수정이 아닌 것: findings 삭제, 심각도 하향, 기준 완화
This prior agreement is what keeps revalidation criteria consistent.
After user approval, run the auto-fix items.
After fixing, switch into a separate skeptical evaluator role and re-verify.
Skeptical evaluation perspective (avoid the self-evaluation trap):
2-axis multi-dimensional evaluation:
| Axis | Weight | Description |
|---|---|---|
| Standard Compliance | 60% | Field/value-format compliance against official-spec.md |
| Structural Health | 40% | File paths, naming, reference integrity |
Score calibration:
| Band | Standard Compliance | Structural Health |
|---|---|---|
| 9-10 | 100% official-spec compliance | paths/naming OK + README present |
| 7-8 | 1-2 minor mismatches | 1 minor structural issue |
| 5-6 | many Warning-level mismatches | empty directory, naming mismatch |
| 3-4 | Critical present | files placed in wrong location |
| 1-2 | many required fields missing | basic structure absent |
Verdict: weighted average ≥7 PASS / 4-6 PARTIAL / <4 FAIL
fixer domain anti-patterns (automatic deductions):
| Anti-pattern | Axis | Deduction |
|---|---|---|
| commands/ directory remains | Structural Health | -3 (Critical) |
| plugin.json ↔ marketplace.json version mismatch | Standard Compliance | -3 (Critical) |
| SKILL.md frontmatter parse failure | Standard Compliance | -3 (Critical) |
| README.md missing | Structural Health | -1 (Warning) |
| empty skills/ or agents/ directory | Structural Health | -1 (Warning) |
| allowed-tools comma-separated string | Standard Compliance | -1 (Warning) |
Revalidation scope: Re-run only the Stage of the items you fixed:
Round 1: Sprint Contract 정의 → Stage 1~8 (진단) → 자동 수정
Round 2: 회의적 재검증 (수정 항목 관련 Stage만)
→ CLEAN → 완료
→ 잔여 findings → 추가 수정 + Round 3
Round 3: 회의적 재검증 (최종)
→ CLEAN → 완료
→ 잔여 → "수동 조치 필요" 리포트 출력 후 종료
Termination conditions (any one met):
Artifact generation (required from round 2 onward):
At the end of each round, record into the .claude/doctor/ directory:
verify-round-{N}.md: 2-axis scores, anti-pattern detection results, fix guidance# Verify Round {N} — Plugin Doctor
## 플러그인별 평가
### {plugin-name}
| 축 | 가중치 | 점수 | 근거 |
|----|--------|------|------|
| 표준 준수 | 60% | {N}/10 | {구체적 근거} |
| 구조 건전성 | 40% | {N}/10 | {구체적 근거} |
| **가중 평균** | | **{N.N}** | **{PASS/PARTIAL/FAIL}** |
## 안티패턴 탐지
| 플러그인 | 안티패턴 | 축 | 감점 |
|----------|----------|-----|------|
## 종합 판정: {CLEAN/CONTINUE/CONVERGED/MAX_ROUNDS}
Add the loop history to the final report:
## 검증 루프 이력
| 라운드 | Sprint Contract | findings | 수정 | 잔여 | 가중평균 | 판정 |
|--------|----------------|----------|------|------|---------|------|
| 1 | Critical+Warning=0 | 5 | 4 | 1 | 6.2 | CONTINUE |
| 2 | Critical+Warning=0 | 1 | 1 | 0 | 8.4 | CLEAN |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub oozoofrog/oozoofrog-plugins --plugin plugin-doctor