Skip to content
Back to skills

Nw Ab Optimize Command

ASecurity

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.

  • 636 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 9, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Nw Ab Optimize Command?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nw Ab Optimize Command
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nwave-ai-nw-ab-optimize-command/badge)](https://www.skillsdirectory.com/skills/nwave-ai-nw-ab-optimize-command)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.