nw-command-design-patterns

nw-command-design-patterns is a skill for Claude Code from nWave-ai/nWave. It costs 31 tokens per session (944 once invoked), scanned A, original, MIT.

A guide to designing command definition files: what they should contain, how large they should be, and which patterns to follow. It uses examples such as dispatchers that hand work to an agent.

In plain words
What is it for?
It helps define simple commands, agent-dispatch commands, and multi-stage orchestrators using declarative templates and success criteria.
Why use it?
Command files can become oversized and mix instructions with workflow details. These patterns help keep them focused and easier to maintain.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths.

Good fit It helps define simple commands, agent-dispatch commands, and multi-stage orchestrators using declarative templates and success criteria.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-command-design-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nWave-ai/nWave --skill nw-command-design-patterns
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nw-command-design-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-command-design-patterns/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-command-design-patterns)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-command-design-patterns"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-command-design-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nw-command-design-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-command-design-patterns"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-command-design-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 944 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 248
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00944
Opus 5.5 $0.00012 $0.00378
Sonnet 5.5 $0.00006 $0.00189
Haiku 4.5 $0.00003 $0.00094

Measured 1mo ago against content hash 98d4376c1baf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nw-command-design-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

nWave/skills/nw-command-design-patterns/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Command Design Patterns (composing core)

Kind: KNOWLEDGE (lean composing core). The command-design knowledge is decomposed into three one-trigger modules; this core holds the canonical examples and composes the modules by trigger. Load the module(s) for the question in play.

Composition

Module Load when the question is Path
nw-command-design-patterns-classification what CATEGORY / what SIZE / what SHAPE (declarative template, WHAT-vs-HOW logic placement) ~/.claude/skills/nw-command-design-patterns-classification/SKILL.md
nw-command-design-patterns-reduction what is REDUCIBLE / what to REMOVE / how far to COMPRESS (duplication triangle, anti-patterns, compression rules) ~/.claude/skills/nw-command-design-patterns-reduction/SKILL.md
nw-command-design-patterns-authoring I am creating a NEW command — which FILES / what FORMAT (v2.8+ three-file install contract) ~/.claude/skills/nw-command-design-patterns-authoring/SKILL.md

The three triggers partition the space: classification (size an existing command), reduction (trim a bloated one), authoring (lay out a new one). No overlap, no gap.

Canonical Examples

Example 1: Minimal Dispatcher (forge.md pattern, ~40 lines)

# DW-FORGE: Create Agent (V2)

**Wave**: CROSS_WAVE
**Agent**: Zeus (nw-agent-builder)

## Overview

Create a new agent using the research-validated v2 approach.

## Agent Invocation

@nw-agent-builder

Execute \*forge to create {agent-name} agent.

**Configuration:**
- agent_type: specialist | reviewer | orchestrator

## Success Criteria

- [ ] Agent definition under 400 lines
- [ ] Every `nw-ab-validation-checklist` item passes
- [ ] 3-5 canonical examples included

## Next Wave

**Handoff To**: Agent installation and deployment
**Deliverables**: Agent specification file + Skill files

Example 2: Medium Dispatcher with Context (~80 lines)

# DW-RESEARCH: Evidence-Driven Research

**Wave**: CROSS_WAVE
**Agent**: Nova (nw-researcher)

## Overview

Execute systematic evidence-based research with source verification.

## Orchestration: Trusted Source Config

Read .nwave/trusted-source-domains.yaml at orchestration time, embed inline in prompt.

## Agent Invocation

@nw-researcher

Execute \*research on {topic} [--embed-for={agent-name}].

**Configuration:**
- research_depth: detailed
- output_directory: docs/research/

## Success Criteria

- [ ] All sources from trusted domains
- [ ] Cross-reference performed (3+ sources per major claim)
- [ ] Research file created in docs/research/

## Next Wave

**Handoff To**: Invoking workflow
**Deliverables**: Research document + optional embed file

Read the full file on GitHub · 135 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -147 lines 98d4376c1baf
  2. 3mo ago First seen · 282 lines · 31 tokens per session scan A a406791ea417

Subscribe to this mod's changes

nw-command-design-patterns is a skill published in the GitHub repository nWave-ai/nWave (638 stars, last pushed 14d ago), licensed MIT. It adds 31 tokens to every session and 944 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

nw-command-design-patterns compared with skills from other repositories

nw-command-design-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-command-design-patternsnWave-ai/nWaveSkill63814d agoMITA31Claude Code
test-driven-developmenta5c-ai/babysitterSkill1.9k1mo agoMITA35Claude Code
test-driven-developmentdamianvtran/local-operatorSkill234todayMITA48Claude Code, Codex
Pair Programmingruvnet/rufloSkill83ktodayMITA61Claude Code
speq-implementmarconae/speq-skillSkill541mo agoMITA57Claude Code
hk-rcadeepklarity/harness-kitSkill10823d agoMITA115Claude Code
tddInsajin/autopus-adkSkill1112mo agoMITA11Claude Code, Codex