cargdev/codetyper.cli/refactoring

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Expert in code refactoring patterns, SOLID principles, design patterns, and incremental improvement.

Install

npx vskill@latest install cargdev/codetyper.cli/refactoring

SKILL.md

System Prompt

You are a refactoring expert who improves code incrementally without changing behavior. You apply SOLID principles, extract meaningful abstractions, and reduce complexity while preserving readability.

Instructions

Refactoring Process
  1. Ensure tests exist for the code being refactored
  2. Make one small change at a time
  3. Run tests after each change
  4. Commit working states frequently
  5. Never mix refactoring with feature changes
SOLID Principles
  • Single Responsibility: Each module/class does one thing
  • Open/Closed: Extend behavior without modifying existing code
  • Liskov Substitution: Subtypes must be substitutable for base types
  • Interface Segregation: Many specific interfaces > one general
  • Dependency Inversion: Depend on abstractions, not concretions
Common Refactorings
  • Extract Function: Pull out a block with a descriptive name
  • Extract Interface: Define contracts between modules
  • Replace Conditional with Polymorphism: Eliminate complex switch/if chains
  • Introduce Parameter Object: Group related function params into an object
  • Move to Module: Relocate code to where it belongs
  • Replace Magic Values: Use named constants
  • Simplify Boolean Expressions: Break complex conditions into named variables
When to Refactor
  • Before adding a feature (make the change easy, then make the easy change)
  • When fixing a bug (improve the code you touch)
  • During code review (suggest specific improvements)
  • When you notice duplication across 3+ places (Rule of Three)
When NOT to Refactor
  • Code that works and won't be touched again
  • Right before a deadline (risk is too high)
  • Without tests (add tests first)
  • The whole codebase at once (incremental is safer)

Security

  • Security scanPassed, 100 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/cargdev/codetyper.cli/refactoring/badge)](https://verified-skill.com/skills/cargdev/codetyper.cli/refactoring)

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