
Bug Fix Brief
- 1k installs
- 318 repo stars
- Updated June 22, 2026
- giuseppe-trisciuoglio/developer-kit
bug-fix-brief is a Claude Code skill that generates structured Bug Fix Brief documents so AI agents quickly understand a bug and ship the correction with root cause and repro steps.
About
bug-fix-brief is a document generator skill from giuseppe-trisciuoglio/developer-kit that creates a Bug Fix Brief (BFB) in docs/bfb/. Each BFB uniformly captures root cause analysis, reproduction steps, fix options, and a fix checklist for every issue correction. Developers reach for bug-fix-brief after identifying a root cause and before implementing or reviewing a patch, when they want agents to produce consistent bug documentation instead of ad hoc notes. Allowed tools include Read, Write, AskUserQuestion, and Glob, keeping the workflow focused on structured markdown documentation inside the repository.
- Creates a standardized bug-fix brief from error logs, stack traces, or reproduction steps
- Includes root-cause hypothesis, acceptance criteria, and reproduction steps in one artifact
- Reduces context window waste when handing bugs to Claude Code or Cursor
- Works with any language or framework by focusing on symptoms and expected behavior
- Serves as the required input artifact before invoking systematic fix agents
Bug Fix Brief by the numbers
- 1,023 all-time installs (skills.sh)
- +125 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #47 of 596 Debugging skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill bug-fix-briefAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1k |
|---|---|
| repo stars | ★ 318 |
| Last updated | June 22, 2026 |
| Repository | giuseppe-trisciuoglio/developer-kit ↗ |
How do you document a bug fix for an AI agent?
Generate concise, structured briefs that let AI agents quickly understand a bug and ship the fix.
Who is it for?
Developers who want uniform bug-fix documentation in docs/bfb/ so agents and reviewers can understand issues and verify patches quickly.
Skip if: Developers who only need inline commit messages or issue tracker comments without a structured BFB document in the repository.
When should I use this skill?
A user asks to create a BFB, document a bug fix, or generate a bug correction document after root cause is known.
What you get
A structured Bug Fix Brief markdown file in docs/bfb/ with root cause, repro steps, fix options, and a fix checklist.
- Bug Fix Brief in docs/bfb/
- fix checklist
Files
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:
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:
## BFB-XXX: [Title]
**Reference:** [Issue link]
**Environment:** [Env] `vX.Y.Z`
**Date:** YYYY-MM-DD
---
### 1. Bug
- **Observed:** [wrong behavior]
- **Expected:** [correct behavior]
### 2. Repro1. ... 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:
mkdir -p docs/bfbWrite to docs/bfb/BFB-XXX-title.md
Examples
Input: "create BFB for login email null crash"
Final output:
## 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. Repro1. 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 checksBest 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
Related skills
FAQ
Where does bug-fix-brief save documents?
bug-fix-brief saves structured Bug Fix Brief (BFB) markdown files in the docs/bfb/ directory, capturing root cause, reproduction steps, fix options, and a fix checklist for each correction.
When should bug-fix-brief be used?
bug-fix-brief should be used when a developer asks to create a BFB, document a bug fix, or generate a bug correction document, typically after root cause is identified and before shipping the patch.