fabioc-aloha/alexagent/refactoring-patterns
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Safe transformations — same behavior, better structure.
Install
npx vskill@latest install fabioc-aloha/alexagent/refactoring-patternsSKILL.md
Refactoring Patterns Skill
Safe transformations — same behavior, better structure.
Golden Rule
Tests pass before AND after.
When to Refactor
| Trigger | Action | |
|---|---|---|
| Feature is hard to add | Refactor first | |
| Same bug twice | Refactor to prevent | |
| "I don't understand" | Refactor for clarity |
When NOT to Refactor
- No tests + time pressure
- Code won't change
- Right before release
- Should rewrite instead
Core Moves
| Move | When | |
|---|---|---|
| Extract Function | Does too many things | |
| Inline Function | Body clear as name | |
| Extract Variable | Complex expression | |
| Rename | Name doesn't reveal intent | |
| Move Function | Uses other class's data |
Code Smells → Fix
| Smell | Refactoring | |
|---|---|---|
| Long function | Extract Function | |
| Long param list | Parameter Object | |
| Duplicate code | Extract Function | |
| Feature envy | Move Function | |
| Large class | Extract Class |
Refactor vs Rewrite
| Refactor | Rewrite | |
|---|---|---|
| Core logic sound | Design is wrong | |
| Tests exist | Untestable | |
| <30% changes | >70% changes |
Safe Workflow
Commit → Test → Small change → Test → Commit → Repeat
Synapses
See synapses.json for connections.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/refactoring-patterns/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fabioc-aloha/alexagent/refactoring-patterns)