skill-doctor
- Repo stars 943
- Author updated Live
- Author repo core
- Domain
- Documentation
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @dotCMS · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: skill-doctor
description: Use when a repo skill fails, produces errors, gives wrong instructions, or references stale info…
category: documentation
runtime: no special runtime
---
# skill-doctor output preview
## PART A: Task fit
- Use case: Use when a repo skill fails, produces errors, gives wrong instructions, or references stale information. Also use when a command from a skill returns "not found" or "unknown flag", when a skill references a file path that doesn't exist, when a skill's behavior doesn't match the codebase, or to list available skills, manage local overrides, check staleness, or optimize token usage and quality..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Routing / List / Feedback” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Use when a repo skill fails, produces errors, gives wrong instructions, or references stale information. Also use when a command from a skill returns "not found" or "unknown flag", when a skill references a file path that doesn't exist, when a skill's behavior doesn't match the codebase, or to list available skills, manage local overrides, check staleness, or optimize token usage and quality.”.
- **02** When the source has headings, the agent prioritizes “Routing / List / Feedback” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/skill-doctor`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Routing / List / Feedback”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: skill-doctor
description: Use when a repo skill fails, produces errors, gives wrong instructions, or references stale info…
category: documentation
source: dotCMS/core
---
# skill-doctor
## When to use
- Use when a repo skill fails, produces errors, gives wrong instructions, or references stale information. Also use when…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Routing / List / Feedback” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "skill-doctor" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Routing / List / Feedback
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Skill Doctor
Diagnose issues with repository skills, manage local overrides, and optimize skill quality.
Scope: Skills in the current repository's .claude/skills/ directory only.
Routing
Parse $ARGUMENTS:
| Pattern | Mode |
|---|---|
list |
list (all repo skills) |
info <skill> |
list (detail for one skill) |
feedback [skill] "<message>" |
feedback (quick note) |
(empty) or <skill-name> |
diagnose |
--optimize <skill> |
optimize |
--manage [skill] |
manage (status) |
clone/diff/sync/revert <skill> |
manage (lifecycle) |
report/gist/pr <skill> |
deliver |
resolve <skill> |
resolve |
Unrecognized input: show this table and ask to rephrase. Then read ./reference.md for detailed procedures.
List
Dynamically discovers repo skills by reading .claude/skills/*/SKILL.md. Shows name, description, invocation, and override status. info <skill> reads the full SKILL.md to provide detailed usage guidance. All information comes from the skill files themselves — nothing is hardcoded. See reference.md for details.
Feedback
Lightweight path for quick notes. No investigation or quality gate — just scrub, preview, confirm, post. If skill name is omitted, ask which skill (or use the most recently invoked skill if known from conversation context). See reference.md for details.
Manage
Lifecycle: clone -> edit -> diff -> sync/revert -> pr/gist. Local overrides live at ~/.claude/skills/<name>/ with .skill-origin.json tracking.
Diagnose
- Identify skill, validate it exists
- Classify:
invalid_command|wrong_assumption|stale_info|other - Investigate -- reproduce, root cause, determine fix, check related issues. Quality gate: confirmed problem + root cause + suggested fix
- Duplicate check in Discussion thread. Match found: upvote, add context, or report anyway
- Route: local override -> fix inline, stop. Repo -> offer clone-and-fix or report-only
- Scrub PII, review with developer, deliver to GitHub Discussion + Slack
Optimize
Checks frontmatter, token efficiency (<500 words), structure quality, and staleness (file paths, commands, flags). Scored report with fixes. Local overrides fixed directly; repo versions cloned first.
Deliver & Resolve
Deliver: GitHub Discussion (primary, one thread per skill) + Slack #log-skill-feedback (optional notification). Check prerequisites first (gh auth, repo access). See reference.md.
Resolve: After fix PR merges, mark Discussion reports resolved, post Slack summary, offer to lock thread.
Common Mistakes
See reference.md for the full table. Key rules:
- Never send reports without root cause + suggested fix
- Always check Discussion thread for duplicates before reporting
- Always run
gh auth statusbefore any delivery action revertalways shows diff and requires name confirmation
Override Warning
When ANY skill is invoked and ~/.claude/skills/<name>/.skill-origin.json exists, output before skill content:
SKILL OVERRIDE ACTIVE: <name>
Using: ~/.claude/skills/<name>/ (local)
Instead of: .claude/skills/<name>/ (repo)
Cloned from: <sha> | Repo is N commits ahead
Run /skill-doctor --manage <name> for options
Decide Fit First
Design Intent
How To Use It
Boundaries And Review