// Lightweight bug tracking for capturing, storing, and managing bugs discovered during development. Use when you or any agent discovers a non-critical bug that should be tracked for later fixing.
| name | bug-tracking |
| description | Lightweight bug tracking for capturing, storing, and managing bugs discovered during development. Use when you or any agent discovers a non-critical bug that should be tracked for later fixing. |
A lightweight, file-based bug tracking system integrated into the devloop workflow.
.claude/bugs/
โโโ index.md # Overview of all bugs with status
โโโ BUG-001.md # Individual bug files
โโโ BUG-002.md
โโโ ...
Each bug is stored as .claude/bugs/BUG-{NNN}.md:
---
id: BUG-001
title: Brief description of the bug
status: open
priority: medium
created: 2024-12-11T10:30:00
updated: 2024-12-11T10:30:00
reporter: agent:code-reviewer
tags: [formatting, ui]
related-files:
- src/components/Button.tsx
- src/styles/button.css
related-plan-task: Task 2.3
---
# BUG-001: Brief description of the bug
## Description
Detailed description of what's wrong.
## Steps to Reproduce
1. Step one
2. Step two
3. Observe the issue
## Expected Behavior
What should happen instead.
## Actual Behavior
What currently happens.
## Context
- Discovered during: code review of auth feature
- Related feature: user authentication
- Blocking: no
## Notes
Any additional context, screenshots references, or thoughts on how to fix.
## Resolution
<!-- Filled in when fixed -->
- **Fixed in**: [commit hash or PR]
- **Fixed by**: [agent or user]
- **Fix summary**: [brief description]
.claude/bugs/index.md:
# Bug Tracker
**Last Updated**: 2024-12-11T10:30:00
**Open**: 3 | **In Progress**: 1 | **Fixed**: 5 | **Won't Fix**: 1
## Open Bugs
| ID | Priority | Title | Created | Tags |
|----|----------|-------|---------|------|
| [BUG-003](BUG-003.md) | high | Auth token not refreshing | 2024-12-11 | auth, api |
| [BUG-001](BUG-001.md) | medium | Button text truncated | 2024-12-10 | ui |
| [BUG-005](BUG-005.md) | low | Typo in error message | 2024-12-11 | formatting |
## In Progress
| ID | Priority | Title | Assigned |
|----|----------|-------|----------|
| [BUG-002](BUG-002.md) | medium | Form validation race condition | current-session |
## Recently Fixed
| ID | Title | Fixed |
|----|-------|-------|
| [BUG-004](BUG-004.md) | Missing null check | 2024-12-11 |
---
*Use `/devloop:bugs` to manage bugs or `/devloop:bug` to report a new one.*
When an agent discovers a bug, it should:
Check if bugs directory exists:
mkdir -p .claude/bugs
Get next bug ID:
# Find highest existing bug number
ls .claude/bugs/BUG-*.md 2>/dev/null | sed 's/.*BUG-0*//' | sed 's/.md//' | sort -n | tail -1
# Add 1 for next ID, pad to 3 digits
Create bug file with frontmatter and description
Update index.md to include the new bug
For agents to quickly log a bug:
---
id: BUG-{NNN}
title: {one-line summary}
status: open
priority: {low|medium|high}
created: {ISO timestamp}
updated: {ISO timestamp}
reporter: agent:{agent-name}
tags: [{relevant, tags}]
related-files:
- {file paths discovered in}
---
# BUG-{NNN}: {one-line summary}
## Description
{What's wrong - 1-3 sentences}
## Context
- Discovered during: {what agent was doing}
- Severity: {cosmetic|functional|data-integrity}
- Blocking: no
## Suggested Fix
{If obvious, note the fix approach}
| Priority | When to Use | Examples |
|---|---|---|
| critical | Data loss, security, crashes | Never use for "track later" bugs |
| high | Broken functionality, bad UX | Feature doesn't work in edge case |
| medium | Annoying but workaround exists | UI glitch, slow performance |
| low | Cosmetic, nice-to-have | Typos, formatting, minor polish |
open โ in-progress โ fixed
โ wont-fix
When code-reviewer finds issues that aren't critical:
dod-validator should:
.claude/bugs/ for open bugs related to current feature/devloop:continue can show bug count for context/devloop:bug - Report a new bug interactively/devloop:bugs - View and manage bugs