/q:doctor [repo path | intake/<name> | --user]from q
하네스 진단 — 저장소의 CLAUDE.md·rules·스킬·설정·훅을 점검하고, 승인한 항목만 고친다
Ships in q. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Diagnose first, like the built-in Claude Code /doctor. The target is the agent documents and settings of a repo (or an intake copy).
Deterministic checks are done by scripts/scan.py (read-only). Linguistic judgment is yours, following this file and references/.
Reply and write new documents in Korean.
scripts/toolkits/<name>.py + references/toolkits/<name>.md) turns on only when the repo has its detection marker.python3 -I ${CLAUDE_SKILL_DIR}/scripts/scan.py --env. Below, <doctor> is its DOCTOR_ROOT: the harness repo, set only when this session's project is that repo or HARNESS_DOCTOR_ROOT is set; the scan skips canonical-source checks without it.
When DOCTOR_ROOT is empty: put handoffs and HUMAN_TODO items in the report as text for the user instead of files, and for D-xx and canonical-source questions ask the user.<doctor>/.claude/handoff/<repo>.md instead.<doctor>/HUMAN_TODO.md.<doctor>/.claude/base/decisions/D-xx applies, check whether it is settled in the status table of <doctor>/.claude/base/decisions/README.md; if settled, propose the fix it decides; if not, point to that D-xx and ask the user. Per-toolkit D-xx tables are in each references/toolkits/<name>.md.~/.claude problems into a fix of the canonical source. The canonical source is <doctor>/home/.claude/ (list: home/MANIFEST). Do not touch the real ~/.claude. The user reviews with tools/home-sync.sh diff and then apply.$ARGUMENTS)
intake/<name>: an external project copy (<doctor>/intake/README.md, only with <doctor>). Skip git-based checks.--user: user level (the real ~/.claude, and canonical <doctor>/home/.claude when <doctor> is set)python3 -I ${CLAUDE_SKILL_DIR}/scripts/scan.py --sessions <path>
SESSION-LIVE (error) appears, classify every fix of this diagnosis as "인계" (handoff).SESSION-SIBLING means a session is in another worktree of the same repo. Do not touch that worktree or shared state (branches, .git, todos).python3 -I ${CLAUDE_SKILL_DIR}/scripts/scan.py <path>
툴킷: line in the report header shows the toolkits enabled for this repo and their markers. If wrong, rerun with --toolkits luau,web (or none).--only 1,2,3 picks items. Add --json for machine-readable output.python3 -I ${CLAUDE_SKILL_DIR}/../../scripts/records_check.py --root <path> [--json] (read-only). How to report and fix REC- codes: references/records.md.RULE-DUP read the two lines side by side; for STALE-DATED check against git log or code.references/fix-protocol.md.
| # | Item | Layer | scan code prefix | reference |
|---|---|---|---|---|
| 0 | Running sessions | core | SESSION- | references/fix-protocol.md |
| 1 | Always-loaded size | core | LOAD- | references/load-and-rules.md |
| 2 | rules structure | core | RULE- | references/load-and-rules.md |
| 3 | Skill state | core | SKILL-, LINK- | references/skills.md |
| 4 | Staleness and contradiction | core | STALE- | references/staleness-and-kb.md |
| 5 | Shared-knowledge skew | toolkit | KB- | references/staleness-and-kb.md, toolkit doc |
| 6 | Replica drift | core (+toolkit) | DRIFT- | references/drift-and-settings.md |
| 7 | Settings, domain packs (packs/, default off) | core | SET-, PACK- | references/drift-and-settings.md |
| 8 | Toolchain | toolkit | TOOL-, <toolkit>- | toolkit doc |
| 9 | worktree hygiene | core | WT- | references/worktrees.md |
| 10 | Memory portability (orphan keys, repo knowledge, MEMORY.md size) | core | MEM- | references/memory-portability.md |
| 11 | Agent records (status, format key, archive, index, links, size, raw) | core | REC- | references/records.md, coderag:agent-records skill |
| - | Toolkit structure and behavior | references/toolkits/README.md | ||
| - | Toolkit luau (Luau/Roblox) | toolkit | TOOL-, KB-, DRIFT-TYPEDEFS | references/toolkits/luau.md |
| - | Toolkit web (skeleton, detection only) | toolkit | (reserved WEB-) | references/toolkits/web.md |
| - | How to fix; handoff, HUMAN_TODO, D-xx question frames | references/fix-protocol.md | ||
| - | Model judgment examples (scan candidate -> verdict) | references/example-report.md |
syntax="Luau".바로 고침 / 인계 / HUMAN_TODO / D-xx 질문 / 정본(home) / 반입 원본에 전달 (intake targets)references/drift-and-settings.md (opens in a new tab)references/example-report.md (opens in a new tab)references/fix-protocol.md (opens in a new tab)references/load-and-rules.md (opens in a new tab)references/memory-portability.md (opens in a new tab)references/records.md (opens in a new tab)references/skills.md (opens in a new tab)references/staleness-and-kb.md (opens in a new tab)references/toolkits/README.md (opens in a new tab)references/toolkits/luau.md (opens in a new tab)references/toolkits/web.md (opens in a new tab)references/worktrees.md (opens in a new tab)scripts/harness_env.py (opens in a new tab)scripts/memory_checks.py (opens in a new tab)scripts/memory_move.py (opens in a new tab)scripts/memory_signals.py (opens in a new tab)scripts/pack_checks.py (opens in a new tab)scripts/scan.py (opens in a new tab)scripts/scan_load.py (opens in a new tab)scripts/scan_settings.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub qwreey/qwreey-harness --plugin q