bugmagnet

bugmagnet is a skill for Claude Code from nikeyes/stepwise-dev. It costs 76 tokens per session (506 once invoked), scanned A, original, Apache-2.0.

A code-review skill for finding bugs and missing test cases in one code module. It examines the implementation and existing tests, then writes tests for edge cases and error paths.

In plain words
What is it for?
Use it to explore boundary conditions, check test coverage, run new tests, and document bugs revealed by those tests.
Why use it?
It exposes behaviour that normal tests may miss while leaving the implementation unchanged.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the stepwise-core plugin — 14 skills, 10 agents shipped together

Good fit Use it to explore boundary conditions, check test coverage, run new tests, and document bugs revealed by those tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nikeyes/stepwise-dev/bugmagnet
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 nikeyes/stepwise-dev --skill bugmagnet
Clone the repo
git clone --depth 1 https://github.com/nikeyes/stepwise-dev

Made for: Claude Code.

Or install stepwise-core, the plugin that ships this one along with the rest of its 14 skills, 10 agents.

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 bugmagnet

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nikeyes/stepwise-dev/bugmagnet"><img src="https://agentmods.dev/badge/skills/nikeyes/stepwise-dev/bugmagnet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 506 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 pass 7 Sept 2026
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.00076 $0.00506
Opus 5.5 $0.00030 $0.00202
Sonnet 5.5 $0.00015 $0.00101
Haiku 4.5 $0.00008 $0.00051

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

Security

Grade A, and why

bugmagnet 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.

core/skills/bugmagnet/SKILL.md · 64 lines

What it actually says

BugMagnet

Analyze a code module, write comprehensive edge-case tests, and document discovered bugs.

Attribution: Adapted from BugMagnet AI Assistant by Gojko Adzic (MIT License).

Usage

/bugmagnet <implementation-file-path>

Workflow

  1. Read the implementation file and its existing tests
  2. Identify untested edge cases, boundary conditions, and error paths
  3. Write tests — run each one immediately after writing
  4. When a test reveals a bug, document it as a skipped test (see format below), then explore nearby: bugs cluster together
  5. Summarize findings

Do NOT modify the implementation file. Only write tests.

Bug Documentation Format

When a test reveals unexpected behavior, create a skipped test using the framework's skip mechanism with "- BUG" in the test name:

test.skip('normalizeEmail crashes on input without @ - BUG', () => {
    /*
     * ROOT CAUSE: destructuring email.split("@") fails when no @ present
     * CODE LOCATION: src/validator.ts:49
     * PROPOSED FIX: guard with if (!email.includes("@")) before split
     * EXPECTED: throws or returns input unchanged
     * ACTUAL: TypeError: Cannot read properties of undefined
     */
    expect(() => normalizeEmail("nodomain")).not.toThrow();
});

Every skipped BUG test must include: ROOT CAUSE, CODE LOCATION, PROPOSED FIX, EXPECTED vs ACTUAL.

Summary Format

After all tests are written, provide:

## Test Coverage Summary

**Tests Added:** N total
- Category 1 (X tests)
- Category 2 (Y tests)

**Results:** X passing, Y skipped (bugs)

**Bugs Discovered:**
1. Bug name — file:line
   - Root cause: ...
   - Proposed fix: ...
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 First seen · 64 lines · 76 tokens per session scan A bdd11a799390

Subscribe to this mod's changes

bugmagnet is a skill published in the GitHub repository nikeyes/stepwise-dev (24 stars, last pushed 6d ago), licensed Apache-2.0. It adds 76 tokens to every session and 506 once invoked, about $0.0003 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

Other skills, from other repositories