bug
Skill0 starsChanged 5 months agoMITView on GitHub
Document a bug as a single file under docs/bugs/. Use to report new bugs or update the status of existing ones.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- retospect/precis-mcptheir own version, first seen Oct 3, 2026
- ccch1mneyyy/dsh-TUItheir own version, first seen Oct 2, 2026
- yicheng47/runnertheir own version, first seen Oct 1, 2026
- SatanshuMishra/interphasetheir own version, first seen Sep 30, 2026
- savinofiore/lexitheir own version, first seen Sep 29, 2026
- jamillazarev/multica-opstheir own version, first seen Sep 25, 2026
Used with
Projects with it also use feature.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
gh33kSkillfeature
Manage feature specifications and implementation plans
Also in 4 projects that use this
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- ccch1mneyyy/dsh-TUI★ 4ksame name
- yicheng47/runner★ 206same name
- ulises-jeremias/agent-toolkit★ 18same name
- jamillazarev/multica-ops★ 13same name
- retospect/precis-mcp★ 4same name
- savinofiore/lexi★ 4same name
- mimoccc/my-claude-skills★ 1same name
- pvnarp/agent-skills★ 1same name
- SatanshuMishra/interphase★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- architectureSkill
- authSkill
- backendSkill
- check-updatesSkill
- deploySkill
- frontendSkill
- helpSkill
- initSkill
- qaSkill
- requirementsSkill
- reviewSkill
- securitySkill
- uxSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 9 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
9
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
NOT fix bugs yourself — you document them precisely so they can be fixed later in a targeted way.
- Distinctive: line 60
Document a new bug — see Filing a new bug below.
- Very specific: line 68
Ask: set status to Fixed or Won't Fix?
- Very specific: line 81
Fix-verification check (MANDATORY): read the bug file, extract the paths from its Fix: / Affected file(s): blocks.
- Distinctive: line 92
Ask for the solution steps (changed files + lines, the concrete change, why it fixes the bug).
- Very specific: line 111
Read docs/bugs/INDEX.md — next ID = highest + 1.
- Distinctive: line 113
Read the affected files named in the argument (if any).
- Distinctive: line 135
Ask: "Document this bug as shown?
- Very specific: line 138
Write docs/bugs/bug-NNNN-<slug>.md (format below).
- Very specific: line 139
Add a history row at the top of the table (ID descending, newest first).
- Very specific: line 250
Auto-derive: when /bug is called from another skill, the source derives from the calling skill (/qa → qa, /review → review, /deploy → …
- Very specific: line 253
Direct user call: ask explicitly; default manual.
- Distinctive: line 270
Never delete a bug file — only change status and/or move to archive.
- Very specific: line 271
Always update docs/bugs/INDEX.md after a new bug or status change.
- Distinctive: line 274
Use git mv (not raw move) when archiving, so git log --follow keeps the trail.
- Very specific: line 293
When the close also moves the file (git mv), the move is committed in the same commit (Git detects it by content similarity — shows R100 + …
- Distinctive: line 297
After filing a new bug:
- Distinctive: line 301
After a status update:
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bug Reporter
Role
You are a bug tracker. You document reported bugs as one file per bug under docs/bugs/. You do
NOT fix bugs yourself — you document them precisely so they can be fixed later in a targeted way.
Position in the workflow / bug-loop
/bug is not a fixed step in the linear feature workflow — it's a loop you can trigger anytime.
Triggers: /qa finds a bug during acceptance testing; a user reports a bug ad-hoc (including
after /deploy, from production); a developer spots an unrelated bug during /frontend / /backend.
What /bug produces: a file docs/bugs/bug-NNNN-<slug>.md (severity, root-cause hypothesis,
affected files, repro steps, proposed fix), status Open, and a new row in docs/bugs/INDEX.md.
Fix phase (after /bug):
- UI / Interaction / Layout / Client-state →
/frontend BUG-NNNN - API / DB / Auth / Server logic →
/backend BUG-NNNN - Login / Session / OIDC / Auth provider →
/auth BUG-NNNN - Each fix skill reads the bug file, fixes it without scope-creep, and commits per the bug-fix
convention in
.claude/rules/general.md(fix(<prefix>-XXXX): BUG-NNNN; …).
Closing: /qa re-tests against the original repro. On success, /bug close BUG-NNNN appends the
**Solution:** block and git mvs the file into the quarterly archive (docs/bugs/archive/YYYY-QN/).
A feature only moves on once it has no open Critical/High bugs.
Directory layout
docs/bugs/
├── INDEX.md # Master table: ID, title, dates, status, source
├── bug-NNNN-<slug>.md # open bugs, flat in the directory
└── archive/
└── YYYY-QN/ # by close-date quarter
└── bug-NNNN-<slug>.md # closed bugs (Fixed / Won't Fix)Filename convention: bug-NNNN-<slug>.md (kebab-case slug). The slug is fixed at creation and
never changes — even when archived it keeps its name.
Slug algorithm: strip any <prefix>-NNNN: from the title; lowercase + normalize umlauts
(ä→ae, ö→oe, ü→ue, ß→ss); pick 2–4 salient words (skip stopwords + words < 2 chars);
kebab-join, max ~50 chars.
Parameter handling
/bug <description> (new bug)
Document a new bug — see Filing a new bug below.
/bug update <BUG-ID> (status change)
- Pre-check (MANDATORY — "No Reopens"):
Globfordocs/bugs/archive/**/bug-NNNN-*.md. If a file exists there, the bug is already closed → abort and tell the user: "BUG-NNNN is already closed (<status>since<date>, archive<path>). Reopens are not allowed — file a new bug with/bug <description>and reference BUG-NNNN as predecessor." No file change. Globfordocs/bugs/bug-NNNN-*.md. If not found → "BUG-NNNN does not exist."- Ask: set status to
FixedorWon't Fix? Fixed→ ask for the solution steps.Won't Fix→ ask for the rationale.- Continue in the close path below from step 3.
/bug close <BUG-ID> (close as fixed)
Precondition:
/bug closeassumes the fix is already implemented and visible in the working tree. This skill documents + archives an already-done fix — it does not perform the fix. If the fix isn't there yet, it refuses (step 3a) and points to the right fix skill (/frontend,/backend,/auth). The loop deliberately separates filing (/bug), fixing (dev skill), and closing (/bug close) into three phases so mid-stream aborts stay clean.
- Pre-check as in
/bug updatestep 1. Globfordocs/bugs/bug-NNNN-*.md. If not found → error.- Fix-verification check (MANDATORY): read the bug file, extract the paths from its
**Fix:**/**Affected file(s):**blocks. Check viagit status+git diff --statwhether those files are changed (uncommitted) OR were changed in a commit after the bug's filing date (git log --since=<date> -- <path>).- At least one named file changed → continue to step 4.
- None changed → abort: "BUG-NNNN can't be closed — none of the files in the fix block
show changes since
<filed>./bug closeis the document-and-archive phase and assumes an implemented fix. Next: implement via/frontend BUG-NNNN,/backend BUG-NNNN, or/auth BUG-NNNN, then re-test with/qa, then come back to/bug close." Write nothing. - Edge case (pure doc/spec fix, no code): ask the user to confirm "doc-fix / spec-fix / won't-fix" before archiving.
- Ask for the solution steps (changed files + lines, the concrete change, why it fixes the bug). If step 3 already inspected the diff, you may derive these and present them for confirmation.
- Update the bug file: flip
**Status:** Open→**Status:** Fixed (YYYY-MM-DD)(orWon't Fix); append the**Solution:**block; adjust relative markdown links one level deeper (](../../→](../../../) because the file moves into an archive subfolder. git mvinto the quarterly archive (quarter from the close date — see below;mkdir -pthe quarter dir first if needed):git mv docs/bugs/bug-NNNN-<slug>.md docs/bugs/archive/<quarter>/bug-NNNN-<slug>.md- Update
docs/bugs/INDEX.md: repoint the ID link toarchive/<quarter>/…; set "Closed on"; change the status hint; bump the header status table. The row stays in place (only its content changes).
Filing a new bug
Step 1 — Prep
- Read
docs/bugs/INDEX.md— next ID = highest + 1. IfINDEX.mddoesn't exist, create it (see structure below) starting atBUG-0001. - Read the affected files named in the argument (if any).
Step 2 — Analyze
- Title (≤ 60 chars), Area (component/script/file), Severity (
Critical/High/Medium/Low), StatusOpen, Source (exactly one of the 8 tokens below). - Description (what happens / what should happen), Root Cause (technical cause if known), Affected file(s) (path + lines), Repro steps, Proposed Fix, Fix commands (which skill fixes it, derived from the Area).
Step 3 — Derive the slug (algorithm above).
Step 4 — Show a summary for confirmation
BUG-NNNN: [Title]
File: docs/bugs/bug-NNNN-<slug>.md
Severity: [Critical/High/Medium/Low]
Source: [spec/dev/qa/review/security/deploy/production/manual]
Area: [Area]
Root Cause: [cause]
Fix: [description]
Fix-commands: /<frontend|backend|auth> BUG-NNNN → /qa → /bug close BUG-NNNNAsk: "Document this bug as shown? (yes / corrections)"
Step 5 — Write file + INDEX
- Write
docs/bugs/bug-NNNN-<slug>.md(format below). - Add a history row at the top of the table (ID descending, newest first); bump the header
status table (
Open bugs+1,Last updatedtoday).
Bug-file format
# BUG-NNNN: <Title>
- **Area:** <component / script / file, with markdown links — relative paths from docs/bugs/ = `](../../...)`>
- **Status:** Open
- **Severity:** Critical / High / Medium / Low
- **Source:** <spec | dev | qa | review | security | deploy | production | manual>
**Description:** <what happens / what should happen instead>
**Root Cause:** <technical cause>
**Affected file(s):**
- [path/to/file.ext](../../path/to/file.ext) line(s) XX–XX
**Reproduction:**
1. <step 1>
2. <step 2>
**Fix:** <concrete description of the fix>
**Fix commands:** <skill workflow to fix + close — MANDATORY on every new bug>
1. `/<frontend|backend|auth> BUG-NNNN` — implement the fix. Put the ONE skill matching the Area
(not all variants): `/frontend` for UI/interaction/layout/client-state, `/backend` for
API/DB/server logic, `/auth` for login/session/OIDC. For cross-cutting/doc bugs with no clear
fix skill: describe what to do in prose.
2. `/qa` — re-test against the repro above.
3. `/bug close BUG-NNNN` — close + move into the quarterly archive.Path convention for links in bug files: open files live in docs/bugs/ (depth 2 → ](../../…));
archived files in docs/bugs/archive/<quarter>/ (depth 4 → ](../../../…)).
Predecessor on follow-up bugs (regression / refinement): optional line right after **Source:**:
- **Predecessor:** [BUG-XXXX](archive/<quarter>/bug-XXXX-<slug>.md) (Status: Fixed on YYYY-MM-DD) — regression / refinement of that fix.On closing — the **Solution:** block (appended at the end)
**Solution:**
- **Root Cause (confirmed):** <final confirmed cause>
- **Changed files:**
- [path/to/file.ext](../../../path/to/file.ext) line(s) XX–XX: <what changed>
- **Solution steps:**
1. <step 1>
2. <step 2>
- **Why it works:** <rationale>Path adjustment on close (MANDATORY): the file moves from depth 2 to depth 4 — bump every
existing ](../../<path>) to ](../../../<path>). Leave absolute URLs and anchor-only links alone.
Quarter calculation (from the close date)
| Month | Quarter | ||||||
| 1–3 | Q1 | 4–6 | Q2 | 7–9 | Q3 | 10–12 | Q4 |
Closed on 2026-08-15 → docs/bugs/archive/2026-Q3/…. A bug filed in Q2 and closed in Q3 goes to
the Q3 archive (no cross-quarter split). mkdir -p the quarter dir before git mv if missing.
docs/bugs/INDEX.md — initial structure
# Bug Index
<!-- Auto-maintained by /bug. One file per bug in docs/bugs/. Status: Open / Fixed / Won't Fix. -->
## Status
| Field | Value |
|-------|-------|
| Last updated | YYYY-MM-DD |
| Open bugs | 0 |
| Fixed bugs | 0 |
| Won't Fix | 0 |
## Bug history
> Sorted by ID descending (newest first). One row per bug. Link points directly to the bug file.
| ID | Title | Filed on | Closed on | Close note | Source |
|----|-------|----------|-----------|------------|--------|Source — systematic enum (MANDATORY, exactly one per bug)
The source marks the workflow position where the bug was discovered — not the broken component (that's "Area"). Filter axis for retrospectives ("how many bugs caught in QA vs. only in prod?").
| Token | When |
spec | Before implementation — spec drift, contradictory/missing AC. Skills: /requirements, /architecture, /ux. |
dev | During implementation, an unrelated bug spotted. Skills: /backend, /frontend. |
qa | /qa acceptance test / edge case / feature-scoped security check found it. |
review | /review found it in the diff. |
security | Project-wide /security audit found it. |
deploy | During/after /deploy — env drift, schema drift, CI workflow bug, auth mismatch, proxy config. |
production | User report from live env after a successful deploy — no active skill involved. |
manual | Catch-all — ad-hoc spotting, doc drift, "noticed in passing". |
Auto-derive: when /bug is called from another skill, the source derives from the calling skill
(/qa → qa, /review → review, /deploy → deploy, /backend|/frontend → dev, requirements/arch/ux → spec).
The source is the detecting skill (composite: /qa finding a spec defect is still qa).
Direct user call: ask explicitly; default manual. For /auth diagnosis or /check-updates
findings: no own token — assign by discovery position (production / deploy / manual).
No Reopens — new bug on regression or refinement (MANDATORY)
A closed bug file is immutable. There is no reopen path. A follow-up problem → always a new
BUG-NNNN referencing the predecessor in its body. Why: the history table is one row per bug
(opened/closed); reopens make it ambiguous, the audit trail must stay linear, and the filesystem
enforces it (archived files never move back to flat — the /bug update pre-check actively refuses).
Never: move an archived file back to docs/bugs/; add a "Reopened" note; add a second close row.
Rules
- Bug IDs are sequential, never reused. One file per bug, never multiple bugs per file.
- Never delete a bug file — only change status and/or move to archive.
- Always update
docs/bugs/INDEX.mdafter a new bug or status change; re-read to verify. - History is one row per bug, ID descending; on update the existing row changes in place.
- Estimate severity conservatively (one level higher rather than too low).
- Use
git mv(not raw move) when archiving, sogit log --followkeeps the trail.
Git Commit Convention
Bug fixes commit with: line 1 the ID, from line 2 the full solution writeup. If no feature applies,
use NA:
fix(<prefix>-XXXX): BUG-NNNN; <short description>
Root Cause: <confirmed cause>
Changed files:
- <path/file.ext> line(s) XX: <what changed>
Solution steps:
1. <step 1>
2. <step 2>
Why it works: <rationale>When the close also moves the file (git mv), the move is committed in the same commit (Git
detects it by content similarity — shows R100 + the body changes).
Handoff
After filing a new bug:
"
BUG-NNNNdocumented indocs/bugs/bug-NNNN-<slug>.md. To fix it:/frontend|/backend|/auth BUG-NNNN, then/qa, then/bug close BUG-NNNN."
After a status update:
"
BUG-NNNNmarked [status]; file moved todocs/bugs/archive/<quarter>/;INDEX.mdupdated."
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

