Refactoring code
Portable skills, agents, hooks, and Pi extensions for Claude Code, Codex CLI, Copilot, Cursor, Grok, and Pi.
npx -y skills add alexei-led/cc-thingz --skill refactoring-codeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
2.0 KB, as published. Nobody here has run it
<!-- Pi platform guidance -->
<!-- Use installed Pi tool names exactly. Installed extensions may add toolsets such as Task*, Monitor*, and Loop*; use the visible tool names exactly and do not translate them to Claude syntax. -->
<!-- Prefer Task* over `todo` when task-tracking tools are available; `todo` is the cc-thingz fallback. Prefer MonitorCreate for long-running or background commands and LoopCreate for scheduled or event-driven follow-up instead of Bash sleep/poll loops. -->
<!-- Use subagent for delegated work. Use wait to block on async subagent runs only when no independent work remains. -->
<!-- Use ctx7 or npx ctx7@latest through bash when Context7 documentation lookup is required. -->
Batch Refactoring
Follow the base skill. This Pi overlay only defines tool use and execution details.
Pi tool rules
- Pi has no tool-level read-only enforcement; follow the active agent's role
directive (
engineerapplies one batch,reviewerproposes only) rather than inferring the role from tool availability. - Use
bash(rg,fd,git grep) to map affected sites; Pi has no dedicated grep/glob tool. - Use
editfor existing files andwriteonly for new files. - Prefer installed Task* tools to track multi-batch refactors across steps; fall back to
todowhen that task toolset is unavailable. - Use
ask_user_questionwhen scope, preservation target, or safety gate is unclear.
Output on Pi
Use the base skill's Engineer and Reviewer output contracts exactly, unmodified.