nw-command-design-patterns-reduction

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

A guide for reducing bloated coding-agent commands. It identifies repeated content between commands, agents, and embedded instructions, and explains what to extract or leave in place.

In plain words
What is it for?
Use it to trim long commands, move knowledge to the right agent or shared skill, and decide whether content should be compressed or preserved.
Why use it?
It removes duplicated instructions and procedural detail that waste context and can drift out of sync. The result is a smaller set of clearer responsibilities.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions subagents; names the AskUserQuestion tool.

Good fit Use it to trim long commands, move knowledge to the right agent or shared skill, and decide whether content should be compressed or preserved.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-command-design-patterns-reduction
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-reduction
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-reduction

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-command-design-patterns-reduction/github.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-command-design-patterns-reduction)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-command-design-patterns-reduction"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-command-design-patterns-reduction/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-reduction

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-command-design-patterns-reduction"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-command-design-patterns-reduction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 842 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.
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.00035 $0.00842
Opus 5.5 $0.00014 $0.00337
Sonnet 5.5 $0.00007 $0.00168
Haiku 4.5 $0.00003 $0.00084

Measured 27d ago against content hash 1b109e1516c9, 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-reduction 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 27d 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-reduction/SKILL.md · 57 lines

How it starts

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

Command Reduction: Duplication, Anti-Patterns, Compression (KNOWLEDGE)

Kind: KNOWLEDGE (reference). Composed by nw-command-design-patterns core. Fires when: a command is bloated and the question is "what here is reducible / what should be removed / how far can I compress" (the duplication triangle + anti-pattern + compression rules). No forced sequence.

The Duplication Triangle

Commands duplicate content in three directions, all waste tokens:

  1. Command-to-Command: Orchestrator briefings, agent registries, parameter parsing repeated in 5-12 files (~620 lines waste)
  2. Command-to-Agent: Domain knowledge belonging in agents (~1,300 lines waste). Examples: TDD phases in execute.md, DIVIO templates in document.md, refactoring hierarchies in refactor.md
  3. Command-to-Self: develop.md embeds other commands inline (~1,000 lines)

Fix: Extract shared content to preamble skill. Move domain knowledge to agents. Have orchestrators reference sub-commands.

Anti-Patterns

Anti-pattern Impact Fix
Procedural overload Step-by-step for capable agents wastes tokens, "lost in the middle" Declare goal + constraints, let agent apply methodology
Duplicated briefings Same orchestrator constraints in every command (30-80 lines each) Extract to shared preamble, reference once
Embedded domain knowledge Refactoring hierarchies, review criteria, TDD cycles in commands Move to agent definitions or skills
Aggressive language "CRITICAL/MANDATORY/MUST" causes overtriggering in Opus 4.6 Direct statements without emphasis markers
Example overload 50+ lines of JSON examples 2-3 canonical examples suffice
Inline validation logic Prompt template validation in command text Platform/hook responsibility
Dead code Deprecated formats, aspirational metrics, old signatures Remove; version control preserves history
Verbose JSON state examples 200+ lines of unused JSON Show actual format (pipe-delimited), 3 examples max

Read the full file on GitHub · 57 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. 27d ago First seen · 57 lines · 35 tokens per session scan A 1b109e1516c9

Subscribe to this mod's changes

nw-command-design-patterns-reduction is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 35 tokens to every session and 842 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-11-03.

Related

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

nw-command-design-patterns-reduction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-command-design-patterns-reductionnWave-ai/nWaveSkill63611d agoMITA35Claude Code
computer-usekirodotdev/KiroCrewSkill5.1ktodayApache-2.0A67Claude Code, Codex
startcycle-graph-userhybridlabor-api/bdb-dev-optimized-agent-skillsSkill911d agoApache-2.0A102Claude Code, Codex
tddt1/tdderSkill142d agoApache-2.0A102Claude Code
opt-in-workspace-writesfabioc-aloha/Alex_Skill_MallSkill64d agoMITA19Claude Code, Codex
test-driven-developmentaaronnat23/disp8chSkill822mo agoMITA0Claude Code, Codex
harness-loopme-cedric/agent-compassSkill39d agoMITA50Claude Code