Skip to content
Development
Skill

/nw-ab-optimize-command

PROCEDURE — optimize a bloated command file to a lean declarative definition (forge.md pattern). Trigger: a command file over its size target with reducible content.

From plugin
nwave
635183 skills37 agents

Claude Code

$ npx -y skills add nWave-ai/nWave --skill nw-ab-optimize-command --agent claude-code

SKILL.md

nw-ab-optimize-command.SKILL.md
name: nw-ab-optimize-command
description: "PROCEDURE — optimize a bloated command file to a lean declarative definition (forge.md pattern). Trigger: a command file over its size target with reducible content."
user-invocable: false

nw-ab-optimize-command (PROCEDURE)

**Kind**: PROCEDURE | **One job**: optimize one command file | **One trigger**: a command file exceeds its size target (dispatchers 40-150L, orchestrators 100-300L) or carries reducible duplication.

Deterministic step-sequence (run every time, in order)

Run these steps in order:

1. **CLASSIFY** — Apply `nw-command-design-patterns`, supplied by the selected command route's generated trigger under the canonical Skill addressing procedure. Classify dispatcher | orchestrator. Gate: classification chosen. 2. **MEASURE + FLAG** — Apply `nw-command-optimization-workflow` supplied through that same generated route, without a second load directive. `wc -l`; flag reducible content (the duplication triangle: command-to-command, command-to-agent, command-to-self). Gate: before-count + reducible-list recorded. 3. **EXTRACT** — Remove boilerplate, move domain knowledge to the owning agent/skill, delete dead/deprecated references. Gate: extractions listed. 4. **RESTRUCTURE** — Rewrite as a declarative dispatcher/orchestrator (forge.md 40-line gold standard for dispatchers). Gate: declarative structure, size within target. 5. **VALIDATE** — Confirm the command keeps its invocation contract + success criteria; numbered-task-list workflow, checkbox success criteria. Gate: structure confirmed. 6. **REPORT** — before/after line counts. Gate: both numbers reported.

Composition

  • COMPOSES (KNOWLEDGE): `nw-command-design-patterns`, `nw-command-optimization-workflow`.
  • Note: this procedure restructures a command DEFINITION; it does not execute the command.

Success Criteria

  • [ ] Command classified, reducible content flagged
  • [ ] Size within target (dispatcher 40-150L / orchestrator 100-300L)
  • [ ] Before/after line counts reported; invocation contract preserved
Read more
@nwave-ai
Ships withnwave

nWave supplies specialist roles and a host-led delivery workflow for software teams.

635183 skills37 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
635
Star history of nWave-ai/nWave on GitHub, a chart by star-history.com

Other skills on nwave.

nw-ab-agent-template

nw-ab-agent-template

KNOWLEDGE — the canonical agent-spec template (frontmatter + body skeleton). Reference loaded by the create/migrate procedures;…

@nwave-ai@nwave-aiInstall Skill
nw-ab-anti-patterns

nw-ab-anti-patterns

KNOWLEDGE — agent/skill/command anti-pattern catalog with fixes. Reference scanned by validate-spec; no sequence.

@nwave-ai@nwave-aiInstall Skill
nw-ab-create-agent

nw-ab-create-agent

PROCEDURE — create a NEW agent via the 5-phase workflow (ANALYZE→DESIGN→CREATE→VALIDATE→REFINE). Trigger: build a new AI agent.…

@nwave-ai@nwave-aiInstall Skill
nw-ab-examples

nw-ab-examples

KNOWLEDGE — canonical worked examples for agent creation, migration, and command optimization. Reference for the relevant…

@nwave-ai@nwave-aiInstall Skill
nw-ab-house-style

nw-ab-house-style

KNOWLEDGE — caveman-native authoring house style + by-construction guarantees (Reasoning Mandate injection, measured-gain…

@nwave-ai@nwave-aiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react3d252k
@facebook@facebookInstall Skill

Questions about nw-ab-optimize-command.

Which coding agents can use nw-ab-optimize-command?
nw-ab-optimize-command installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.