nw-distill-port-treatment-policy

nw-distill-port-treatment-policy is a skill for Claude Code from nWave-ai/nWave. It costs 67 tokens per session (3,992 once invoked), scanned A, original, MIT.

A testing reference for deciding how each system entry point should be tested and which test setup to use. It also defines when a walking skeleton—a minimal end-to-end version of a system—is applicable.

In plain words
What is it for?
Use it when writing acceptance criteria, choosing real versus simulated dependencies, selecting test infrastructure, or checking whether a minimal end-to-end test applies.
Why use it?
It prevents tests from exercising the wrong boundary or using an unsuitable fake, and reduces the risk of code being tested but never connected to the running system.

Skill for Claude Code

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

Good fit Use it when writing acceptance criteria, choosing real versus simulated dependencies, selecting test infrastructure, or checking whether a minimal end-to-end test applies.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-distill-port-treatment-policy"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-distill-port-treatment-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,992 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.00067 $0.03992
Opus 5.5 $0.00027 $0.01597
Sonnet 5.5 $0.00013 $0.00798
Haiku 4.5 $0.00007 $0.00399

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

Security

Grade A, and why

nw-distill-port-treatment-policy 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.

The Driving default INVERTS the old "CLI = subprocess runner" assumption. A new acceptance test drives the entry point **in-process** by default: it calls the real `cli main(argv)` (or an application-service method) dire
nWave/skills/nw-distill-port-treatment-policy/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.

DISTILL Port Treatment + Infrastructure Policy (KNOWLEDGE)

Kind: KNOWLEDGE (reference). No forced sequence — consulted on its trigger.

Trigger: you are classifying a port → test treatment (real vs fake) and choosing the concrete mechanism for THIS codebase (Testcontainers vs dedicated env vs in-memory; which fake class), or determining walking-skeleton applicability. Composed by nw-distill.

Reasoning Mandate (Caveman)

Verdict-first, tables over prose, evidence-dense, zero narrative. Depth comes from rigor, not padding. State the conclusion, then the supporting evidence; never bury the verdict under exposition.

Acceptance Criteria: Port-to-Port Principle

Every AC MUST name the driving port (entry point) exercising the behavior → port-to-port ATs → TBU (Tested But Unwired) defects structurally impossible.

Each AC:

  1. Observable outcome: what user/system sees
  2. Driving port: entry point triggering the behavior (service, handler, endpoint, CLI command)

No driving port → crafter can write correct code never wired into the system.

Features: "When user {action} via {driving_port}, {observable_outcome}" Bug fixes: "When {trigger}, {modified_code_path} produces {correct_outcome} instead of {current_broken_behavior}"

Architecture of Reference (ports & adapters — project-level defaults)

Three port classes, each with default test treatment. Table = PROJECT-LEVEL: decided once per project (DESIGN of first feature, or framework adoption). NOT renegotiated per feature. Agent applies defaults; per-feature decision = MECHANISM (Project Infrastructure Policy below), not treatment.

Port type Examples Default in test
Driving (entry point) HTTP API, CLI, in-process call, hook In-process via the OutputPort — drive the real entry (cli main(argv) / application-service method) IN-PROCESS with a fake output port, no interpreter fork. The ONE selected @walking_skeleton proves installed wiring; additional real-boundary observations require a separately declared integration need.
Driven internal (shared state) Repository, read model, application cache In-memory fake for focused acceptance scenarios. The feature's one explicitly selected walking skeleton uses the real adapter; separately declared adapter-integration tests also exercise real I/O under nw-tdd-methodology-walking-skeleton. A project config selects the concrete real mechanism for those observations, not a real-I/O alternative for every focused scenario.
Driven external / non-deterministic Clock, email, SMS, push, payment, LLM, third-party API Fake/stub with output capture (so a Then can observe the side effect)

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. 13d ago Changed bf0cbac89cb5
  2. 17d ago Changed 582dd676fe4f
  3. 27d ago First seen · 188 lines · 67 tokens per session scan A e21c4d97f4d1

Subscribe to this mod's changes

nw-distill-port-treatment-policy is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 67 tokens to every session and 3,992 once invoked, about $0.0003 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-distill-port-treatment-policy compared with skills from other repositories

nw-distill-port-treatment-policy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-distill-port-treatment-policynWave-ai/nWaveSkill63611d agoMITA67Claude Code
test-driven-developmenta5c-ai/babysitterSkill1.9k29d agoMITA35Claude Code
test-driven-developmentdamianvtran/local-operatorSkill232todayMITA48Claude Code, Codex
Pair Programmingruvnet/rufloSkill83ktodayMITA61Claude Code
speq-implementmarconae/speq-skillSkill541mo agoMITA57Claude Code
hk-rcadeepklarity/harness-kitSkill10820d agoMITA115Claude Code
tddInsajin/autopus-adkSkill1112mo agoMITA11Claude Code, Codex