/jskills:refactor-safelyfrom jskills
Refactor existing code without changing observable behavior, using characterization tests and small named transformations. Use when the user explicitly asks to restructure, modernize, or clean up code while preserving what it does; use architecture skills to survey opportunities or choose new boundaries.
Ships in jskills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Improve internal structure while keeping the consumer-visible contract unchanged. Readability is the objective; metrics are evidence, not the score.
The invariant is ready only when a reviewer could tell whether the proposed work crossed into behavior change.
Use the project's existing tests, type checker, linter, and build commands. Assess the net on three dimensions:
If the net is weak, add characterization or golden-master tests for the current behavior first. Commit them separately only when commits are authorized. Pin current behavior, including known quirks; fixing a quirk is a different task.
Freeze one side at a time: refactor production with tests unchanged, or refactor tests with production unchanged.
.tmp/ directory. Include pre-existing user edits in the checkpoint.Never carry a half-broken transformation forward. Do not add abstractions without repeated use or a concrete destination in the current requirement.
Run the full relevant validation suite and inspect the final diff for accidental behavior changes. Report:
Success means the behavior is verified unchanged and the next reader can understand or modify the target more cheaply.
Adapted from the oma-refactor skill in first-fluke/oh-my-agent at commit e8dcad72293525d771dcd9c31584c1f9f2dd7a38.
See LICENSE.oh-my-agent.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub etamong-playground/agent-plugins --plugin jskills43 skills in this plugin
/adopt-dependencyUpgrade an existing project dependency, verify the resolved artifact and release gap, update locks and validate affected behavior./adversarial-reviewAdversarially review existing work with N parallel critics, each from a distinct perspective, then re-verify every critique in the main session and accept only the ones that survive — repeated for 2 rounds. Use when the user says "비판적으로 검토", "여러 관점에서 검토", "적대적 리뷰", "red team this", "critique my work", "review from multiple angles", "find what's wrong with this change", or asks to harden a finished change/design/plan before shipping./agent-sessionOpen, message, monitor, resume, stop or retire Claude Code and Codex work sessions when a separate session is needed or requested. Use for cross-provider coordination and session lifecycle, not routine work that can stay in the current session.3 plugins in one repository ship this exact skill · first indexed Nov 6, 2026