how-to-refactor
95 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
When the user asks to refactor, restructure, extract, rename, simplify, or clean up code without changing behavior, consult this skill to decide whether to delegate to the refactor subagent and how to craft the prompt.
What this skill can do
Runs commands on your computer
Other copies in this repository
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'how-to-refactor' ] || [ -L ~/.agents/skills/'how-to-refactor' ]; then echo 'A skill folder named how-to-refactor already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/xdg/xdg-claude' "$d" && git -C "$d" checkout --quiet '2f3f8be74679e47e12780341b6f79034a6317d39' -- 'prioritize-skills/evals/fixtures/crowd-fixture/skills/how-to-refactor' && mkdir -p ~/.agents/skills && cp -R "$d"/'prioritize-skills/evals/fixtures/crowd-fixture/skills/how-to-refactor' ~/.agents/skills/'how-to-refactor' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'how-to-refactor' ~/.claude/skills/'how-to-refactor' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/xdg/xdg-claude/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-13 | 2f3f8be | 95 |