nw-code-design-oo

nw-code-design-oo is a skill for Claude Code, Codex from nWave-ai/nWave. It costs 52 tokens per session (2,706 once invoked), scanned A, original, MIT.

A reference guide for designing object-oriented code before implementation. It covers rules for small methods, domain objects, module boundaries, and isolating outside effects such as storage or network access.

In plain words
What is it for?
Use it to shape object-oriented domain types and services, record deliberate exceptions to design rules, and prepare code for testable effects.
Why use it?
It helps teams spot design smells early rather than relying on later fixes. The shared rules make object-oriented code easier to understand, test, and change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to shape object-oriented domain types and services, record deliberate exceptions to design rules, and prepare code for testable effects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nwave-ai/nwave/nw-code-design-oo
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-code-design-oo
Clone the repo
git clone --depth 1 https://github.com/nWave-ai/nWave

Made for: Claude Code, Codex.

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-code-design-oo

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-code-design-oo"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-design-oo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,706 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.00052 $0.02706
Opus 5.5 $0.00021 $0.01082
Sonnet 5.5 $0.00010 $0.00541
Haiku 4.5 $0.00005 $0.00271

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

Security

Grade A, and why

nw-code-design-oo 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 5d 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-code-design-oo/SKILL.md · 188 lines

How it starts

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

OO Code Design

Design-time anti-smell catalog for object-oriented work. The architect loads this to design smell-free domain types and module boundaries BEFORE DISTILL authors ATs; the crafter loads the same SSOT for the execution mechanics that enforce it. This file is the WHAT-to-design subset. nw-tdd-methodology owns RED→GREEN verification; nw-refactor owns behavior-preserving refactoring. Repository runner and hooks own build, test, and commit execution.

Object Calisthenics

Ten rules for the OO core (Agile Technical Practices Distilled, "Object Calisthenics – 10 Steps to Better Software Design"). Inside the hexagon, domain objects and application services, they are strict. Breaking one is a conscious design decision recorded in the diagnostic with the smell it causes, its benefit and its cost; an unrecorded break is accidental complexity.

# Rule Why Smell it prevents
1 Only one level of indentation per method One thing per method; small reusable units Long Method
2 Don't use the ELSE keyword One main lane with guard clauses; polymorphism (State, Strategy) or Null Object for the alternatives Switch Statements, Long Method
3 Wrap all primitives and strings No primitive or string as a method argument (except constructors) or return value; each concept gets a type that attracts its behaviour and makes wrong state unrepresentable Primitive Obsession, Shotgun Surgery
4 First-class collections No collection as an argument (except constructors); a class that holds a collection holds nothing else; filters and joins live there Primitive Obsession, Feature Envy
5 One dot per line Talk only to your immediate collaborators (Law of Demeter): self, owned fields, parameters and objects the method creates. The rule is about navigating a collaborator's internals, not LINQ, streams or fluent builders Message Chains, Inappropriate Intimacy
6 Don't abbreviate Names reveal intention; a name you want to abbreviate signals a unit doing too much Large Class
7 Keep all entities small Each method does one thing and each class holds one responsibility; size follows from cohesion, never from splitting code to meet a line count Large Class, Long Method
8 No classes with more than two instance variables High cohesion; a third field signals a missing collaborator Large Class, Data Clumps
9 No getters/setters/properties Tell, don't ask: the decision lives on the object that owns the data Data Class, Feature Envy
10 All classes must have state No static utility classes or stateless "managers"; behaviour has a home Feature Envy, Middle Man

Read the full file on GitHub · 188 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. 5d ago First seen · 188 lines · 52 tokens per session scan A 7e2c87714573

Subscribe to this mod's changes

nw-code-design-oo is a skill published in the GitHub repository nWave-ai/nWave (633 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 2,706 once invoked, about $0.0002 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-code-design-oo compared with skills from other repositories

nw-code-design-oo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-code-design-oonWave-ai/nWaveSkill633todayMITA52Claude Code, Codex
orchestrated-executiona5c-ai/babysitterSkill1.9k6d agoMITA37Claude Code
Pair Programmingruvnet/rufloSkill81kyesterdayMITA61Claude Code
team-implementbostonaholic/teamSkill113d agoMITA21Claude Code, Codex
prunevictusfate/scaffoldSkill7yesterdayMITA39Claude Code, Codex
Pair Programmingshyftlabs/continuumSkill841mo agoApache-2.0A61Claude Code
learn-from-sagekirodotdev/KiroCrewSkill4.8ktodayApache-2.0A56Claude Code, Codex