/repository-modernization-tools:refactor-safelyfrom repository-modernization-tools
Performs behavior-preserving refactoring with baseline capture, equivalence proof, and rollback verification. Requires bloat findings and remediation planning.
Ships in repository-modernization-tools. Installing the plugin adds it to Claude Code.
pest-controller-suit first and read its roster, arming contract, and task-specific routing procedures.hooks/resolve-component.py against the explicit installed-plugin registry, verifying the owner, version, and required workflow prerequisites. In a source checkout, use plugin-catalog.json and its source_root. A cached sibling does not establish selection. Read the returned paired skill and its relevant guides before dispatch; missing ownership or host dispatch stops only the dependent artifact.code-bloat-wasp-drone/code-bloat-stinger from Code Audit and read its scoping and false-positive guides. Respect its read-only/throwaway-copy boundary; missing audit tooling is a reported limit, not permission to install. Never dispatch Code Bloat as the refactor implementation owner.remediation-planning-wasp-drone/remediation-planning-stinger for the workspace sequence and exact Library file list. Before Library writes use its exact-file approval gate. For existing approved work, preserve its plan and acceptance criteria rather than replacing the scope.refactor-batch.md, baseline-evidence.json, after-evidence.json, and rollback.md; link the exact diff and check outputs. Resolve code-review-pr-wasp-drone/code-review-pr-stinger and use its author/reviewer/team phases to prepare a reviewable scope and six-element description. It advises on communication; it does not approve a merge. Close through Security, independent Quality, and orchestrator-level repository health on the final candidate.Apply only the branch named in the user's approved batch. These additional procedures do not authorize deletion, replacement, architecture changes or live cutover.
Prepare a classification/remediation worksheet with baseline/candidate identities, exact ownership, approvals, observed checks and missing evidence. Stop equivalence claims when errors, authorization, side-effect counts, persistence, timing or public contracts differ. Keep Code Bloat read-only, Remediation Planning's existing approval gate and actual engineering owners intact. Do not invent a new generalist pair or helper.
For source/package authoring, the focused guide, worksheet, dated primary-source digest and NOT_RUN cases provide supporting evidence. Home projections may omit pack references; all mandatory runtime behavior is embedded above.
Use invocation text if the host supplies it; otherwise use the user's message. The complete runtime procedure is embedded here, because home command projections do not carry pack-root reference directories. Do not depend on unresolved argument substitutions. Claude Code, Cursor, and Cowork use flat owner commands; Codex uses the generated source-command-<name> skill adapter. Verify actual host dispatch support and report missing carriers honestly.
Run only existing, authorized tools within the stated test budget. Do not install dependencies, delete/move/rename unowned files, alter settings, enter credentials, create accounts, spend money, send messages, commit, push, merge, deploy, publish, or submit stores without specific authorization. Required prerequisites do not grant permission for those effects. A command composition is not a new specialist Drone.
Return Status, Delivered with paths, Verified with exact observed results, Not done with reasons, Questions, and Out of scope. Separate static review, instructions prepared but unexecuted, behavioral tests, native/physical-device tests, signature evidence, and external effects. Missing, stale, queued, cancelled, or unavailable results are unproven. Preserve successful checks unless the artifact or required condition changed.
Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.
What the command file sets; muted values are Claude Code's defaults
refactoring, behavior-preserving, baseline, rollback, code-quality
7-day visitors to each command page
npx claudepluginhub legioncodeinc/vibe-coding-tools --plugin repository-modernization-tools6 commands in this plugin
/improve-repository/improve-repositoryEstablish a repository baseline and prepare evidence-backed, owned repair batches./onboard-contributor/onboard-contributorPrepare and exercise a contributor setup path, first contribution and complete contractor handoff packet when requested using actual repository evidence./Other plugins' commands for the same job