en un clic
redsub-doctor
Diagnose and auto-repair plugin integrity.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Diagnose and auto-repair plugin integrity.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
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.
| 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.