plugin-repair

plugin-repair is a command for Claude Code from Yassinello/claude-plugin-prd-workflow. It costs 0 tokens per session (682 once invoked), scanned B, original, MIT.

A repair command for the `claude-prd-workflow` plugin that checks its installation, fixes common missing or damaged files, and checks the result again. A plugin installation is the set of files that makes an add-on work.

In plain words
What is it for?
Use it when `claude-prd-workflow` is incomplete or corrupted, then restart Claude Code if the repair succeeds.
Why use it?
It can restore missing commands, agents, skills, or plugin metadata without requiring you to repair the installation file by file.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/yassinello/claude-plugin-prd-workflow/plugin-repair
Clone the repo
git clone --depth 1 https://github.com/Yassinello/claude-plugin-prd-workflow

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for plugin-repair

README.md
[![agentmods](https://agentmods.dev/badge/commands/yassinello/claude-plugin-prd-workflow/plugin-repair.svg)](https://agentmods.dev/commands/yassinello/claude-plugin-prd-workflow/plugin-repair)
Your own site
<a href="https://agentmods.dev/commands/yassinello/claude-plugin-prd-workflow/plugin-repair"><img src="https://agentmods.dev/badge/commands/yassinello/claude-plugin-prd-workflow/plugin-repair.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 682 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00682
Opus 5 $0.00000 $0.00341
Sonnet 5 $0.00000 $0.00136
Haiku 4.5 $0.00000 $0.00068

Measured 5d ago against content hash 2e0cb986c52a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

plugin-repair scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cp ~/.claude-code/plugins/claude-prd-workflow/.claude/config.json ~/config-backup.json
.claude/commands/plugin-repair.md · 128 lines

How it starts

The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plugin Repair Command

You are helping the user repair their claude-prd-workflow plugin installation.

Your Task

Run the automatic repair tool to fix common installation issues.

Steps

  1. Diagnose the problem

    • First run health check to identify issues
    • Show the user what's wrong
  2. Attempt automatic repair

    cd ~/.claude-code/plugins/claude-prd-workflow
    node bin/repair.js
    
  3. Verify repair

    • Health check is automatically run after repair
    • Show the results to the user
  4. Provide next steps

    • If successful: Remind user to restart Claude Code
    • If failed: Provide manual repair instructions

What This Command Fixes

  • Missing command files
  • Missing agent files
  • Missing skill files
  • Corrupted plugin metadata
  • Incomplete installations

Example Flow

🔧 Running repair tool for claude-prd-workflow...

📋 Step 1: Running diagnostic check...

❌ Slash commands: Directory exists but empty
✅ AI agents: 17 files found
✅ Skills: 13 files found

============================================================

🔨 Step 2: Attempting automatic repair...

🔄 Reinstalling plugin...
   ✅ Copied commands/
   ✅ Copied agents/
   ✅ Copied skills/
   ✅ Installed 17 slash commands

✅ Reinstallation complete!

============================================================

🏥 Step 3: Verifying repair...

✅ All systems operational!

💡 Important: Restart Claude Code to see the changes.

============================================================

Manual Repair (if automatic fails)

If automatic repair doesn't work, guide the user through manual steps:

  1. Backup current config (if exists)

    cp ~/.claude-code/plugins/claude-prd-workflow/.claude/config.json ~/config-backup.json
    
  2. Reinstall plugin

    cd ~/.claude-code/plugins/claude-prd-workflow
    node install.js
    
  3. Restore config (if backed up)

    cp ~/config-backup.json ~/.claude-code/plugins/claude-prd-workflow/.claude/config.json
    

Read the full file on GitHub · 128 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 128 lines · 0 tokens per session scan B 2e0cb986c52a

Subscribe to this mod's changes

plugin-repair is a command published in the GitHub repository Yassinello/claude-plugin-prd-workflow (12 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 682 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.