/meta-unify:doctorfrom meta-unify
Diagnose configuration issues across both Claude Code and Codex
Ships in meta-unify. Installing the plugin adds it to Claude Code.
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:
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub dunc4nj/entropy-plugins --plugin meta-unify11 commands in this plugin
/add-hookAdd Hook Command (Claude Only)Add an event-based hook to Claude Code configuration (Claude only - Codex uses rules instead)/add-mcpAdd MCP Server CommandAdd an MCP server to both Claude Code and Codex configurations/add-pluginAdd Plugin CommandCreate a new Claude Code plugin with AI-assisted code generation/add-ruleAdd Rule CommandAdd command permission rules to both Claude Code and Codex/add-skillAdd Skill CommandCreate a skill in both Claude Code and Codex with appropriate format and structure/instructionsInstructions CommandManage CLAUDE.md and AGENTS.md instruction files for both systemsOther plugins' commands for the same job