plugin-update

An update command for the claude-prd-workflow plugin, which supports product-requirements planning workflows in Claude Code.

In plain words
What is it for?
It is for updating that plugin and checking its installation afterward. The instructions also cover restarting Claude Code and running a health check.
Why use it?
It automates the steps needed to fetch, back up, reinstall, and check a newer plugin version.

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-update
Clone the repo
git clone --depth 1 https://github.com/Yassinello/claude-plugin-prd-workflow

Made for: Claude Code.

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 687 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 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.00687
Opus 5 $0.00000 $0.00344
Sonnet 5 $0.00000 $0.00137
Haiku 4.5 $0.00000 $0.00069

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

Security

Grade C, and why

plugin-update scanned grade C 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 2d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf claude-prd-workflow
.claude/commands/plugin-update.md · 123 lines

How it starts

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

Plugin Update Command

You are helping the user update the claude-prd-workflow plugin to the latest version.

Your Task

Run the automated update script that handles everything.

Steps

  1. Navigate to plugin directory

    cd ~/.claude-code/plugins/claude-prd-workflow
    
  2. Run update script

    node bin/update.js
    

The script automatically:

  • ✅ Checks current version
  • ✅ Fetches latest version from GitHub
  • ✅ Backs up current state
  • ✅ Updates via git pull or manual download
  • ✅ Reinstalls to update global commands/agents/skills
  • ✅ Runs health check to verify installation
  • ✅ Shows what's new
  1. Post-update
    • Remind user to restart Claude Code
    • Suggest running /plugin-health to verify
    • Link to CHANGELOG.md for details

Alternative: Manual Update

If automatic update fails, provide manual instructions:

# Backup config
cp -r ~/.claude-code/plugins/claude-prd-workflow/.claude ~/prd-config-backup

# Update via git
cd ~/.claude-code/plugins/claude-prd-workflow
git pull origin main
node install.js

# Or fresh install
cd ~/.claude-code/plugins
rm -rf claude-prd-workflow
git clone https://github.com/Yassinello/claude-prd-workflow
cd claude-prd-workflow
node install.js

# Restore config if needed
cp -r ~/prd-config-backup ~/.claude-code/plugins/claude-prd-workflow/.claude

# Verify
node bin/check-health.js

Important Notes

  • The update script automatically backs up your config
  • Your PRD files in product/ are never touched
  • If update fails, the plugin stays on the old version (safe)
  • Always restart Claude Code after updating
  • Run /plugin-health to verify the update succeeded

Example Output

🔄 Updating claude-prd-workflow plugin...

📦 Current version: 2.7.0

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

🔍 Checking for updates...

   Checking git status...
   Fetching latest version from GitHub...
   Pulling latest changes...

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

🔨 Reinstalling to update global files...

   Running install.js...
   ✅ Copied commands/
   ✅ Copied agents/
   ✅ Copied skills/
   ✅ Installed 17 slash commands
   ✅ Installed 17 AI agents
   ✅ Installed 13 skills

🏥 Running automatic health check...
   ✅ All systems operational!

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

✅ Update complete!

📦 Updated: 2.7.0 → 2.8.0

💡 Important:
   1. Restart Claude Code to see the changes
   2. Run /plugin-health to verify the update
   3. Check CHANGELOG.md for what's new

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

Read the full file on GitHub · 123 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. 2d ago First seen · 123 lines · 0 tokens per session scan C f37edb28fe78

Subscribe to this mod's changes

plugin-update 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 687 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.