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-ab-optimize-skillgit 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-ab-optimize-skill)<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-ab-optimize-skill"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-ab-optimize-skill/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-ab-optimize-skill"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-ab-optimize-skill.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.00041 | $0.00914 |
| Opus 5.5 | $0.00016 | $0.00366 |
| Sonnet 5.5 | $0.00008 | $0.00183 |
| Haiku 4.5 | $0.00004 | $0.00091 |
Grade A, and why
nw-ab-optimize-skill 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 27d 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 — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
nw-ab-optimize-skill (PROCEDURE)
Kind: PROCEDURE | One job: optimize one existing skill | One trigger: an existing skill is requested for optimization.
Eligibility
- Measure debt — Record source lines, words, bytes; classify every rule and firing condition; identify duplication and resident-context cost. Compute
static_resident; computeexpected_runtimeonly from evidenced trigger probabilities, otherwiseINDETERMINATE; computeworst_runtime. Use “tokens” only for exact compatible token measurements, otherwise reportINDETERMINATE. Stop: a small coherent single-trigger skill; returnNOT_ELIGIBLEwithout edits. - Protect behavior — Inventory the skill's public name, global invariants, referenced callers, textual pins, public/private fan-out, and existing behavioral projections. Stop: baseline red, a pin cannot be preserved, or a public fan-out is missing.
Deterministic workflow
Run these steps in order:
- Map ownership — Assign every original rule exactly one owner: original lean core, existing reused skill, or one extracted skill. Reuse first. Stop: duplicate or unowned rule.
- Partition triggers — State a concrete trigger for every extracted procedure or knowledge skill. The triggers together cover the original trigger-space, without overlap. Keep one-job/one-trigger skills intact. Stop: trigger gap or overlap.
- Construct first — Apply this order: remove, relax, route, construct, then consider an existing check. When an LLM still authors formal bytes, templates, grammars, reviewers, and validators are checks, not construction; prefer a deterministic sole-writer constructor or compiler that accepts semantic input once. Do not add enforcement machinery (validator, hook, gate, test, or mandatory artifact) through this procedure; a deterministic constructor/compiler that replaces LLM formal-byte authoring is allowed.
- Recompose — Preserve the original skill name as the lean core. Keep its routing, global invariants, and public contract there; extract only distinct-trigger procedures or knowledge. Wire every extracted skill from the core; no orphan or name change.
- Measure outcome — Re-measure core lines, words, bytes,
static_resident,expected_runtimewhen evidenced, andworst_runtime. Retain a step only with evidence that it improves speed, resident/expected context cost, or outcome quality without silently worsening another; otherwise remove or skip it. Claim improvement only for a measured reduction; otherwise label the resultSTRUCTURAL_ONLYand name no efficiency gain. Stop: resident cost worsens without an explicit decision. - Verify once — Batch edits, run the existing relevant validation once, and execute the existing behavioral projections once. Do not create new validation. Stop: behavior changes or an existing projection is red.
- Handoff — Return compact evidence only: ownership map; trigger partition; before/after metrics; executed projections;
independent-review-needed; residualINDETERMINATE. Do not create a mandatory report artifact.
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.
- 27d ago First seen · 43 lines · 41 tokens per session scan A 795a66690510
nw-ab-optimize-skill is a skill published in the GitHub repository nWave-ai/nWave (636 stars, last pushed 11d ago), licensed MIT. It adds 41 tokens to every session and 914 once invoked, about $0.0002 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-ab-optimize-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| nw-ab-optimize-skillnWave-ai/nWave | Skill | 636 | 11d ago | MIT | A | 41 | Claude Code |
| computer-usekirodotdev/KiroCrew | Skill | 5.1k | today | Apache-2.0 | A | 67 | Claude Code, Codex |
| startcycle-graph-userhybridlabor-api/bdb-dev-optimized-agent-skills | Skill | 9 | 10d ago | Apache-2.0 | A | 102 | Claude Code, Codex |
| tddt1/tdder | Skill | 14 | 2d ago | Apache-2.0 | A | 102 | Claude Code |
| opt-in-workspace-writesfabioc-aloha/Alex_Skill_Mall | Skill | 6 | 4d ago | MIT | A | 19 | Claude Code, Codex |
| test-driven-developmentaaronnat23/disp8ch | Skill | 82 | 2mo ago | MIT | A | 0 | Claude Code, Codex |
| harness-loopme-cedric/agent-compass | Skill | 3 | 9d ago | MIT | A | 50 | Claude Code |