omar-obando/qwen-orchestrator/refactoring
Claude Code and agent skill by omar-obando/qwen-orchestrator
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Code refactoring skill focused on safe, incremental transformations that preserve behavior. Covers extract method, rename, introduce parameter, replace conditional with polymorphism, and other Fowler refactoring patterns.
Install
npx vskill@latest install omar-obando/qwen-orchestrator/refactoringSKILL.md
Refactoring Skill — Safe Code Transformations
This skill provides systematic refactoring guidance ensuring behavior preservation.
Core Principle
Refactoring changes the STRUCTURE without changing the BEHAVIOR.If behavior needs to change, that's a feature — do it separately.
Refactoring Catalog
Extract Method
Replace Conditional with Polymorphism
Introduce Parameter Object
Safe Refactoring Protocol
- GREEN: Ensure all tests pass before starting
- SMALL: Make one refactoring at a time
- TEST: Run tests after EACH refactoring step
- COMMIT: Commit after each successful refactoring
- REVIEW: Code review the refactoring separately
Refactoring Checklist
Before refactoring:
- [ ] All existing tests pass
- [ ] Test coverage is adequate for the code being refactored
- [ ] No feature work mixed in
- [ ] Rollback plan exists (git commit before starting)
During refactoring:
- [ ] One transformation at a time
- [ ] Tests run after each step
- [ ] No behavior changes
- [ ] No dead code left behind
After refactoring:
- [ ] All tests still pass
- [ ] No new lint warnings
- [ ] Code is cleaner than before
- [ ] No functionality lost
Forbidden Actions
- NEVER mix refactoring with feature changes
- NEVER refactor without passing tests first
- NEVER skip running tests between steps
- NEVER leave dead code after refactoring
- NEVER change behavior during refactoring
When NOT to Use
Do NOT use this skill when:
- Writing new application logic (use domain-driven skill)
- Designing database schemas (use database-design skill)
- Writing API endpoint implementations (use api-design skill)
- Reviewing code for security issues (use code-review skill)
- Performing security audits (use security-auditor skill)
- Writing SQL queries (use sql-best-practices skill)
- Designing multi-page website layouts (use design-system skill)
- Reviewing git workflows (use git-workflow skill)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/refactoring/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/omar-obando/qwen-orchestrator/refactoring)