nw-test-organization-conventions

nw-test-organization-conventions is a skill for Claude Code from nWave-ai/nWave. It costs 33 tokens per session (1,724 once invoked), scanned A, original, MIT.

A guide to organising test folders and names according to the software architecture, such as clean architecture, vertical slices, modular monoliths, or microservices. It covers unit, integration, contract, acceptance, and end-to-end test placement.

In plain words
What is it for?
It is for choosing test directory structures, naming conventions, and fixture locations for different application architectures.
Why use it?
It makes the test tree reveal the system's boundaries and reduces confusion about where new tests belong. It also separates service-level tests from tests that cross service or module boundaries.

Skill for Claude Code

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

Good fit It is for choosing test directory structures, naming conventions, and fixture locations for different application architectures.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-test-organization-conventions"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-test-organization-conventions.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 1,724 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 pass 7 Sept 2026
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.00033 $0.01724
Opus 5 $0.00016 $0.00862
Sonnet 5 $0.00007 $0.00345
Haiku 4.5 $0.00003 $0.00172

Measured 4d ago against content hash 3da109abbab2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

nw-test-organization-conventions 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 4d 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-test-organization-conventions/SKILL.md · 174 lines

How it starts

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

Test Organization Conventions

Core Principle

Test directory structure encodes architectural boundaries. If a developer cannot infer the architecture from the test tree alone, the organization is wrong.

Architecture-to-Organization Decision Tree

What is the project's architectural style?
|
+-- Hexagonal / Clean Architecture
|   --> Test-type-first: tests/{unit,integration,acceptance,e2e}/
|   --> Domain concepts nested within each type
|   --> Port contract tests in tests/integration/
|
+-- Vertical Slice
|   --> Co-located: features/{slice}/tests/
|   --> Cross-slice tests in top-level tests/cross_feature/
|
+-- Modular Monolith
|   --> Module-first: tests/modules/{module}/{unit,integration}/
|   --> Architecture tests per module (dependency rule enforcement)
|   --> Inter-module tests in tests/inter_module/
|
+-- Microservices
|   --> Per-service test tree: {service}/tests/{unit,integration,component,contract}/
|   --> Contract tests: consumer writes in own repo, provider verifies in own repo
|   --> Cross-service E2E in separate project: e2e-tests/
|
+-- Event-Driven
|   --> Test-type-first with event-specific categories
|   --> Unique: schema contract tests, idempotency tests, saga compensation tests
|
+-- CQRS
|   --> Command/Query split within each test type
|   --> Unique: projection tests (rebuild + idempotency)
|
+-- Layered (N-Tier)
|   --> Mirror source: tests mirror src layer hierarchy
|   --> Integration tests verify layer boundary contracts
|
+-- DDD (Tactical)
|   --> Bounded-context-first: tests/{context}/domain/aggregates/
|   --> Cross-context contract tests in tests/bounded_context_integration/

Comparative Summary

Architecture Primary Axis Secondary Axis Unique Test Types Co-located?
Hexagonal Test type Domain concept Port contract No
Clean Test type Architecture ring Gateway No
Layered Mirror source Test type Layer boundary No (Java: yes)
Vertical Slice Feature Test type Cross-slice Yes
Modular Monolith Module Test type Architecture, inter-module No
Microservices Per-service Test type Contract (Pact) No
Event-Driven Test type Event flow role Schema, idempotency, saga No
CQRS Command/Query Test type Projection No
DDD Bounded context Building block Aggregate, cross-context No

Read the full file on GitHub · 174 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. 4d ago First seen · 174 lines · 33 tokens per session scan A 3da109abbab2

Subscribe to this mod's changes

nw-test-organization-conventions is a skill published in the GitHub repository nWave-ai/nWave (610 stars, last pushed 4d ago), licensed MIT. It adds 33 tokens to every session and 1,724 once invoked, about $0.0002 per session on Opus 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-06.