Refactor existing skills by searching for better external implementations and adapting them
Refactors skills by finding better external implementations and merging improvements.
/plugin marketplace add wayne930242/Reflexive-Claude-Code/plugin install wayne930242-ace-core-plugins-ace-core@wayne930242/Reflexive-Claude-CodeImprove existing skills by hunting for better external implementations and synthesizing improvements.
Requires claude-skills-mcp MCP server. See /rcc:chrollo for installation.
If {skill-path} is provided, target that skill. Otherwise, analyze all:
find . -name "SKILL.md" -type f
For each skill, assess:
For each skill to refactor, use Chrollo's hunting approach:
find_helpful_skills(query: "[skill's core capability]")
For example:
write-skill → search "skill authoring best practices"write-rules → search "code conventions rules"agent-architect → search "architecture decision"For promising external skills, first list available files:
read_skill_document(skill_name: "...")
Then read relevant content:
read_skill_document(skill_name: "...", document_path: "SKILL.md")
read_skill_document(skill_name: "...", document_path: "references/*")
Create comparison matrix:
| Aspect | Current Skill | External Skill | Winner |
|---|---|---|---|
| Clarity | |||
| Completeness | |||
| Best practices | |||
| Integration |
Don't replace wholesale. Instead:
Use /rcc:improve-skill {skill-path} with insights from external skills.
For each skill improvement:
## Changes from External Skill: [name]
- Added: [new capability/pattern]
- Improved: [enhanced section]
- Preserved: [project-specific content kept]
python3 skills/write-skill/scripts/validate_skill.py <skill-path>
Check:
## Refactor by Chrollo Report
### Skills Analyzed: N
### External Skills Consulted
- [external-skill]: used for [which local skill]
### Improvements Made
| Local Skill | External Source | Changes |
|-------------|-----------------|---------|
| [name] | [source] | [brief] |
### Unchanged (No Better Alternative)
- [skill-name]: [reason]
### Summary
- Skills improved: X
- External skills referenced: Y
- Total patterns borrowed: Z
# Refactor specific skill
/rcc:refactor-by-chrollo skills/write-skill
# Refactor all skills
/rcc:refactor-by-chrollo
| Aspect | refactor-skills | refactor-by-chrollo |
|---|---|---|
| Focus | Internal consolidation | External improvement |
| Action | Merge/delete redundant | Enhance with external patterns |
| Source | Project skills only | Claude Skills library |
| Goal | Reduce duplication | Increase quality |
Use together: refactor-skills to consolidate, then refactor-by-chrollo to enhance.