qwen_cli_refactor
Installation
SKILL.md
Qwen CLI Refactoring Skill
Agent: Qwen 1.5B (strategic analysis + code extraction) Validation: Gemma 270M (pattern fidelity check) Token Budget: 1,300 tokens (800 extraction + 400 refactoring + 100 validation)
Skill Purpose
Refactor monolithic CLI files (>1,000 lines) by extracting logical command modules while preserving all functionality. Uses Qwen for strategic analysis and module extraction, with Gemma validation for pattern fidelity.
Trigger Source: Manual invocation by 0102 when CLI files exceed WSP 49 limits
Success Criteria:
- Reduce main() function size by >70%
- Extract 5+ independent command modules
- Zero regressions (all flags work identically)
- Pattern fidelity >90% (Gemma validation)