
Refactoring Patterns
by wondelaic172996495beMIT2.3K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 4 weeks ago
Apply named refactoring transformations to improve code structure without changing behavior. Use when the user mentions "refactor this", "code smells", "extract method", "replace conditional", "technical debt", "move method", "inline variable", "decompose conditional", or "clean up this messy code". Also trigger when cleaning up legacy code, preparing code for new features by restructuring, or identifying which transformation fits a specific code smell. Covers smell-driven refactoring, safe transformation sequences, and testing guards. For code-quality foundations, see clean-code. For managing complexity, see software-design-philosophy.
Only the file list is public. File contents are available once the skill is installed in a workspace.
| Path | Size | Type |
|---|---|---|
| references/composing-methods.md | 11.6 KB | text/markdown |
| references/moving-features.md | 12 KB | text/markdown |
| references/organizing-data.md | 12.7 KB | text/markdown |
| references/refactoring-workflow.md | 14 KB | text/markdown |
| references/simplifying-conditionals.md | 12.8 KB | text/markdown |
| references/smell-catalog.md | 13.2 KB | text/markdown |
| SKILL.md | 15.6 KB | text/markdown |
Source and attribution
Source:wondelai/skillsinrefactoring-patternsat commitc172996
License: MIT
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from wondelai/skills

System Design
wondelai
Structured framework for designing scalable distributed systems, covering estimation, building blocks, database scaling, common designs, and operations.

Web Typography
wondelai
Guides selecting, pairing, and implementing web typefaces, covering readability, CSS, and font loading.

Top Design
wondelai
Guides creation of award-winning, immersive web experiences with dramatic typography, purposeful motion, and scroll-based design.

Ux Heuristics
wondelai
Evaluates interface usability using Nielsen's heuristics, Krug's principles, severity ratings and accessibility checks.

Traction Eos
wondelai
Guides a leadership team through implementing the Entrepreneurial Operating System (EOS) to align vision and execution.

Team Topologies
wondelai
Guides engineering org design using Team Topologies: team types, interaction modes, cognitive load and fracture planes.
More in Software Development

Playground
anthropics
Builds self-contained interactive HTML playgrounds with controls, live preview, and copyable prompt output.

M5 Onboard
anthropics
Provisions M5Stack ESP32 boards by detecting them on USB, flashing UIFlow 2.0 firmware, and installing a MicroPython app bundle.

Cardputer Buddy
anthropics
Guides iterating on a Cardputer-Adv MicroPython app bundle: adding apps, pushing files over USB-serial, tailing logs, and running REPL commands.

Web Design Guidelines
vercel-labs
Reviews UI code against Web Interface Guidelines fetched from a remote source and reports findings as file:line entries.

Vercel React Native Skills
vercel-labs
React Native and Expo best-practice rules covering list performance, animation, navigation, UI patterns, state, and monorepo setup.

Vercel React Best Practices
vercel-labs
Vercel's React and Next.js performance guidelines, organized as 70 rules for writing, reviewing, and refactoring code.