with one click
redsub-doctor
Diagnose and auto-repair plugin integrity.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Diagnose and auto-repair plugin integrity.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | redsub-doctor |
| description | Diagnose and auto-repair plugin integrity. |
Diagnose plugin health and auto-repair issues.
Check for orphaned rules files from previous versions in ~/.claude/rules/:
ls ~/.claude/rules/redsub-*.md 2>/dev/null
If any redsub-*.md files are found, they are leftovers from v2.x (v3.0 no longer deploys rules files).
Auto-fix: Remove orphaned files:
rm -f ~/.claude/rules/redsub-*.md
Read ~/.claude-redsub/install-manifest.json:
files_created are trackedAuto-fix: Regenerate manifest from current state.
Read the plugin registry from ${CLAUDE_PLUGIN_ROOT}/config/plugins.json — this is the Single Source of Truth (SSOT). Do NOT use a hardcoded list.
For each plugin in the registry, check ~/.claude/plugins/installed_plugins.json:
<name>@<marketplace>) does not existgitCommitSha is empty — register-plugins.sh creates placeholder entries that Claude Code auto-resolves (installPath/version get filled from marketplace cache), but without gitCommitSha they are NOT recognized as installed in /plugin Installed tabBoth cases should be reported and offered for auto-install.
Report: List missing/uninstalled plugins with install commands constructed from name and marketplace fields:
Missing: <name> (not registered)
Install: /plugin install <name>@<marketplace>
or:
Missing: <name> (registered but not installed — empty gitCommitSha)
Install: /plugin install <name>@<marketplace>
Auto-fix: Use AskUserQuestion to ask user whether to auto-install missing plugins. If yes, run each sequentially:
claude plugin install <name>@<marketplace>
If CLAUDE.md contains <!-- redsub-claude-code:start -->:
<!-- redsub-claude-code:end --> exists<!-- redsub-template-version:X.X.X --> inside markers:
${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.md.templateAuto-fix: Re-inject markers if corrupted. For outdated templates, suggest /redsub-update.
Verify ${CLAUDE_PLUGIN_ROOT}/hooks/hooks.json is valid JSON.
Verify all referenced scripts exist and are executable.
Auto-fix: Re-set executable permissions on scripts.
Search all plugin files for legacy /rs- references:
grep -r '/rs-' ${CLAUDE_PLUGIN_ROOT}/skills/ ${CLAUDE_PLUGIN_ROOT}/agents/ 2>/dev/null
Report: List any legacy references found.
Plugin health check:
- Legacy rules: [CLEAN/REMOVED N files]
- Manifest: [OK/FIXED/MISSING]
- Dependencies: [OK/N missing] (12 plugins)
- CLAUDE.md markers: [OK/FIXED/N/A]
- Template version: [current/outdated/legacy]
- Hooks: [OK/FIXED]
- Prefix consistency: [OK/N legacy refs]
Overall: [HEALTHY/REPAIRED/NEEDS ATTENTION]
If issues were auto-fixed, summarize what changed. If issues need manual intervention, provide specific instructions.
Enforced release pipeline. Save → Validate → Review → Version → Merge → Tag → Push.
Initial plugin setup. Register plugins, permissions, create CLAUDE.md.
Collaborative design through Socratic dialogue. Turn rough ideas into validated designs.
Deployment workflow for dev/prod environments.
Execute implementation plan task-by-task with subagent dispatch and 2-stage review.
Search and bulk-fix a pattern across the entire codebase.