bug-fix-brief — скилл для Claude Code: документирует багфиксы
Скилл собирает структурированный Bug Fix Brief: причина, шаги воспроизведения, варианты правки и чек-лист. Пригодится, когда баг уже разобран, а фикс ещё не написан.
npx skills add giuseppe-trisciuoglio/developer-kit --skill bug-fix-brief -a claude-codeЧто делает bug-fix-brief
Скилл создаёт документ в docs/bfb/ по единому шаблону. Сначала он смотрит, какие номера BFB уже заняты, и спрашивает у вас номер, короткое название в kebab-case, ссылку на issue, окружение с версией, наблюдаемое и ожидаемое поведение, а также файл, функцию и строку с причиной.
Дальше генерируется шаблон из шести разделов: описание бага, воспроизведение, причина, таблица вариантов фикса с выбором и обоснованием, чек-лист правок и заметки. Причина ограничена тремя строками, вариантов фикса нужно минимум два. Перед записью на диск скилл показывает готовый текст и спрашивает подтверждение через AskUserQuestion — создать, отредактировать или отменить.
Запись идёт только после одобрения: создаётся docs/bfb/, файл ложится как docs/bfb/BFB-XXX-title.md. Скиллу разрешены только Read, Write, AskUserQuestion и Glob, поэтому правки в код он не вносит. Если вам нужен инструмент, который сам чинит баг, это не он.
Какие задачи решает
- зафиксировать причину бага до того, как код начнут править
- собрать шаги воспроизведения в один список
- сравнить два варианта фикса и объяснить выбор
- получить проверяемый чек-лист правок и тестов
- вести сквозную нумерацию BFB без пропусков
Примеры запросов агенту
- создай BFB для падения логина при пустом email
- задокументируй багфикс по issue #1287
- сделай bug fix brief по причине в AuthManager.kt
Как установить bug-fix-brief
1Через Skills CLI (Vercel)
npx skills add giuseppe-trisciuoglio/developer-kit --skill bug-fix-brief -a claude-code2Вручную: положить файлы
~/.claude/skills/bug-fix-brief/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/bug-fix-brief/
1Через Skills CLI (Vercel)
npx skills add giuseppe-trisciuoglio/developer-kit --skill bug-fix-brief -a codex2Вручную: положить файлы
.agents/skills/bug-fix-brief/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add giuseppe-trisciuoglio/developer-kit --skill bug-fix-brief -a cursor2Вручную: положить файлы
.cursor/skills/bug-fix-brief/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install giuseppe-trisciuoglio/developer-kit bug-fix-brief2Вручную: положить файлы
.github/skills/bug-fix-brief/SKILL.md1Через Skills CLI (Vercel)
npx skills add giuseppe-trisciuoglio/developer-kit --skill bug-fix-brief -a gemini-cli2Командой платформы
gemini skills install https://github.com/giuseppe-trisciuoglio/developer-kit --path plugins/developer-kit-core/skills/bug-fix-briefВручную: положить файлы
.devin/skills/bug-fix-brief/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add giuseppe-trisciuoglio/developer-kit --skill bug-fix-brief -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора93
Похожие
Рядом в теме «Настройка агента: память, контекст, субагенты»
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Вопросы о bug-fix-brief
Как установить bug-fix-brief в Claude?
Выполните npx skills add giuseppe-trisciuoglio/developer-kit --skill bug-fix-brief -a claude-code. Скилл появится в ~/.claude/skills/bug-fix-brief/SKILL.md.
Что делает bug-fix-brief?
Генерирует Bug Fix Brief: документ с причиной бага, шагами воспроизведения, вариантами фикса и чек-листом. Файл сохраняется в docs/bfb/.
Скилл сам правит код?
Нет. Ему разрешены только Read, Write, AskUserQuestion и Glob, так что он пишет документ, а не патч. Запись идёт после подтверждения.
Исходный текст
SKILL.md · MIT
--- name: bug-fix-brief description: Generates a structured Bug Fix Brief (BFB) to document issue corrections. Includes root cause analysis, repro steps, fix options, and fix checklist. Use when user asks to create a BFB, document a bug fix, or generate a bug correction document. allowed-tools: Read, Write, AskUserQuestion, Glob --- # Bug Fix Brief (BFB) ## Overview This skill generates a Bug Fix Brief (BFB): a structured document in `docs/bfb/` that uniformly captures every bug fix with root cause, repro steps, fix options, and checklist. ## When to Use - User asks to create a BFB - User wants to document a bug fix in a structured way - After identifying the root cause of a bug and before implementing the fix **Trigger:** "create BFB", "document bug", "bug fix brief", "document fix" ## Instructions ### Phase 1: Gather Information Check existing numbering: ```bash ls docs/bfb/ 2>/dev/null || echo "Directory does not exist" ``` Ask the user for: - BFB number (or propose next sequential) - Concise title (3-5 words, kebab-case) - Issue link (e.g. #1287) - Environment (Prod/Stg/Dev) + version - Observed vs expected behavior - File/function/line of the cause ### Phase 2: Generate Template Complete the full BFB template: ```markdown ## BFB-XXX: [Title] **Reference:** [Issue link] **Environment:** [Env] `vX.Y.Z` **Date:** YYYY-MM-DD --- ### 1. Bug - **Observed:** [wrong behavior] - **Expected:** [correct behavior] ### 2. Repro ``` 1. ... 2. ... → [error/output] ``` ### 3. Cause `path/file.ext` — `function()` @ line N [Why it happens, max 3 lines] ### 4. Decision | Option | Fix | Choice | |--------|-----|--------| | A | [desc] | ✅/❌ | | B | [desc] | ✅/❌ | **Rationale:** [why] ### 5. Fix - [ ] [change 1] - [ ] [test] - [ ] [verify repro] ### 6. Notes [recurring patterns, links, warnings] ``` ### Phase 3: Ask Confirmation Show the generated BFB and ask with AskUserQuestion: - "Create the BFB" - "Edit before creating" - "Cancel" ### Phase 4: Write to Disk Only after approval: ```bash mkdir -p docs/bfb ``` Write to `docs/bfb/BFB-XXX-title.md` ## Examples **Input:** "create BFB for login email null crash" **Final output:** ```markdown ## BFB-042: Login crash with null email **Reference:** #1287 **Environment:** Prod `v2.4.1` **Date:** 2026-05-02 --- ### 1. Bug - **Observed:** App crashes if email field is empty - **Expected:** Error message "Email required" ### 2. Repro ``` 1. Open login screen 2. Tap "Login" without entering email → NullPointerException @ AuthManager.kt:34 ``` ### 3. Cause `AuthManager.kt` — `validateEmail()` @ line 34 Missing null check on email.trim() ### 4. Decision | Option | Fix | Choice | |--------|-----|--------| | A | Add safe call `?.` | ✅ | | B | Refactor with Result type | ❌ | **Rationale:** Option A is minimal, zero impact. ### 5. Fix - [ ] Add `email?.trim()?.isNotEmpty() == true` - [ ] Test `validateEmail_null_returnsFalse()` - [ ] Verify repro ### 6. Notes - Check other forms for missing null checks ``` ## Best Practices 1. **Sequential numbering**: BFB-001, BFB-002, no gaps 2. **Concise title**: 3-5 words, kebab-case in filename 3. **Root cause**: exact file, function, line 4. **2+ fix options**: with pros/cons and rationale 5. **Verifiable checklist**: each item must be testable ## Constraints and Warnings - **Confirmation required**: Always ask before writing - **Max 3 lines for cause**: Stay concise - **Directory `docs/bfb/`**: Create if it does not exist
© giuseppe-trisciuoglio · MIT · giuseppe-trisciuoglio/developer-kit