nw-refactor

Solid

Applies the Refactoring Priority Premise (RPP) levels L1-L6 for systematic code refactoring. Use when improving code quality through structured refactoring passes.

Code & Development 526 stars 55 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
91
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# NW-REFACTOR: Systematic Code Refactoring **Wave**: CROSS_WAVE **Agent**: Crafty (nw-software-crafter) **Command**: `*refactor` ## Overview Applies the Refactoring Priority Premise (RPP) — cascading 6-level hierarchy where lower levels complete before higher. Levels: L1 Readability|L2 Complexity|L3 Responsibilities|L4 Abstractions|L5 Design Patterns|L6 SOLID++. Each builds on previous. For complex multi-class refactorings, agent applies Mikado Method internally. ## Context Files Required - src/\* - Production codebase - tests/\* - Test codebase ## Agent Invocation @nw-software-crafter Execute \*refactor for {target-class-or-module}. **Context Files:** - src/\* - tests/\* **Configuration:** - level: 3 # Shorthand: --from=1 --to=3 (RPP range) - from: 1 # Start RPP level (default: 1) - to: 3 # End RPP level (default: same as level) - scope: module # file/module/project - method: extract # extract/inline/rename/move - mikado_planning: false # Use Mikado Method for complex refactorings ## Success Criteria - [ ] Code quality metrics improved (measured before/after) - [ ] All tests passing after refactoring - [ ] Refactoring levels applied in sequence (L1 before L2, etc.) - [ ] Technical debt reduced measurably ## Next Wave **Handoff To**: {invoking-agent-returns-to-workflow} **Deliverables**: Refactored codebase with quality improvements ## Examples ### Example 1: Module-level readability refactor ``` /nw-refactor src/auth/token_manager.py --level=2 --scope=module ...

Details

Author
nWave-ai
Repository
nWave-ai/nWave
Created
3 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category