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.
npx skills add nWave-ai/nWave --skill nw-distill-port-treatment-policygit clone --depth 1 https://github.com/nWave-ai/nWaveWrote 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.
[](https://agentmods.dev/skills/nwave-ai/nwave/nw-distill-port-treatment-policy)<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.
<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>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.
| Model | Per session | Once 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 |
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 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:
- Observable outcome: what user/system sees
- 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) |
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.
- 13d ago Changed bf0cbac89cb5
- 17d ago Changed 582dd676fe4f
- 27d ago First seen · 188 lines · 67 tokens per session scan A e21c4d97f4d1
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.
nw-distill-port-treatment-policy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nw-distill-port-treatment-policynWave-ai/nWave | Skill | 636 | 11d ago | MIT | A | 67 | Claude Code |
| test-driven-developmenta5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 35 | Claude Code |
| test-driven-developmentdamianvtran/local-operator | Skill | 232 | today | MIT | A | 48 | Claude Code, Codex |
| Pair Programmingruvnet/ruflo | Skill | 83k | today | MIT | A | 61 | Claude Code |
| speq-implementmarconae/speq-skill | Skill | 54 | 1mo ago | MIT | A | 57 | Claude Code |
| hk-rcadeepklarity/harness-kit | Skill | 108 | 20d ago | MIT | A | 115 | Claude Code |
| tddInsajin/autopus-adk | Skill | 111 | 2mo ago | MIT | A | 11 | Claude Code, Codex |