refactor-plugin
Start a complete plugin refactoring workflow that analyzes plugin structure, creates a refactoring plan with tasks, and guides through execution. Use when you need to refactor an entire plugin — triggers assessment, design, planning, and parallel agent execution phases.
Works with
Agent Skills format with YAML frontmatter. Claude Code reads it as-is.
---
name: "refactor-plugin"
description: "Start a complete plugin refactoring workflow that analyzes plugin structure, creates a refactoring plan with tasks, and guides through execution. Use when you need to refactor an entire plugin — triggers assessment, design, planning, and parallel agent execution phases."
license: "MIT"
---
If the user's intent does not match the purpose of this skill, load `plugin-lifecycle` to route to the right skill and process: `Skill(skill="plugin-creator:plugin-lifecycle")`.
<plugin_path>$ARGUMENTS</plugin_path>
# Plugin Refactoring Workflow
Start a comprehensive plugin refactoring workflow for the specified plugin.
## Arguments
- `<plugin_path/>`: Path to the plugin directory to refactor (e.g., `./plugins/python3-development`)
## Workflow Overview
This command orchestrates the complete refactoring workflow:
1. **Assessment** - Analyze plugin structure and identify issues
2. **Design** - Create refactoring design specification
3. **Planning** - Generate task file with dependencies
4. **Execution** - Run tasks via specialized agents
5. **Validation** - Verify refactoring quality
## Instructions
### Step 1: Validate Input
If no plugin path provided:
```text
ERROR: No plugin path provided.
Usage: /plugin-creator:refactor <plugin-path>
Example: /plugin-creator:refactor ./plugins/python3-development
```
### Step 2: Verify Plugin Exists
Check that the path contains a valid plugin:
- `.claude-plugin/plugin.json` exists
- OR `skills/` directory exists
### Step 3: Run Assessment
Invoke the assessor skill to analyze the plugin:
```text
Skill(skill="plugin-creator:assessor", args="<plugin_path/>")
```
This generates:
- Plugin Assessment Report
- Refactoring Design Map at `.plugin-creator/plans/refactor-design-{slug}.md`
- Task File at `.plugin-creator/plans/tasks-refactor-{slug}.md`
### Step 4: Review Plan
After assessment completes, display:
```text
================================================================================
REFACTORING PLAN READY FOR REVIEW
================================================================================
Plugin: <plugin_path/>
Assessment Score: [X/100]
Plan Files Created:
- Design: .plugin-creator/plans/refactor-design-{slug}.md
- Tasks: .plugin-creator/plans/tasks-refactor-{slug}.md
Tasks Summary:
- Total tasks: [N]
- Skill splits: [N]
- Agent optimizations: [N]
- Documentation improvements: [N]
Next Steps:
1. Review the plan files
2. Run `/plugin-creator:implement-refactor {slug}` to execute
================================================================================
```
### Step 5: Await User Decision
Ask user:
- **Continue**: Proceed to implementation
- **Review**: Open plan files for review
- **Abort**: Cancel refactoring
## Related Commands
- `/plugin-creator:implement-refactor` - Execute tasks from plan
- `/plugin-creator:ensure-complete` - Validate completed refactoring
- `/plugin-creator:count-lines` - Quick line count check
## Example Usage
```bash
# Start refactoring a plugin
/plugin-creator:refactor ./plugins/python3-development
# Start refactoring current directory plugin
/plugin-creator:refactor .
```More Refactoring skills
vercel-react-best-practices
vercel-labs/agent-skills
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
analyze-project
lllllllama/rigorpilot-skills
Rigor Analyze / Rigor Audit read-only skill for deep learning research repositories. Use when the user wants to read and understand a repository, inspect model structure and training or inference entrypoints, review configs and insertion points, or flag suspicious implementation patterns without modifying code or running heavy jobs. Do not use for active command execution, broad refactoring, speculative code adaptation, or automatic bug fixing.
request-refactor-plan
mattpocock/skills
Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.

