← All skills
refactor
82 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
By Borda/AI-Rig (GitHub) · coding · 32 stars · scanned at commit 1f354b2
Test-first refactoring — audit coverage, add characterization tests, apply changes with safety net, run quality stack and a bounded independent challenge. TRIGGER when: user wants to restructure existing Python code without changing behaviour; phrases: "refactor X", "clean up Y", "extract Z", "restructure this module", "improve code quality". SKIP when: bug fixes (use `/develop:fix`); new features (use `/develop:feature`); mixed refactor+feature — run `/develop:refactor` first, then `/develop:f…
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
This is disclosed by the author in the skill's SKILL.md or README. Expected for a coding skill.
Found in 45 places.
Show 17 more
- plugins/cc_develop/skills/refactor/SKILL.md, line 91
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 101
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 107
python "${CLAUDE_PLUGIN_ROOT:-plugins/cc_develop}/bin/dev_parse_args.py" \ - plugins/cc_develop/skills/refactor/SKILL.md, line 125
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 136
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 155
find <target> -name '*.py' -exec wc -l {} + 2>/dev/null | tail -1 - plugins/cc_develop/skills/refactor/SKILL.md, line 161
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 171
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 201
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 214
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 237
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 255
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 301
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 310
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 337
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 361
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}" - plugins/cc_develop/skills/refactor/SKILL.md, line 377
export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}"
and 25 more places
Connects to the internet
The author does not mention this. It runs automatically when the plugin is installed.
Found in 2 places.
Can call paid AI services billed to you
The author does not mention this. It runs automatically when the plugin is installed.
Found in 2 places.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'refactor' ] || [ -L ~/.agents/skills/'refactor' ]; then echo 'A skill folder named refactor already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/Borda/AI-Rig' "$d" && git -C "$d" checkout --quiet '1f354b2c58faa1f58debf3b25f6634b1e161db9a' -- 'plugins/cc_develop/skills/refactor' && mkdir -p ~/.agents/skills && cp -R "$d"/'plugins/cc_develop/skills/refactor' ~/.agents/skills/'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/'refactor' ~/.claude/skills/'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
The badge for Borda/AI-Rig shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/Borda/AI-Rig/)
Score history
| Date | Version | Score |
|---|
| 2026-11-09 | 1f354b2 | 82 |
| 2026-11-07 | 82bd7e4 | 82 |