nw-ab-anti-patterns

nw-ab-anti-patterns is a skill for Claude Code from nWave-ai/nWave. It costs 32 tokens per session (628 once invoked), scanned A, original, MIT.

A catalogue of common mistakes in agent, skill, and command specifications, with reasons they fail and suggested fixes. It is scanned during specification validation.

In plain words
What is it for?
Use it to review agent designs before release and to correct issues such as monolithic specifications, compound instructions, inconsistent terms, or aggressive wording.
Why use it?
It helps catch oversized files, duplicated platform features, excessive examples, unclear wording, and other patterns that can confuse an agent or waste context.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: names the AskUserQuestion tool.

Good fit Use it to review agent designs before release and to correct issues such as monolithic specifications, compound instructions, inconsistent terms, or aggressive wording.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-ab-anti-patterns"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-ab-anti-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 628 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.00032 $0.00628
Opus 5.5 $0.00013 $0.00251
Sonnet 5.5 $0.00006 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 27d ago against content hash 8a3dfb21159e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nw-ab-anti-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 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-ab-anti-patterns/SKILL.md · 29 lines

What it actually says

nw-ab-anti-patterns (KNOWLEDGE)

Kind: KNOWLEDGE (reference catalog). Scanned by nw-ab-validate-spec (anti-pattern step). No forced sequence.

Anti-Pattern Why It Fails Fix
Monolithic agent (2000+ lines) Context rot; 3x token cost Extract to Skills, target 200-400 lines
Embedded safety frameworks Duplicates platform; wastes tokens Construct safety first — tool surface (frontmatter tools/permissionMode), typed grammar; hooks last resort (GDP-0)
Aggressive language Overtriggering on Opus 4.6 Calm, direct statements
Zero examples Fails on subtle/critical behaviors Include 3-5 canonical examples
Exhaustive examples (30+) Diminishing returns; context rot Keep 3-5 diverse canonical cases
Specifying default behaviors 65% of specs redundant Specify only divergent behaviors
Negatively phrased rules Less effective than affirmative Phrase affirmatively
Compound instructions Confuses agent reasoning Split into separate focused steps
Inconsistent terminology Amplifies confusion in longer contexts One term per concept throughout
Mirrored skill loading Frontmatter skill also loaded by a body directive or table row — the installer already preloaded it once, so the body duplicates resident knowledge Delete the body directive/row; frontmatter alone keeps it resident
Handwritten conditional index Skill Loading section or table written beside the generated region — two indexes drift Apply the source-aware Skill addressing procedure in nw-agent-creation-workflow; retain one generated index and report missing source capability
Conditional skill in frontmatter A skill needed only under a condition is eagerly preloaded on every task Move it to a precise conditional trigger through the source-aware procedure; do not manufacture a registry in an installed project
Over-compressed examples ### Example N: headers removed during compression — eval tools can't find them Keep example section headers verbatim
Compressed AskUserQuestion options Runtime menu items compressed to pipes — lose decision tree structure Preserve numbered options with descriptions verbatim
Broad multi-job asset One agent/skill does N jobs; runtime re-decides "what good means" each run Split into N one-job-one-trigger INTERNAL skills — do not add rules, do not parameterize
Renaming/proliferating the command surface Renaming an established command (e.g. forge) or adding new user-facing commands breaks muscle-memory + the preserve-names rule Route the split to internal skills behind the EXISTING command/agent; preserve names; a new command is the rare exception, named /nw-*
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 · 29 lines · 32 tokens per session scan A 8a3dfb21159e

Subscribe to this mod's changes

nw-ab-anti-patterns is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 32 tokens to every session and 628 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-ab-anti-patterns compared with skills from other repositories

nw-ab-anti-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-ab-anti-patternsnWave-ai/nWaveSkill63611d agoMITA32Claude Code
orchestrated-executiona5c-ai/babysitterSkill1.9k29d agoMITA37Claude Code
Pair Programmingruvnet/rufloSkill83ktodayMITA61Claude Code
team-implementbostonaholic/teamSkill118d agoMITA21Claude Code, Codex
prunevictusfate/scaffoldSkill73d agoMITA39Claude Code, Codex
Pair Programmingshyftlabs/continuumSkill863d agoApache-2.0A61Claude Code
bmad-buildbetter-ade/ade-terminalSkill38todayMITA91Claude Code