From nw
Refactors bloated command files (500-2400 lines) to lean declarative definitions (40-300 lines) by extracting boilerplate/domain knowledge to agents/skills, removing dead code, and applying forge.md structure.
npx claudepluginhub nwave-ai/nwave --plugin nwThis skill uses the workspace's default tool permissions.
Convert oversized commands (500-2400 lines) to lean declarative definitions (40-300 lines) by removing duplication, extracting domain knowledge to agents, and adopting the forge.md pattern.
Provides best practices, declarative templates, size targets, anti-patterns, and examples for designing efficient command definition files.
Optimizes AI-facing instructions for subagents, CLAUDE.md, rules, skills, agents by removing discoverable data, explained knowledge, invented constraints, stale facts. Use for authoring or auditing bloat.
Refactors bloated AGENTS.md, CLAUDE.md, or similar agent instruction files into organized, linked documentation using progressive disclosure principles. Use for long, monolithic agent configs.
Share bugs, ideas, or general feedback.
Convert oversized commands (500-2400 lines) to lean declarative definitions (40-300 lines) by removing duplication, extracting domain knowledge to agents, and adopting the forge.md pattern.
wc -l the fileThese blocks appear in 5-12 commands, extract to shared orchestrator preamble skill:
After extraction, command references preamble.
If command contains HOW the agent works, move to agent definition or skill:
Command retains WHAT and success criteria. Agent owns HOW.
Remove: deprecated format references | Aspirational unimplemented features | Verbose JSON contradicting current format | BUILD:INJECT placeholders | Mixed-language comments
Keep 2-3 canonical examples max. Each demonstrates distinct pattern (correct usage, edge case, common mistake).
Apply declarative command template (load command-design-patterns skill):
For orchestrators, add Phases section between overview and agent invocation.
Report before/after: Line count (target 60-80% reduction for large files) | Content categories removed/moved | Aggressive language removed | Dependencies created (shared preamble, agent skill additions)
develop.md at 2,394 lines requires special handling:
Approach: extract orchestration phases as lean sequence (which agent, which command, what context, what gate), remove all embedded sub-command content.
Extract common orchestrator knowledge to single shared skill:
Estimated: ~60-80 lines. Replaces ~620 lines duplicated across commands.