nw-code-craftsmanship

nw-code-craftsmanship is a skill for Claude Code from nWave-ai/nWave. It costs 33 tokens per session (2,078 once invoked), scanned A, original, MIT.

A general guide to writing and reviewing maintainable code in both object-oriented and functional styles. It focuses on clear domain names, small focused units, avoiding duplicated rules, and separating dependencies so code can be tested.

In plain words
What is it for?
Use it while creating, extending, or reviewing code to assess naming, module boundaries, reuse, dependency direction, and performance concerns.
Why use it?
It provides common quality checks instead of leaving code structure to personal preference. This helps prevent scattered rules, tangled dependencies, and hard-to-change modules.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it while creating, extending, or reviewing code to assess naming, module boundaries, reuse, dependency direction, and performance concerns.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-code-craftsmanship"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-code-craftsmanship.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,078 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00033 $0.02078
Opus 5.5 $0.00013 $0.00831
Sonnet 5.5 $0.00007 $0.00416
Haiku 4.5 $0.00003 $0.00208

Measured 13d ago against content hash d782a903562a, 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-craftsmanship scanned grade A with 1 finding 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 13d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

24. Pass untrusted data to commands, queries and templates only as arguments: `subprocess.run([..])` without shell, `cursor.execute("... ?", (v,))`, never string-built syntax.
nWave/skills/nw-code-craftsmanship/SKILL.md · 95 lines

How it starts

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

Code craftsmanship

Before writing a unit

  1. Search for an existing owner of the responsibility (by what it decides and who consumes it). Reuse or extend it; create a new one only when you can name the incompatibility.
  2. Give each fact, rule or config value one owner. Two units deciding the same fact are a defect even if the code differs; look-alikes that answer different questions stay separate.
  3. Generalize (abstraction, plugin, framework) only when a second real caller needs it now.
  4. Follow the design already chosen; if two owners compete for a rule, stop and raise it to the design owner instead of picking one.
  5. Follow the paradigm of the touched code; state the reason in the closing statement for any unit in another paradigm.

Writing each unit

  1. Name from the domain language, never Manager, Helper, mechanics. One unit = one reason to change, one responsibility visible from its name.
  2. State what the domain decides (expressions, pipelines, polymorphism), not bookkeeping.
  3. Keep state private; change it only through the owner's methods; keep data with the behaviour that uses it; expose no internal type across a boundary.
  4. When unit A reads unit B's data to decide, move the decision into B and send B a message.
  5. Two units sharing a position, literal, value meaning, algorithm or call order: replace by a named type, a named constant or one shared owner.
  6. Give a concept its own type when it can be confused with another, when a type can exclude invalid states, or when it owns a rule; its constructor refuses the invalid value. A native type that already says this stays native.
  7. At deliberate boundaries use precise records, unions or result types. Document, at the boundary, every generic payload (dict, Any, object) you add.
  8. Keep business decisions apart from SQL, transport and filesystem code; dependencies point inward through ports; inject collaborators.
  9. Functional code: pure core, thin effect shell (read, decide, write); the core never calls the shell.
  10. A driving or driven port exposes no private structure.

Read the full file on GitHub · 95 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. 13d ago Changed d782a903562a
  2. 15d ago Changed · +20 lines 17cb867ca79a
  3. 17d ago Changed · -49 lines · -33 tokens per session a953d97f7c6e
  4. 27d ago First seen · 124 lines · 66 tokens per session scan A d032d0c60bbd

Subscribe to this mod's changes

nw-code-craftsmanship is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 33 tokens to every session and 2,078 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

nw-code-craftsmanship compared with skills from other repositories

nw-code-craftsmanship next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-code-craftsmanshipnWave-ai/nWaveSkill63611d agoMITA33Claude 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