afc-doctor
Diagnose afc plugin setup and health
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose afc plugin setup and health
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Code and component analysis — analyze code, trace flows, audit consistency, inspect components
Architecture analysis and design review
Full auto pipeline — run spec-to-clean cycle automatically for new features
Save session state for later resumption
Resolve spec ambiguities with clarifying questions
Pipeline artifact cleanup and codebase hygiene
基于 SOC 职业分类
| name | afc:doctor |
| description | Diagnose afc plugin setup and health |
| argument-hint | [--verbose] |
| allowed-tools | ["Read","Grep","Glob","Bash"] |
| model | sonnet |
Checks whether the all-for-claudecode plugin is correctly installed and configured in the current project. Like
brew doctororflutter doctor— verifies the tool's setup, NOT the project's code quality. Read-only — never modifies files. Reports issues with actionable fix commands.IMPORTANT: Do NOT analyze project source code, architecture, or code quality. Only check afc plugin configuration, hooks, state, and environment. All checks are handled by the bash script — just run it and print the output.
$ARGUMENTS — (optional) flags:
--verbose — detailed output with command results and file paths--fast — skip CI/gate command execution checks (faster)Three-tier status per check:
✓ — pass (healthy)⚠ — warning (non-blocking but suboptimal)✗ — fail (broken, needs action)Each failing check includes a Fix: line with the exact command to resolve it.
Run the health check script (covers ALL categories — no manual checks needed):
"${CLAUDE_SKILL_DIR}/../../scripts/afc-doctor.sh" $ARGUMENTS
Print the script's stdout output as-is. Do not reformat, summarize, or interpret.
Stop. Output nothing after the script output. No analysis, no suggestions, no follow-up actions.
Rules:
afc-doctor.sh script above. No other Bash calls.all-for-claudecode Doctor (v2.11.0)
Plugin root: /path/to/plugin
Environment
✓ git installed (2.43.0)
⚠ jq not found — hook scripts will use grep/sed fallback
Fix: brew install jq
Project Config
✓ .claude/afc.config.md exists
✓ Required sections present
✓ Gate command defined
CLAUDE.md Integration
✓ Global ~/.claude/CLAUDE.md exists
✓ all-for-claudecode block present
⚠ all-for-claudecode block outdated (block: 1.0.0, plugin: 1.1.0)
Fix: run /afc:setup to update
Legacy Migration
✓ No legacy artifacts found
Pipeline State
✓ No stale pipeline state
✓ No orphaned artifacts
Memory Health
Hook Health
✓ hooks.json valid
✓ All hook scripts exist
✓ All scripts executable
Learner Health
✓ Learner not enabled (opt-in via /afc:learner enable)
Version Sync (dev)
✓ Version triple match (1.1.0)
✓ Cache in sync
Skill Definitions (dev)
✓ Frontmatter exists (29 files)
✓ Required fields present
✓ Name-filename match
✓ Fork-agent references valid
Agent Definitions (dev)
✓ Frontmatter exists (12 files)
✓ Required fields present
✓ Name-filename match
✓ Expert memory configured (8/8)
✓ Worker maxTurns configured (2/2)
Doc References (dev)
✓ Referenced docs exist
✓ Domain adapters exist (3 files)
─────────────────────────
Results: 26 passed, 2 warnings, 0 failures
2 warnings found. Non-blocking but review recommended.
Fix: lines are instructions for the USER to run manually — do NOT execute them.--fast is in arguments (these are the slowest checks).