/rcc:refactoring-skillsfrom rcc
Analyzes and refactors multiple skills across a project, consolidating overlaps, extracting shared conventions, and removing redundancy. Use when skills overlap or need cross-skill consolidation.
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.
Refactoring skills IS applying clean code principles to documentation.
Consolidate, simplify, extract shared conventions, remove redundancy.
Core principle: Fewer focused skills > many overlapping skills.
Pattern: Tree
Handoff: mixed (auto-invoke per classification)
Next: analyzing-agent-systems | writing-skills | writing-rules
Chain: maintenance
Follow task initialization protocol.
Tasks:
Announce: "Created 6 tasks. Starting execution..."
Goal: Find all skills in the project.
Search locations:
find . -name "SKILL.md" -type f 2>/dev/null
ls -la .claude/skills/ 2>/dev/null
Also check:
~/.claude/skills/)Document:
Verification: Complete list of all skills with locations.
Goal: Classify each skill for action, informed by systematic weakness analysis.
First: Invoke analyzing-agent-systems skill to get a comprehensive analysis report covering all 8 weakness categories. This replaces manual analysis.
Then classify each skill using both the analysis report and manual assessment:
| Status | Criteria | Action |
|---|---|---|
| Keep | Well-structured, unique purpose, no weaknesses flagged | None |
| Refactor | Analysis flagged weaknesses but valuable | Use writing-skills to improve |
| Merge | Analysis found overlap with another skill | Consolidate into primary |
| Extract | Analysis found duplicated conventions | Move to rule file |
| Delete | Redundant, unused, or superseded | Remove entirely |
For each skill, check against analysis report:
Optional: External Search
If claude-skills-mcp is available:
mcp__claude-skills-mcp__search_skills query="[skill domain]"
Compare with community implementations. Better patterns exist?
Verification: Each skill has a classification and action, informed by analysis report.
Goal: Apply the classified actions.
Invoke the writing-skills skill with the existing skill path.
Important: One action at a time. Verify after each.
Verification: All classified actions executed.
Goal: Move duplicated conventions to rule files.
Signs of shared conventions:
Process:
writing-rules skill to create ruleVerification: No duplicated conventions across skills.
Goal: Verify all remaining skills are valid.
For each skill:
python3 "${CLAUDE_SKILL_DIR}/../writing-skills/scripts/validate_skill.py" <skill-path>
Or manual checklist:
Verification: All remaining skills pass validation.
Goal: Document what was done.
## Refactoring Summary
### Skills Analyzed: N
### Actions Taken:
| Skill | Action | Notes |
|-------|--------|-------|
| skill-name | kept/refactored/merged/deleted | details |
### Rules Extracted:
| Rule | Source Skills |
|------|--------------|
| rule-name | skill-a, skill-b |
### Recommendations:
- [Future improvements]
Verification: Report accurately reflects all changes.
These thoughts mean you're rationalizing. STOP and reconsider:
All of these mean: You're about to leave mess behind. Follow the process.
| Excuse | Reality |
|---|---|
| "Keep everything" | Unused skills are clutter. Delete them. |
| "Overlap is fine" | Overlap = confusion. Merge or differentiate. |
| "Skip extraction" | Duplicated conventions drift. Extract to rules. |
| "Skip validation" | Fixed skills can still be broken. Validate. |
| "Skip report" | Report documents decisions for future you. |
| Step | Skill | Purpose |
|---|---|---|
| 1 | analyzing-agent-systems | Weakness analysis (invoked in Task 2) |
| 2 | writing-skills | Refactor individual skills (invoked in Task 3) |
| 3 | writing-rules | Extract shared conventions (invoked in Task 4) |
| 4 | skill-reviewer | Quality validation (subagent, Task 5) |
writing-skills skill for improving skillswriting-rules skill for extracting conventionsskill-reviewer subagent for quality checksWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wayne930242/reflexive-claude-code --plugin rcc23 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".Other plugins' skills for the same job