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".
安装
npx skills add wondelai/skills --skill refactoring-patternsnpx skills add wondelai/skills --skill refactoring-patterns -a claude-code -gnpx skills add wondelai/skills --skill refactoring-patterns -a codex -ggemini skills install https://github.com/wondelai/skills.git --path refactoring-patternsgh skill install wondelai/skills refactoring-patternsgit clone --depth 1 https://github.com/wondelai/skills /tmp/wondelai__skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/wondelai__skills/refactoring-patterns ~/.claude/skills/refactoring-patterns # Claude Code
cp -R /tmp/wondelai__skills/refactoring-patterns ~/.agents/skills/refactoring-patterns # Codex, Cursor, Gemini CLI, Copilot, OpenCode