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-algebraic-design-protocolgit 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-algebraic-design-protocol)<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-algebraic-design-protocol"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-algebraic-design-protocol/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-algebraic-design-protocol"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-algebraic-design-protocol.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.00033 | $0.00677 |
| Opus 5.5 | $0.00013 | $0.00271 |
| Sonnet 5.5 | $0.00007 | $0.00135 |
| Haiku 4.5 | $0.00003 | $0.00068 |
Grade A, and why
nw-algebraic-design-protocol 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 17d 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.
How it starts
The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Observations, equality, laws
Decide before writing
- List what a user can observe: each observation, its result type, and what it cannot distinguish. Do this before any constructor.
- Define equality
x ≈ yas agreement under those observations, not structural equality of the representation. For a command that authors only part of an aggregate, compare that part only. - Check that the observations tell the plausible wrong implementation apart from the right one; if not, add the missing observation or stimulus, not more examples.
- Keep persistence, tree shape, cache and optimisation out of the public operations and observations. Put canonical reductions in smart constructors.
- Build a deliberately obvious reference encoding first.
Write
- After each constructor, write at least one law relating it to an observation or to another constructor, and a test for it.
- Test each law with generated inputs (or a table for a finite domain) through the public surface, such that a plausible wrong implementation fails it. State generator reach and size bounds.
- A law with ignored arguments, many exceptions or flags means two fused concepts; split them before choosing a representation.
- When a law fails, the carrier usually cannot express it (order-insensitive composition over an ordered list). Replace the carrier or retract the law. Never add a special case or guard over an unchanged representation to pass the input while the law stays false.
- Before adopting a replacement carrier, run the stated laws against the reference encoding over generated inputs that include the refuting case; confirm every consumed observation survives (an unordered carrier must still give the deterministic order a consumer needs).
- Keep a counterexample that expresses required behaviour as a regression test, with its refuting input. Record a tempting but false law as refuted, not deleted.
- When a counterexample survives a repair, restate the family law and enumerate its interpreters before patching another instance.
- When changing a representation, state old and new observation sets and the equivalence claim first. Then test encode-then-decode and decode-then-encode at the declared equality against the independent reference, including the input that refuted the old one. For a mapping over an operation, test identity and composition preservation.
- Name the runtime operation and observation for each model operation. If concrete activity (an attempted payment, an issued id) is invisible to the model, extend the observation or narrow the claim; a model proof alone is not a runtime guarantee, so say what the model does not cover.
- Passing generated checks is evidence, not proof; say which you have.
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.
- 17d ago Changed · -131 lines · -63 tokens per session f0bc0743ee6b
- 27d ago First seen · 169 lines · 96 tokens per session scan A 787e297a9742
nw-algebraic-design-protocol 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 677 once invoked, about $0.0001 per session on Opus 5.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-11-03.
nw-algebraic-design-protocol compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nw-algebraic-design-protocolnWave-ai/nWave | Skill | 636 | 11d ago | MIT | A | 33 | Claude Code, Codex |
| behavior-contracta5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 25 | Claude Code |
| debug-flowDVNghiem/FlowDeck | Skill | 44 | 15d ago | MIT | A | 34 | Claude Code, Codex |
| hk-rcadeepklarity/harness-kit | Skill | 108 | 20d ago | MIT | A | 115 | Claude Code |
| debuggingInsajin/autopus-adk | Skill | 111 | 2mo ago | MIT | A | 16 | Claude Code, Codex |
| team-fixbostonaholic/team | Skill | 11 | 8d ago | MIT | A | 31 | Claude Code, Codex |
| investigatevictusfate/scaffold | Skill | 7 | 3d ago | MIT | A | 85 | Claude Code, Codex |