Refactor code to improve clarity and maintainability without changing behavior. Use when improving readability, reducing complexity, or eliminating duplication.
安装
npx skills add zbruhnke/claude-code-starter --skill refactor-codenpx skills add zbruhnke/claude-code-starter --skill refactor-code -a claude-code -gnpx skills add zbruhnke/claude-code-starter --skill refactor-code -a codex -ggemini skills install https://github.com/zbruhnke/claude-code-starter.git --path .claude/skills/refactor-codegh skill install zbruhnke/claude-code-starter refactor-codegit clone --depth 1 https://github.com/zbruhnke/claude-code-starter /tmp/zbruhnke__claude-code-starter
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/zbruhnke__claude-code-starter/.claude/skills/refactor-code ~/.claude/skills/refactor-code # Claude Code
cp -R /tmp/zbruhnke__claude-code-starter/.claude/skills/refactor-code ~/.agents/skills/refactor-code # Codex, Cursor, Gemini CLI, Copilot, OpenCode