From plugin-tools
Upgrades Claude Code plugins by aligning skills, hooks, and patterns with latest capabilities and best practices. Use after updates, for modernization, or on user request.
npx claudepluginhub prince-khanna/claude-code-plugins --plugin plugin-toolsThis skill uses the workspace's default tool permissions.
Upgrade a plugin's skills, hooks, and patterns to align with the latest Claude Code capabilities, model features, and skill-writing best practices.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Upgrade a plugin's skills, hooks, and patterns to align with the latest Claude Code capabilities, model features, and skill-writing best practices.
Arguments: $ARGUMENTS -- plugin name (e.g., creator-stack, scheduler) and optional focus areas. If no plugin specified, ask which one.
Find the plugin to upgrade:
<cwd>/<plugin-name>/.claude-plugin/plugin.json (source mode -- marketplace repo)~/.claude/plugins/cache/*/<plugin-name>/ (installed mode)If neither found, list available plugins and ask the user to clarify.
Set PLUGIN_ROOT to the resolved path.
Run six research tasks in parallel using subagents. Each subagent summarizes its findings.
Fetch the latest Claude Code releases:
WebFetch: https://github.com/anthropics/claude-code/releases
Also check the raw changelog:
WebFetch: https://raw.githubusercontent.com/anthropics/claude-code/main/CHANGELOG.md
Extract from the last 3-5 releases:
Discover the Claude Code documentation landscape. Do NOT hardcode doc page URLs -- discover them dynamically.
Find available documentation:
WebSearch: "Claude Code" site:docs.anthropic.com
WebFetch: https://docs.anthropic.com/en/docs/claude-code/overview
From the search results and overview page, identify and fetch pages covering these categories:
For each fetched page, extract:
Find and read the installed skill-creator:
Glob: ~/.claude/plugins/cache/*/skill-creator/*/skills/skill-creator/SKILL.md
Extract:
Check official plugins for patterns worth adopting:
Glob: ~/.claude/plugins/cache/*/superpowers/*/skills/*/SKILL.md
Note structural patterns, frontmatter conventions, or composition techniques.
Understand the full plugin specification and what the target plugin could be using:
Read the marketplace conventions (if in source mode):
Read: <cwd>/CONVENTIONS.md
Examine other installed plugins for structural patterns:
Glob: ~/.claude/plugins/cache/*/*/skills/*/SKILL.md
Bash: ls ~/.claude/plugins/cache/*/*/ | head -50
Focus on: plugin.json fields, agents/ directories, MCP server integration, output style patterns.
Compare the target plugin's structure against the full spec:
Check for model-level improvements that may supersede skills in the target plugin:
Search for recent Anthropic model releases:
WebSearch: "Anthropic Claude" model release OR capability update site:anthropic.com
WebSearch: "Claude" new capabilities 2026
Fetch the models overview page:
WebFetch: https://docs.anthropic.com/en/docs/about-claude/models
Extract capabilities relevant to skill obsolescence:
Compare against the target plugin's skill inventory:
After all research completes, compile a Research Summary with sections:
Save to <cwd>/.docs/upgrade-research/<plugin-name>-<date>.md for reference.
Using research findings from Phase 1 (especially 1A, 1B, and 1F), evaluate whether each skill, agent, and major component in the target plugin is still necessary.
For each skill and agent, assign one of:
| Rating | Meaning | Action |
|---|---|---|
| Active | Platform/model doesn't replicate this. Skill adds clear value. | Proceed to structural audit in Phase 2 |
| Augmented | Platform/model handles the basics, but skill adds meaningful structure, guardrails, or workflow orchestration on top. | Audit normally, but note what the platform handles natively |
| Superseded | Platform/model now does this natively with comparable quality. Skill adds marginal value over a direct prompt. | Skip structural audit. Recommend removal in Phase 3 plan. |
For each skill, answer these three questions:
What does this skill do that a direct prompt to Claude cannot? If the answer is only "it saves typing a prompt" -- likely Superseded.
Does this skill enforce a process, workflow, or multi-step structure? Process skills (TDD, debugging, code review) remain valuable even when the model can do each step -- the skill enforces discipline. Likely Active.
Has the platform added a native feature that replaces this skill's core function? Example: Claude Code added native web search -> a "web research" skill that just wraps web search is Superseded. But a "competitor analysis" skill that orchestrates multiple searches into a structured report may be Augmented.
Present results as a table:
| Component | Type | Rating | Rationale |
|---|---|---|---|
| [name] | skill/agent | Active/Augmented/Superseded | [1-line reason] |
If any component is rated Superseded, flag it for the user:
Obsolescence flag: [N] component(s) appear superseded by platform/model capabilities. These will appear in the "Recommend Removal" section of the upgrade plan. Review the rationale -- override to Active or Augmented if you disagree.
Proceed to Phase 2, skipping structural audit for Superseded components.
Read the target plugin's full structure and evaluate against the research findings.
echo "=== Plugin.json ===" && cat ${PLUGIN_ROOT}/.claude-plugin/plugin.json
echo "=== Skills ===" && find ${PLUGIN_ROOT}/skills -name "SKILL.md" -type f 2>/dev/null
echo "=== Hooks ===" && cat ${PLUGIN_ROOT}/hooks/hooks.json 2>/dev/null || echo "No hooks"
echo "=== Output Styles ===" && ls ${PLUGIN_ROOT}/output-styles/ 2>/dev/null || echo "No output styles"
echo "=== Agents ===" && ls ${PLUGIN_ROOT}/agents/ 2>/dev/null || echo "No agents"
echo "=== Test Suites ===" && find ${PLUGIN_ROOT}/skills -path "*/tests/evals.json" -type f 2>/dev/null || echo "No test suites"
echo "=== All Files ===" && find ${PLUGIN_ROOT} -type f -not -path "*/.DS_Store" -not -path "*/node_modules/*"
For each skill, read and note:
For other components, evaluate:
Compare current state against research findings:
| Category | Check |
|---|---|
| Skill structure | Frontmatter follows latest conventions? Under 500 lines? Progressive disclosure? |
| Descriptions | Triggering descriptions specific enough per skill-creator guidance? |
| Patterns | Uses latest Claude Code features? No deprecated patterns? |
| Composition | Follows plugin:skill invocation syntax? Voice/brand hooks applied correctly? |
| Scripts | Bundled scripts use best practices? No reinventing common patterns? |
| Plugin architecture | Using all beneficial plugin components (agents, MCP, output styles)? |
| Component coverage | All existing components up to date with latest conventions? |
| Test coverage | Skills have tests/evals.json? Flag untested skills as a gap. |
Read and verify against marketplace conventions:
Read: <cwd>/CONVENTIONS.md
Read: <cwd>/CLAUDE.md
Ensure the plugin follows:
Present a structured upgrade plan organized by priority:
## Upgrade Plan: <plugin-name>
### Summary
- Current version: X.Y.Z
- Proposed version: X.Y.Z (justify MAJOR/MINOR/PATCH)
- Total changes: N skills affected
- Components affected: [skills, hooks, output styles, plugin.json]
### High Priority (Breaking/Deprecated)
1. [Change description]
- **Why**: [What's wrong or deprecated]
- **What**: [Specific change to make]
- **Risk**: [What could break]
### Superseded (Recommend Removal)
Components flagged as Superseded in Phase 1.5. Review before approving removal.
1. [Component name] ([type])
- **What it does**: [1-line summary]
- **What replaces it**: [platform feature or model capability]
- **Migration**: [user-facing steps if any -- update docs, remove references]
- **Risk**: [what's lost if removed]
### Medium Priority (New Features/Improvements)
1. [Change description]
- **Why**: [What new capability this enables]
- **What**: [Specific change to make]
### Low Priority (Polish/Optimization)
1. [Change description]
### Not Recommended
- [Things considered but rejected, and why]
Wait for user approval before proceeding. The user may adjust priorities, skip items, or add their own.
Apply approved changes systematically:
plugin:skill syntaxAfter all changes:
plugin.json version according to semverCHANGELOG.md with all changes in Keep a Changelog formatBefore declaring done:
for skill in $(find ${PLUGIN_ROOT}/skills -name "SKILL.md"); do
echo "=== $skill ==="
wc -l "$skill"
head -5 "$skill"
echo ""
done
git diff of all changes for user reviewplugin:skill references still validtests/evals.json, offer to run them:
plugin-tools:test-skill for each skill with testsPresent a final summary: