Command Optimization Workflow
Refactors bloated command files into lean, declarative definitions to improve AI agent performance and maintainability.
The nw-command-optimization-workflow provides a structured 5-phase methodology to reduce the size and complexity of AI command files. By identifying redundant boilerplate, moving domain-specific knowledge to individual agents, and adopting a declarative 'what vs. how' pattern, this skill helps developers shrink oversized orchestrator files (up to 2,400 lines) down to efficient, high-performance definitions (under 300 lines). It is essential for teams scaling complex AI agent systems who need to manage token efficiency and instruction clarity.
Key Features
01Domain knowledge delegation to specialized agent definitions
02Categorized bloat analysis and line-count metrics
03Declarative restructuring following the forge.md pattern
04Boilerplate extraction to shared orchestrator preambles
05499 GitHub stars
06Quantitative reporting on optimization and reduction results
Use Cases
01Refactoring massive 'mega-orchestrator' files like develop.md into modular sequences
02Standardizing prompt engineering patterns across large AI repositories
03Reducing token overhead and instruction noise by removing aggressive or redundant language