Agent skill
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.
Install this agent skill to your Project
npx add-skill https://github.com/Jamie-BitFlight/claude_skills/tree/main/plugins/plugin-creator/skills/refactor-plugin
SKILL.md
<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:
- Assessment - Analyze plugin structure and identify issues
- Design - Create refactoring design specification
- Planning - Generate task file with dependencies
- Execution - Run tasks via specialized agents
- Validation - Verify refactoring quality
Instructions
Step 1: Validate Input
If no plugin path provided:
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.jsonexists- OR
skills/directory exists
Step 3: Run Assessment
Invoke the assessor skill to analyze the plugin:
Skill(skill="plugin-creator:assessor", args="<plugin_path/>")
This generates:
- Plugin Assessment Report
- Refactoring Design Map at
.claude/plan/refactor-design-{slug}.md - Task File at
.claude/plan/tasks-refactor-{slug}.md
Step 4: Review Plan
After assessment completes, display:
================================================================================
REFACTORING PLAN READY FOR REVIEW
================================================================================
Plugin: <plugin_path/>
Assessment Score: [X/100]
Plan Files Created:
- Design: .claude/plan/refactor-design-{slug}.md
- Tasks: .claude/plan/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
# Start refactoring a plugin
/plugin-creator:refactor ./plugins/python3-development
# Start refactoring current directory plugin
/plugin-creator:refactor .
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
ccc
This skill should be used when code search is needed (whether explicitly requested or as part of completing a task), when indexing the codebase after changes, or when the user asks about ccc, cocoindex-code, or the codebase index. Trigger phrases include 'search the codebase', 'find code related to', 'update the index', 'ccc', 'cocoindex-code'.
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
delegate
Quick delegation template for sub-agent prompts. Use when assigning work to a sub-agent, before invoking the Agent tool, or when preparing prompts for specialized agents. Provides the WHERE-WHAT-WHY framework. For comprehensive delegation guidance, activate the agent-orchestration how-to-delegate skill.
swarm-spawning
Spawn agents and teammates in Claude Code swarms. Use when choosing between subagents vs teammates, selecting agent types (Explore, Plan, general-purpose, plugin agents), configuring spawn backends (in-process, tmux, iterm2), or setting environment variables for spawned agents.
knowledge-explorer
Manage the research/ knowledge base (KB) of tool and library research entries. Use when browsing KB topics, adding new research entries, updating existing entries with dated revisions, fetching GitHub repo metadata into a draft KB entry, or migrating old-format entries to skill-spec frontmatter. Triggers on tasks like "what do we have on X", "add this to the KB", "update the KB entry for Y", "fetch github info for owner/repo", or "migrate old entries".
design-anti-patterns
Enforce anti-AI UI design rules based on the Uncodixfy methodology. Use when generating HTML, CSS, React, Vue, Svelte, or any frontend UI code. Prevents "Codex UI" — the generic AI aesthetic of soft gradients, floating panels, oversized rounded corners, glassmorphism, hero sections in dashboards, and decorative copy. Applies constraints from Linear/Raycast/Stripe/GitHub design philosophy: functional, honest, human-designed interfaces. Triggers on: UI generation, dashboard building, frontend component creation, CSS styling, landing page design, or any task producing visual interface code.
Didn't find tool you were looking for?