npx claudepluginhub DuncanJurman/entropy-plugins --plugin meta-unify# Doctor Command You are diagnosing configuration issues across both Claude Code and Codex systems. ## Arguments Parsing Parse `$ARGUMENTS` for optional focus areas: - `mcp` - Check only MCP configurations - `skills` - Check only skill configurations - `hooks` - Check only hooks (Claude) - `rules` - Check only rules (both systems) - `syntax` - Only run syntax validation If no filter, run all checks. ## Flags Check for these flags in `$ARGUMENTS`: - `--fix`: Attempt to automatically fix issues where possible - `--verbose`: Show detailed output for each check ## Flow ### Step 1: Run D...
/doctorRuns environment diagnostics across 12 categories, identifies issues, and offers interactive fixes for providers, auth, RTK, hooks, and token optimization. Also supports category-specific checks.
/doctorDiagnoses pro-workflow and Claude Code setup health by checking installations, hooks functionality, git safety, context usage, CLAUDE.md size, git status, and settings.
/doctorDiagnoses babysitter run health (optional run-id uses most recent), checking 10 areas: journal integrity, state cache, effects, locks, sessions, logs, disk usage, and more. Produces structured report with PASS/WARN/FAIL statuses.
/doctorRuns Lean4 diagnostics on environment, plugin structure, workspace build, and MCP tools; detects legacy migrations and stale files for cleanup. Supports env, migrate [--global], cleanup [--apply] modes.
/doctorPerforms health diagnostics on OrchestKit installation, validating 13 categories including plugins, skills, agents, hooks, permissions, schemas, and MCP status. Supports --verbose, --json, --category flags.
/doctorDiagnoses OCR setup by checking installation files, Git availability, optional GitHub CLI authentication, and reports readiness status.
Share bugs, ideas, or general feedback.
You are diagnosing configuration issues across both Claude Code and Codex systems.
Parse $ARGUMENTS for optional focus areas:
mcp - Check only MCP configurationsskills - Check only skill configurationshooks - Check only hooks (Claude)rules - Check only rules (both systems)syntax - Only run syntax validationIf no filter, run all checks.
Check for these flags in $ARGUMENTS:
--fix: Attempt to automatically fix issues where possible--verbose: Show detailed output for each checkExecute all applicable checks and collect results.
╔══════════════════════════════════════════════════════════════╗
║ DOCTOR DIAGNOSTICS ║
╚══════════════════════════════════════════════════════════════╝
🔍 SYNTAX VALIDATION
──────────────────────────────────────────────────────────────
✓ ~/.claude.json Valid JSON
✓ ~/.claude/settings.json Valid JSON
✓ .mcp.json Valid JSON
✗ ~/.codex/config.toml INVALID TOML
Line 15: Expected '=' after key name
✓ ~/.codex/rules/meta-unify.rules Valid Starlark
📡 MCP SERVERS
──────────────────────────────────────────────────────────────
✓ context7 Command 'npx' exists in PATH
✗ custom-srv Command 'my-server' NOT FOUND
Suggestion: Install the server or update the command path
✓ figma URL https://mcp.figma.com is valid format
🎯 SKILLS
──────────────────────────────────────────────────────────────
✓ code-review Valid SKILL.md in both systems
⚠️ deploy Missing in Codex (Claude-only)
✗ test-runner Invalid YAML frontmatter
Line 3: Missing required field 'description'
⚠️ security-scan References non-existent file
references/owasp-guide.md not found
🪝 HOOKS (Claude only)
──────────────────────────────────────────────────────────────
✓ PostToolUse Valid configuration
⚠️ SessionStart Script not executable
Run: chmod +x ~/.claude/scripts/init.sh
🔒 RULES/PERMISSIONS
──────────────────────────────────────────────────────────────
✓ Claude permissions Valid syntax
✗ Codex rules Duplicate rule detected
'git push' defined twice in meta-unify.rules
📝 INSTRUCTIONS
──────────────────────────────────────────────────────────────
✓ ~/.claude/CLAUDE.md Exists (245 lines)
⚠️ ~/.codex/AGENTS.md Not found
Run /meta-unify:instructions to create
──────────────────────────────────────────────────────────────
SUMMARY: 3 errors | 4 warnings | 8 passed
Run with --fix to attempt automatic repairs.
JSON files (Claude):
~/.claude.json~/.claude/settings.json.claude/settings.json.mcp.jsonTOML files (Codex):
~/.codex/config.tomlStarlark files (Codex):
~/.codex/rules/*.rulesYAML frontmatter (Skills):
SKILL.md filesCommand existence (STDIO servers):
which COMMAND to verify command existsURL format (HTTP servers):
Environment variables:
Required fields:
name field present and validdescription field present and within limitsFile references:
Cross-system consistency:
Script executability:
Event names:
Matcher syntax:
Syntax validation:
Duplicate detection:
Conflict detection:
When --fix is specified, attempt to repair:
Fixable issues:
chmod +x SCRIPTNot fixable (require manual intervention):
──────────────────────────────────────────────────────────────
AUTO-FIX RESULTS
──────────────────────────────────────────────────────────────
✓ Fixed: Made ~/.claude/scripts/init.sh executable
✓ Fixed: Created ~/.codex/rules/ directory
✗ Cannot fix: Invalid TOML syntax (manual edit required)
✗ Cannot fix: Command 'my-server' not found (install needed)
End with actionable next steps:
──────────────────────────────────────────────────────────────
NEXT STEPS
──────────────────────────────────────────────────────────────
1. Fix TOML syntax error in ~/.codex/config.toml (line 15)
2. Install missing command 'my-server' or update MCP config
3. Add 'description' field to test-runner SKILL.md
4. Run /meta-unify:instructions to create AGENTS.md
Run /meta-unify:doctor --verbose for detailed diagnostics.
For expected formats and schemas, invoke the meta-unify-core skill to access: