nw-hexagonal-testing

nw-hexagonal-testing is a skill for Claude Code, Codex from nWave-ai/nWave. It costs 29 tokens per session (1,175 once invoked), scanned A, original, MIT.

A framework for checking software-agent outputs at five levels, from individual results to handoffs and security risks. It uses unit and integration testing ideas, where unit tests check small parts and integration tests check connections between parts.

In plain words
What is it for?
Use it to validate generated code and documents, check deliverables between agents, test edge cases, and look for issues such as SQL injection or cross-site scripting.
Why use it?
It helps catch incomplete, unclear, unusable, or unsafe generated work before another agent or developer relies on it.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/nwave-ai/nwave/nw-hexagonal-testing
Any agent
npx skills add nWave-ai/nWave --skill nw-hexagonal-testing
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-hexagonal-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-hexagonal-testing.svg)](https://agentmods.dev/skills/nwave-ai/nwave/nw-hexagonal-testing)
Your own site
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-hexagonal-testing"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-hexagonal-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00029 $0.01175
Opus 5 $0.00015 $0.00588
Sonnet 5 $0.00006 $0.00235
Haiku 4.5 $0.00003 $0.00118

Measured yesterday against content hash 826322f61303, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

nw-hexagonal-testing 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 yesterday.

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-hexagonal-testing/SKILL.md · 116 lines

How it starts

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

Hexagonal Testing and Output Validation

5-Layer Output Validation Framework

Validates agent OUTPUTS, not TDD testing methodology.

Layer 1: Unit Testing (Output Validation)

Validate individual software-crafter outputs.

structural_checks:
  - required_elements_present: true
  - format_compliance: true
  - quality_standards_met: true

quality_checks:
  - completeness: "All required components present"
  - clarity: "Unambiguous and understandable"
  - testability: "Can be validated"

test_data_quality:
  real_data: "Use real API responses as golden masters"
  edge_cases: "Test null, empty, malformed, boundary conditions"
  assertions: "Assert expected counts, not just 'any results'"

Layer 2: Integration Testing (Handoff Validation)

Validate handoffs to next agent. Next agent must consume outputs without clarification.

  • Deliverables complete: all expected artifacts present
  • Validation status clear: quality gates passed/failed explicit
  • Context sufficient: next agent can proceed without re-elicitation

Layer 3: Adversarial Output Validation

Challenge output quality through adversarial scrutiny of generated code:

  • SQL injection vulnerabilities? | XSS vulnerabilities? | Null/undefined/empty input handling?
  • Integer overflow/underflow? | Graceful failure vs crash? | Exception handling appropriateness?

Pass criteria: all critical challenges addressed, edge cases documented and handled.

For peer review and escalation protocols, load the review-dimensions skill.

Input/Output Contract

Inputs

  • Required: user_request (non-empty command string) | context_files (existing readable file paths)
  • Optional: configuration (YAML/JSON) | previous_artifacts (outputs from prior wave for handoff)

Outputs

  • Primary: code artifacts (src/**/*, strictly necessary only) | documentation (docs/develop/, minimal essential)
  • Secondary: validation_results (gate pass/fail status) | handoff_package (deliverables, next_agent, validation_status)
  • Policy: any document beyond code/test files requires explicit user approval before creation

Read the full file on GitHub · 116 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. yesterday First seen · 116 lines · 29 tokens per session scan A 826322f61303

Subscribe to this mod's changes

nw-hexagonal-testing is a skill published in the GitHub repository nWave-ai/nWave (604 stars, last pushed 5d ago), licensed MIT. It adds 29 tokens to every session and 1,175 once invoked, about $0.0001 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-03.

Related

Other skills, from other repositories

moai-ref-testing-pyramid

Test pyramid strategy, coverage targets, test patterns, and quality metrics reference. Agent-extending skill that amplifies manager-develop test-creation and quality-validation work with production-grade testing patterns. NOT for: production code implementation, architecture design, DevOps, security audits.

modu-ai/moai-adk · 61 tokens

test-generator

Automatically suggest tests for new functions and components. Use when new code is written, functions added, or user mentions testing. Creates test scaffolding with Jest, Vitest, Pytest patterns. Triggers on new functions, components, test requests, testing mentions.

alirezarezvani/claude-code-tresor · 55 tokens

pwrl-testing

Comprehensive testing framework for micro-skill pipeline architecture validation, including unit, integration, compatibility tests, and consolidation audit.

wicttor/pwrl · 28 tokens

agent-tester

Agent skill for tester - invoke with $agent-tester.

ruvnet/ruflo · 15 tokens

smoke-test

End-to-end smoke test skill for DeerFlow. Guides through: 1) Pulling latest code, 2) Docker OR Local installation and deployment (user preference, default to Local if Docker network issues), 3) Service availability verification, 4) Health check, 5) Final test report. Use when the user says "run smoke test", "smoke…

bytedance/deer-flow · 0 tokens

podcast-generation

Use this skill when the user requests to generate, create, or produce podcasts from text content. Converts written content into a two-host conversational podcast audio format with natural dialogue.

bytedance/deer-flow · 38 tokens