Restructures or cleans up code while preserving behavior, verified by before-and-after checks. Use when asked to extract, deduplicate, or simplify code.
Ships in boshu2-agentops. 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.
Refactor changes structure while preserving observable behavior. It performs one caller-selected transformation and reports the result. "Behavior-preserving" is a claim to prove with before/after checks, never to assert. A user sees it worked when the report shows the same checks run before and after with identical results, and any suspected bug listed unfixed.
Unless the caller explicitly excluded a surface, all of these must survive:
When nothing can be executed (no runtime, no tests, code supplied in a
message), neutrality is unproven: give the exact before/after commands and
inputs the caller must run, error paths included, and list every surface under
not checked.
transformation: <the one change>
preserved: <behavior and surfaces from step 1>
checks: <command>: before -> <result>; after -> <result> (or "not run")
outputs: <before/after hashes when the surface produces output>
abstraction: <a new one and the second use or contract that justifies it, or "none">
diff: <files touched>; only those the transformation names, plus tests added before the change
suspected bugs: <file:line, why>; reported, not fixed
not checked: <surfaces no check covered>; present even when empty
The checks from step 2 give the same result after as before: no new red, no
vanished red, identical output hashes. A mismatch is a behavior diff to surface
and explain, never to shrug at; the caller decides whether to keep, narrow, or
reverse it. A gate skipped or narrowed after the fact is the post-hoc
neutrality failure mode — the diff decides what got tested. Name any surface
the gates did not cover under not checked.
Refactoring after a check goes green is the step of test-driven development that held for agents (practice ledger).
Reject a wrapper that only adds another name or pushes the same coordination into its callers. Keep internal test seams private when callers need no substitution. Exercise the preserved behavior through the caller-facing boundary; retain existing tests until equivalent coverage of their distinct cases is demonstrated. Moving a test is not permission to delete the behavior it protected.
Use the caller's vocabulary for extracted operations and types. A naming ambiguity that changes behavior belongs with the existing domain definition; consult Domain only when that distinction needs work.
When the caller-chosen transformation can be cut more than one way (which lines an extraction takes, where a chosen interface sits), probe before you cut. A choice between module boundaries the caller has not made goes to Architecture first. Run the probe in disposable isolation (a scratch branch, worktree, or copied tree the caller's policy allows): rough in the seam, see what it forces — signature churn, import cycles, test rewrites — then discard the probe and keep only the knowledge. Stop condition: at most two probes; if the second candidate seam also fights back, report both findings to the caller instead of trying a third. Cutting the first imaginable seam directly into the working tree is the premature seam failure mode: the wrong boundary calcifies because reverting it now costs more than living with it.
What SKILL.md sets; muted values are Claude Code's defaults
28 skills in this plugin
/agy-nativeRun a supplied task in headless AGY (Antigravity, Gemini) and collect its result. Use when: AGY, Antigravity or Gemini is requested by name; never a fallback./architectureCompare interface designs and find structural friction. Use when: a change spreads across modules or a boundary is unclear. For code changes, use Refactor./claude-execRun one prompt through headless Claude with scoped permissions and a time bound. Use when: scripting or automating a `claude -p` call, even a simple one./codex-execRun one prompt through headless Codex and capture the result. Use when: wanting a one-shot `codex exec` run or CI step. Not for batches or retries./councilCompare independent opinions from models or contexts without inflating agreement. Use when: wanting several opinions or a debate, or summarizing several reviewers' results./craft-goalDraft or lint a bounded long-running goal prompt with a finish line and hard limits. Use when: asked to craft or lint a goal (a /goal prompt); one change goes to Plan.2 plugins in one repository ship this exact skill · first indexed Nov 10, 2026
/boshu2-agentops:refactorfrom boshu2-agentops
boshu2-agentops@cascade-code-devops-misc-1 is listed by joshuarweaver/cascade-code-devops-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-devops-misc-1 --plugin boshu2-agentopsOther plugins' skills for the same job