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-patterns

SKILL.md

Refactoring Patterns Skill

Safe transformations — same behavior, better structure.

Golden Rule

Tests pass before AND after.

When to Refactor

TriggerAction
Feature is hard to addRefactor first
Same bug twiceRefactor 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

MoveWhen
Extract FunctionDoes too many things
Inline FunctionBody clear as name
Extract VariableComplex expression
RenameName doesn't reveal intent
Move FunctionUses other class's data

Code Smells → Fix

SmellRefactoring
Long functionExtract Function
Long param listParameter Object
Duplicate codeExtract Function
Feature envyMove Function
Large classExtract Class

Refactor vs Rewrite

RefactorRewrite
Core logic soundDesign is wrong
Tests existUntestable
<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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/fabioc-aloha/alexagent/refactoring-patterns/badge)](https://verified-skill.com/skills/fabioc-aloha/alexagent/refactoring-patterns)

Something wrong with this skill or its page? Tell us.