/rcc:migrating-pluginsfrom rcc
Discovers existing Claude Code plugins, detects script projects that could become plugins, classifies their state, then routes to the creating-plugins or validating+refactoring pipeline.
Ships in rcc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Migrating plugins IS identifying what to work with, then routing to the correct workflow.
A workspace may contain existing plugins, a script project that should become a plugin, or nothing. This skill discovers the state, asks the user what they want, resolves paths, then routes.
Core principle: Discover what exists. Ask the user. Then route.
Pattern: Tree
Handoff: auto-invoke
Next: creating-plugins | validating-plugins → refactoring-plugins
Chain: plugin
Follow task initialization protocol.
Tasks:
Announce: "Created 4 tasks. Starting execution..."
| Component | Project | Plugin |
|---|---|---|
| CLAUDE.md | ✓ | ✗ |
| .claude/rules/ | ✓ | ✗ |
| .claude/settings.json | ✓ | ✗ (plugin has settings.json at root) |
| .claude-plugin/plugin.json | ✗ | ✓ (manifest) |
| marketplace.json | ✗ | ✓ (if marketplace) |
| skills/ | .claude/skills/ | plugin-root/skills/ |
| agents/ | .claude/agents/ | plugin-root/agents/ |
| hooks/ | .claude/settings.json | plugin-root/hooks/hooks.json |
| .mcp.json | ✓ | ✓ |
| .lsp.json | ✗ | ✓ |
| bin/ | ✗ | ✓ |
Goal: Find existing plugins or identify a script project to convert.
Discovery strategy (try in order):
Check for marketplace.json — scan for **/.claude-plugin/marketplace.json. Read plugins array for names and source paths.
Check for standalone plugins — scan for **/.claude-plugin/plugin.json. Each parent of .claude-plugin/ is a plugin root.
Check for script project — if no plugins found, scan for signs of a convertible project:
*.sh, *.py, *.js, *.ts) in root or scripts/, src/, bin/package.json, pyproject.toml, Cargo.toml).claude/ directory with skills, commands, or agentsCheck user-specified path — if the user provided a path, use it directly.
For each plugin found, record:
name field)If multiple plugins found:
If exactly one plugin found:
If no plugins but script project detected:
If nothing found:
Set the target path for all subsequent tasks.
Verification: Target is selected, path is resolved, user has confirmed.
Goal: Determine the maturity level of the target.
Maturity classification:
| Level | Criteria | Route |
|---|---|---|
| None | No plugin, no scripts, user wants new | → creating-plugins |
| Pre-plugin | Script project without .claude-plugin/ — has scripts, tools, or .claude/ configs that can become plugin components | → Task 3 (conversion proposal) → creating-plugins |
| Minimal | Has .claude-plugin/plugin.json but missing skills/agents/hooks | → validating-plugins → refactoring-plugins |
| Complete | Has manifest + skills + agents or hooks | → validating-plugins → refactoring-plugins |
For Pre-plugin, scan and categorize existing assets:
| Asset Type | Example | Becomes |
|---|---|---|
| Scripts with reusable logic | scripts/deploy.sh, tools/lint.py | bin/ executables or skill-bundled scripts |
| Markdown instructions | .claude/commands/*.md | skills/ or commands/ |
| Agent definitions | .claude/agents/*.md | agents/ |
| Hook scripts | .claude/hooks/* | hooks/ |
| Skill directories | .claude/skills/*/SKILL.md | skills/ |
| MCP server configs | .mcp.json | .mcp.json |
| Validation/linting scripts | scripts/validate.py | hooks/ |
For each asset found, record:
Run claude plugin validate if .claude-plugin/ exists.
Detect version bump documentation (record for routing):
CLAUDE.md exists AND contains a version-bump section listing every version-bearing file (plugin.json, marketplace entries, README headers)version_bump_doc: present | absent | partial (partial = CLAUDE.md exists but section missing or incomplete)Verification: Clear maturity classification with asset inventory. Version bump doc state recorded.
Skip if: Maturity is None, Minimal, or Complete.
Goal: Present a conversion proposal for the script project.
Conversion proposal format:
## Plugin Conversion Proposal
Plugin name: [suggested-name]
Source: [project path]
| # | Source | Type | Plugin Component | Action |
|---|--------|------|-----------------|--------|
| 1 | scripts/deploy.sh | script | bin/deploy.sh | Copy to bin/, make executable |
| 2 | .claude/commands/review.md | instruction | skills/reviewing/SKILL.md | Convert to skill with frontmatter |
| 3 | .claude/agents/checker.md | agent | agents/checker.md | Copy, verify frontmatter |
| 4 | scripts/lint.py | validator | hooks/lint.py + hooks.json | Wrap as PostToolUse hook |
| 5 | README.md | docs | README.md | Adapt for plugin installation |
Version bump doc: [present | absent | partial]
- If absent/partial: `creating-plugins` Task 6 will add the required section to plugin CLAUDE.md during conversion
Present to user for confirmation.
If confirmed:
creating-pluginscreating-plugins will use the proposal to pre-populate the plugin structure instead of starting from scratchIf rejected:
Verification: User has confirmed or revised the conversion proposal.
Goal: Invoke the correct skill with the target path.
Important: Always pass the target path to downstream skills.
If None:
creating-plugins (its Task 6 ensures plugin CLAUDE.md documents version bump locations)If Pre-plugin (after Task 3 confirmation):
creating-plugins with the conversion proposal as context (including recorded version_bump_doc state)creating-plugins which files to move/convert instead of scaffolding from scratchcreating-plugins Task 6 will fill the plugin CLAUDE.md section based on the recorded stateIf Minimal or Complete:
validating-plugins with plugin root pathrefactoring-plugins with report, plugin root path, and recorded version_bump_doc staterefactoring-plugins Task 7 verifies / fills the plugin CLAUDE.md version-bump sectionVerification: Correct skill invoked with target path, context, and version bump doc state.
These thoughts mean you're rationalizing. STOP and reconsider:
All of these mean: You're about to guess instead of discover. Scan, ask, then route.
| Excuse | Reality |
|---|---|
| "I know which one" | Multiple plugins can exist. Always list and confirm. |
| "Can't be a plugin" | Any project with reusable scripts or instructions can become a plugin. |
| "Ignore existing scripts" | Existing scripts are validated, working code. Reuse them. |
| "Has manifest = complete" | A 3-field plugin.json is minimal at best. Check all components. |
| "Skip validation" | claude plugin validate catches structural issues you can't see by reading. |
| "Use current directory" | Plugin root may be nested. Resolve from marketplace.json or plugin.json. |
| Step | Skill | Purpose |
|---|---|---|
| 0 | validating-plugins | Batch scan all files for frontmatter, links, orphans |
| 1 | refactoring-plugins | Health-check and fix against official best practices |
| alt-a | creating-plugins | Scaffold new plugin (from scratch or from conversion proposal) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
23 skills in this plugin
/advising-architectureValidates component-type choices for agent system work, classifying knowledge as CLAUDE.md vs rule vs skill vs agent vs hook and checking for conflicts. Use when starting any skill/agent/rule workflow to validate approach. Use when classifying knowledge type. Use when checking for component conflicts./analyzing-agent-systemsScans project structure and agent system components, runs 11-category weakness analysis, and produces actionable restructuring recommendations. Use when analyzing an existing agent system for weaknesses. Use when user says "analyze agent system", "check agent setup", "audit agent config". Use when called by migrating-agent-systems or refactoring-skills./applying-agent-systemsBuilds agent system components from a confirmed component plan. Use when executing a component plan to build agent system elements. Use when called by planning-agent-systems after plan is confirmed. Use when user says "apply agent plan", "build agent system"./brainstorming-workflowsExplores user workflows through targeted questions about pipeline modes, pain points, routine tasks, and human intervention points to inform agent system design. Use when exploring workflows after analysis. Use when user says "explore workflows", "brainstorm workflows", "what should I automate". Use when called by analyzing-agent-systems./creating-pluginsScaffolds a new Claude Code plugin package with manifest, skills, agents, and marketplace entry. Use when creating a new Claude Code plugin package. Use when user says "create plugin", "new plugin", "scaffold plugin", "plugin template"./dispatching-parallel-agentsFans out work across multiple agents — same prompt to many for Best-of-N, different prompts for parallel exploration, or a scout before committing. Use when user says "parallel agents", "fan out", "best of N", "scout", "race", "vote", "spawn workers".npx claudepluginhub wayne930242/reflexive-claude-code --plugin rccOther plugins' skills for the same job