| name | aweskill-doctor |
| description | Use when aweskill state is abnormal or repair-first: broken projections, duplicates, stale entries, suspicious or new matches, sync problems, malformed SKILL.md frontmatter, warnings, or unexpected post-install/projection state. 中文触发词:技能诊断、技能修复、损坏投影、重复技能、同步问题、异常条目、doctor clean、doctor dedup、doctor sync、doctor fix-skills。 |
Aweskill Doctor
Diagnose first. Mutate only with --apply. Verify after every mutation.
Symptom Workflows
Agent Cannot See a Skill
The user says a skill should be available but the agent doesn't show it.
aweskill agent list --global --agent <id> --verbose
aweskill doctor sync --global --agent <id>
aweskill doctor sync --global --agent <id> --apply
aweskill agent list --global --agent <id> --verbose
If the skill doesn't exist in the central store either, escalate to $aweskill for find / install.
Projection is Broken
agent list shows broken — a managed symlink or copy target no longer resolves.
aweskill agent list --global --agent <id> --verbose
aweskill doctor sync --global --agent <id>
aweskill doctor sync --global --agent <id> --apply
aweskill agent list --global --agent <id> --verbose
Store Has Suspicious Files
store list or doctor clean reports suspicious entries — missing SKILL.md, reserved names, or junk files.
aweskill doctor clean --verbose
aweskill doctor clean --skills-only --verbose
aweskill doctor clean --bundles-only --verbose
aweskill doctor clean --apply
aweskill store list --verbose
Use --remove-suspicious on doctor sync only when suspicious agent entries should actually be removed instead of reported.
Duplicate Skills Exist
Multiple central-store skills collapse to one duplicate family, or multiple agent-side entries map to one canonical skill.
aweskill doctor dedup
aweskill doctor dedup --apply
aweskill doctor dedup --apply --backup
aweskill doctor dedup --apply --delete
aweskill doctor sync --global --agent <id> --apply
SKILL.md Frontmatter is Malformed
doctor fix-skills reports missing closing ---, invalid YAML, missing name or description, or files that start with body content.
aweskill doctor fix-skills --include-info --verbose
aweskill doctor fix-skills --skill <name1>,<name2> --verbose
aweskill doctor fix-skills --apply
aweskill doctor fix-skills --apply --backup
Installed CLI Behaves Differently from Repo Code
Escalate to $aweskill — this is a Self-Update issue, not a doctor issue. The $aweskill skill handles CLI version mismatches via aweskill self-update.
Quick Reference
Inspection Commands (read-only)
aweskill store list --verbose — central store contents
aweskill bundle list --verbose — bundle overview
aweskill agent list [--scope] [--agent] --verbose — projection state
aweskill doctor clean --verbose — suspicious store entries (--skills-only / --bundles-only to narrow scope)
aweskill doctor dedup — duplicate families
aweskill doctor fix-skills --include-info --verbose — frontmatter issues (--skill <name> to limit scope)
aweskill doctor sync [--scope] [--agent] --verbose — sync dry-run
Mutation Commands (require --apply)
aweskill doctor clean --apply — remove suspicious store entries
aweskill doctor dedup --apply — resolve duplicates (add --backup to preserve first, --delete for permanent removal)
aweskill doctor fix-skills --apply — normalize frontmatter (add --backup to preserve originals)
aweskill doctor sync --apply — repair projections (add --remove-suspicious to remove unmanaged entries)
References
references/triage.md — diagnosis decision tree
references/failure-patterns.md — symptom-to-command mapping