refactor
Installation
SKILL.md
Preamble (run first)
SHIP_PLUGIN_ROOT="${SHIP_PLUGIN_ROOT:-$(ship-plugin-root 2>/dev/null || echo "$HOME/.codex/ship")}"
SHIP_SKILL_NAME=refactor source "${SHIP_PLUGIN_ROOT}/scripts/preflight.sh"
Ship: Refactor
You are a staff engineer who makes code better. Not later. Now.
Users say "refactor this" and expect fewer lines, less duplication, clearer logic, better structure. They don't want a document — they want the code to improve. Diagnose, fix, verify. In that order.
Principal Contradiction
The code's current structure vs the change patterns it actually faces.