bugmagnet
Lightweight bug discovery and test coverage analysis for a code module. Use when the user asks to find bugs, analyze test coverage, write edge case tests, or…
от nikeyes★ 24 звезды на GitHub
Установить bugmagnet в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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
- Read the implementation file and its existing tests
- Identify untested edge cases, boundary conditions, and error paths
- Write tests — run each one immediately after writing
- When a test reveals a bug, document it as a skipped test (see format below), then explore nearby: bugs cluster together
- 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: ...
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bugmagnet?
Lightweight bug discovery and test coverage analysis for a code module. Use when the user asks to find bugs, analyze test coverage, write edge case tests, or do exploratory testing on a file. Triggers on "bugmagnet", "find bugs in", "test coverage gaps", "edge cases for", or "exploratory testing on <file>".
Как установить скилл bugmagnet?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bugmagnet запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…