# refactor > Refactoring workflow (identify → refactor → verify) using swarm-refactorer with review and testing. - Author: loong - Repository: tuloong/loongclaude - Version: 20260208172537 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-08 - Source: https://github.com/tuloong/loongclaude - Web: https://mule.run/skillshub/@@tuloong/loongclaude~refactor:20260208172537 --- --- name: refactor description: Refactoring workflow (identify → refactor → verify) using swarm-refactorer with review and testing. disable-model-invocation: true --- Run a safe refactoring workflow. ## Steps 1) Scope (swarm-router) - Use `swarm-router` to define what must stay the same (behavior and interfaces). 2) Refactor (swarm-refactorer) - Delegate to `swarm-refactorer`. - Require: incremental changes, tests stay green, and a before/after summary. 3) Review + verify (swarm-reviewer → swarm-tester) - Reviewer focuses on readability, layering, and risk. - Tester runs the full suite.