jongio/skills

← All skills

refactor illustration

refactor

Plan behavior-preserving refactoring with explicit scope, depth and risk choices.

Use when: small wins, code cleanup, refactor assessment, local restructuring, cross-module refactoring

Source & README

Install

Install the namespaced plugin globally across your coding agents (keeps /jongio-skills:refactor conflict-free and includes sibling skills), or install just refactor into a project.

Recommended · Global pluginInstall all skills & statuslines (namespaced)

One-liner across detected CLIs (Copilot, Claude, Codex & Gemini):

irm https://raw.githubusercontent.com/jongio/skills/main/install.ps1 | iex
curl -fsSL https://raw.githubusercontent.com/jongio/skills/main/install.sh | bash

Or inside Copilot CLI / Claude Code:

/plugin marketplace add jongio/skills
/plugin install jongio-skills@jongio-skills

In Codex CLI or Gemini CLI:

codex plugin marketplace add jongio/skills && codex plugin add jongio-skills
gemini extensions install https://github.com/jongio/skills --consent
This skill onlyInstall just refactor

Project scope via Skills CLI (avoids global ~/.agents/skills plugin shadowing):

npx skills add jongio/skills --skill refactor

Or single-skill plugin in Copilot CLI:

/plugin marketplace add jongio/skills
/plugin install refactor@jongio-skills

In Copilot CLI, use /skills reload for newly installed skills. Start a new session if you installed the collection's statusline extensions.

What it does

Choose small wins, local restructuring, or cross-module restructuring without changing product behavior. Inspection breadth and risk boundaries are separate choices; sensitive contracts remain excluded by default at every level.

Level What it proposes Evidence and approval
1. Small wins (default) Local mechanical cleanup Approve a coherent batch with independent equivalence checks
2. Local restructuring Reorganize internals within one module Approve the transformation and module; characterize behavior and check callers
3. Cross-module restructuring Reorganize internal boundaries across a named subsystem Approve the design, compatibility evidence, staged plan, and rollback

Start a bounded fresh assessment or resume a cleanup ledger. The skill proposes one coherent batch, requires preservation evidence, and never escalates on its own. Approved work hands off to go and pr; the assessment itself is read-only.

Use it

/refactor
/refactor src/parser - Level 1, exclude sensitive contracts
/refactor src/reporting - Level 2, propose only

Feature removal, bug fixes, changed errors, new defaults, and dependency upgrades are outside this skill at every level.