nw-bugfix

nw-bugfix is a skill for Claude Code from nWave-ai/nWave. It costs 19 tokens per session (657 once invoked), scanned A, original, MIT.

A bug-fixing workflow that first finds the underlying cause, then waits for the user to review it, and finally adds a regression test before applying the fix. A regression test is a check that prevents the same bug from returning; TDD means writing that failing check before the code change.

In plain words
What is it for?
Use it to investigate a reported defect, present a root-cause analysis, get approval for the fix direction, then deliver the test and code change.
Why use it?
It separates diagnosis from implementation so the proposed cause and fix can be confirmed before code is changed. The final test records the failure and verifies that the fix works.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to investigate a reported defect, present a root-cause analysis, get approval for the fix direction, then deliver the test and code change.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nwave-ai/nwave/nw-bugfix"><img src="https://agentmods.dev/badge/skills/nwave-ai/nwave/nw-bugfix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 41
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00019 $0.00657
Opus 5.5 $0.00008 $0.00263
Sonnet 5.5 $0.00004 $0.00131
Haiku 4.5 $0.00002 $0.00066

Measured 1mo ago against content hash 781b976aef48, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nw-bugfix 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 1mo 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.

nWave/skills/nw-bugfix/SKILL.md · 53 lines

What it actually says

NW-BUGFIX

Use this route when the root cause is not yet known. A defect whose root cause is established, found during current work, is fixed in place in the current lane instead: regression test observed RED, fix, GREEN, one commit, covered by that Request's review and CI (nw-auto recovery table). No separate Request.

Before authoring regression tests or changing code, load nw-auto and report the affected project's existing test baseline to the user as required by its visible-baseline rule. A broken setup is not the bug's intentional RED.

Use nwdes as the delivery route. Give the observed defect verbatim to the native installed Product Owner. Read nw-nwdes for the current route and nw-role-invocation for mandatory skills and exact role contracts. Generate instructions with nwdes prompt. Every role records through its kind's CLI verbs using Bash. The Product Owner records product values with nwdes product record edits and nwdes product close. The host writes no JSON and copies no reply into another command. For each role the route invokes, it passes that role's generated nwdes prompt bundle verbatim, and that role, not the host, runs its kind's verbs. Facts the route assigns to the host, such as feature new and slice set, stay with the host. Run every nwdes command from the checkout's top level; roots default to cwd and the repository root, and lane verbs resolve the main worktree. The first add, set or remove creates the scoped draft. Use open --from-current to revise current authority; close with no draft validates empty values.

Keep the defect verbatim in product authority and its matching public observation in acceptance authority. The architect records design values with design verbs. Before oracle authoring, generate the examiner's expectations prompt; it records expectations with nwdes expectations row add/close. The acceptance designer authors the regression oracle and records acceptance rows with nwdes acceptance row add for its assigned slice, then closes. The host runs its verification command on the original pre-fix source for RED. Never infer that source from HEAD after the fix is committed. The native crafter implements the correction and records changed files and command results with craft verbs for its assigned slice; the host captures GREEN.

After implementation, prepare actual public evidence with nwdes packet --kind examine. The examiner records each verdict with nwdes examine verdict set and closes with nwdes examine close. A fix no one observed working is not a fix. Invoke independent review separately; the reviewer records findings and closes its review with review verbs.

The LLM revises S/M/L, applicability, sequencing and upstream corrections from evidence. nwdes constructs artifacts, not code, models, workflow state or verification seals. nw-auto owns the common evidence and recovery guidance.

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. 1mo ago Changed · -113 lines · -4 tokens per session 781b976aef48
  2. 3mo ago First seen · 166 lines · 23 tokens per session scan A 3c64388ea528

Subscribe to this mod's changes

nw-bugfix is a skill published in the GitHub repository nWave-ai/nWave (638 stars, last pushed 17d ago), licensed MIT. It adds 19 tokens to every session and 657 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-08-30.

Related

nw-bugfix compared with skills from other repositories

nw-bugfix next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nw-bugfixnWave-ai/nWaveSkill63817d agoMITA19Claude Code
behavior-contracta5c-ai/babysitterSkill2.0k1mo agoMITA25Claude Code
debug-flowDVNghiem/FlowDeckSkill44todayMITA34Claude Code, Codex
hk-rcadeepklarity/harness-kitSkill10825d agoMITA115Claude Code
debuggingInsajin/autopus-adkSkill1112mo agoMITA16Claude Code, Codex
investigatevictusfate/scaffoldSkill7todayMITA85Claude Code, Codex
team-fixbostonaholic/teamSkill1114d agoMITA31Claude Code, Codex