bugs-archive
Skill3 starsChanged 19 days agoMITView on GitHub
Marks bugs resolved in the backlog's bugs-open.md and moves them to bugs-fixed.md (or records them as π« Won't fix / β Cannot reproduce). Appends a Resolution line to the bug's details file bugs/BUG-NNN.md β the file itself never moves. TRIGGER when a bug has been fixed (by bug-fix, bugs-batch-fix, or by hand) and needs closing, or when the user decides not to fix one. This is the bug-family counterpart to features-archive.
- Commits and pushes
In this repository17 other files it gives its agents.
- backlog-cycleSkill
- backlog-forecastSkill
- backlog-importSkill
- backlog-reportSkill
- bug-fixSkill
- bug-reportSkill
- bugs-nextSkill
- bugs-statusSkill
- bugs-triageSkill
- decision-recordSkill
- feature-developmentSkill
- feature-planSkill
- features-archiveSkill
- features-nextSkill
- features-statusSkill
- features-triageSkill
- gitflowSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 0 are distinctive, and 11 are very specific to this project.
β0
Common Β· estimate
Many files like this have a rule of this kind.
β0
Distinctive Β· estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Otherwise, auto-detect: read bugs-open.md and list every row showing πΆ In Progress (a bug-fix run that got as far as marking it in β¦
- Very specific: line 43
Read <backlog>/bugs-open.md (source) and <backlog>/bugs-fixed.md (destination).
- Very specific: line 58
Check that <backlog>/bugs/BUG-NNN.md exists.
- Very specific: line 68
Remove it from ## Recommended fix order if listed.
- Very specific: line 106
Delete each fixed bug's row from the ## Bug List table.
- Very specific: line 107
Remove each fixed bug from ## Recommended fix order if listed β it's a plain bullet list, so removing an entry needs no renumbering.
- Very specific: line 109
If the ## Bug List table is now empty, restore the _No open bugs._ placeholder line after a blank line following the header separator row β¦
- Very specific: line 133
Destination before source, always: Never edit or save bugs-open.md until the corresponding write to bugs-fixed.md and the bug file in step β¦
- Very specific: line 144
If a selected Bug ID doesn't exist in bugs-open.md, report it and continue with the rest.
- Very specific: line 146
Keep both files' section headers and structure intact β only add/remove table rows, never rewrite whole sections, and never append a β¦
- Very specific: line 156
Prefer the editor tool to an ad-hoc script.
β βCommonβ is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. βVery specificβ is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Close one or more bugs: move the table row from
<backlog>/bugs-open.md to
<backlog>/bugs-fixed.md (for a real fix), or update
the row's Status in place to π« Won't fix / β Cannot reproduce (for a
resolution without a code change). In every case the bug's details file
<backlog>/bugs/BUG-NNN.md stays where it is β only
a - **Resolution:** bullet is appended to it.
Input: One or more Bug IDs (e.g. BUG-004 BUG-007), plus optionally a
disposition (fixed β the default β or wont-fix / cannot-repro) and a
one-line resolution note / fix reference (PR link or commit). If the Bug
IDs are omitted, auto-detect (see step 1).
Steps
1. Resolve which bugs to close
If the user provided Bug IDs, use them directly β skip to step 2.
Otherwise, auto-detect: read bugs-open.md and list every row showing
πΆ In Progress (a bug-fix run that got as far as marking it in progress
but not archived), plus any showing β
Fixed (an interrupted archive).
Present them:
- 4 or fewer:
AskUserQuestionwithmultiSelect: true, one option per candidate. - More than 4: print the numbered list as plain text, then
AskUserQuestionwith "Close all listed" / "Close specific ones (I'll list the IDs)" / "Cancel", resolving "specific ones" from the free-text follow-up.
2. Read both files
Read <backlog>/bugs-open.md (source) and
<backlog>/bugs-fixed.md (destination). If either
doesn't exist, there's nothing to archive β report and stop.
The write ordering below is deliberate and must not be reordered: everything is extracted read-only first, then written to the destination, and only after that save succeeds is the source mutated in a single edit. If the skill is interrupted mid-run, the worst case is content duplicated across both files, never lost.
3. For each selected Bug ID β validate
Find the row in bugs-open.md's ## Bug List table whose Bug ID
matches (the first cell is the link [BUG-NNN](bugs/BUG-NNN.md)). If it's
not there (already archived, or never existed), warn and skip that ID.
Check that <backlog>/bugs/BUG-NNN.md exists; if it
doesn't, warn (the Resolution line can't be recorded β suggest running
bugs-status) and ask whether to create it with just the H1
# BUG-NNN β <title from the row's Summary> or skip that ID.
4. Handle by disposition
Disposition wont-fix or cannot-repro β the bug stays in
bugs-open.md; it is not moved. In a single edit to bugs-open.md:
- Change the row's Status to
π« Won't fixorβ Cannot reproduce. - Remove it from
## Recommended fix orderif listed.
Also append a - **Resolution:** <note> bullet to the end of
bugs/BUG-NNN.md (a separate file from bugs-open.md; if the file
already has a **Resolution:** bullet β an interrupted earlier run β
replace it rather than adding a second one).
(These states are still visible to bugs-status and deliberately kept in
the open file so a β Cannot reproduce bug that resurfaces is easy to
reopen. They're excluded from bugs-next's candidate set.) Skip steps 5β6.
Disposition fixed (default) β proceed to step 5.
5. Write to bugs-fixed.md first
- Copy the full table row for each fixed bug. In the copy, drop the
Statuscolumn and set theFixedcolumn to today's date (YYYY-MM-DD) and theFixcolumn to the supplied PR link / commit (or leaveFixblank if none was given). The destination table's columns areBug ID | Severity | Area | Environment | Fixed | Fix | Summaryβ reshape the row to match. The first cell keeps its link ([BUG-NNN](bugs/BUG-NNN.md)) β the file never moves, so the link stays valid. - Append each reshaped row directly under the last row of
bugs-fixed.md's## Bug Listtable (no blank line inside the table). - Append a
- **Resolution:** <note β what the fix changed, and the PR/commit reference>bullet to the end of each bug's<backlog>/bugs/BUG-NNN.md(replace an existing**Resolution:**bullet instead of duplicating it, in case a previous run was interrupted). The file stays inbugs/; nothing is copied or moved.
Save bugs-fixed.md and the bug file(s). Confirm the saves succeeded
before step 6.
6. Now mutate bugs-open.md β a single edit, a single save
- Delete each fixed bug's row from the
## Bug Listtable. - Remove each fixed bug from
## Recommended fix orderif listed β it's a plain bullet list, so removing an entry needs no renumbering. - If the
## Bug Listtable is now empty, restore the_No open bugs._placeholder line after a blank line following the header separator row (the skeleton's shape βbug-reportremoves both when it adds a row; a placeholder directly under the separator row would be read as a table row); if## Recommended fix orderis now empty, restore_No open bugs to order._.
Save bugs-open.md.
7. Display summary
## Bugs Closed
- BUG-NNN `<title>` β <fixed β moved to bugs-fixed.md | π« Won't fix | β Cannot reproduce>
- β¦
Resolution lines appended to bugs/BUG-NNN.md: <count>Guardrails
- Destination before source, always. Never edit or save
bugs-open.mduntil the corresponding write tobugs-fixed.mdand the bug file in step 5 has been made and confirmed saved (for thefixeddisposition). Thewont-fix/cannot-reprodispositions skip step 5 (they editbugs-open.mdand the bug file only). - The per-bug file never moves and never loses content β only a
**Resolution:**bullet is appended. Severity, Area, and Status are never written into it. - Preserve the exact Markdown table formatting (pipe characters) in both
files, and reshape the row to the destination table's column set β the
destination has a
Fixeddate column and noStatuscolumn. - If a selected Bug ID doesn't exist in
bugs-open.md, report it and continue with the rest. - Keep both files' section headers and structure intact β only add/remove
table rows, never rewrite whole sections, and never append a details
block to either table file (their
## Detailssection holds only its pointer sentence). - The auto-detection in step 1 is a convenience β the user always has the final say on which bugs to close and with what disposition.
- This skill never writes code, runs tests, or touches git. It records an outcome that a fix (or a decision) already produced.
- Write the backlog files as UTF-8, and check it. They hold characters outside ASCII (
β,β¬,β,Β·). Whatever writes them (the editor tool, a shell command, a script) must write UTF-8 explicitly and must never fall back to the system's default text encoding: on some systems that is a single-byte codepage, and it turns one such character into a byte that is not valid UTF-8 and stops every script that reads the file. Prefer the editor tool to an ad-hoc script. After writing, read each file you changed back as UTF-8 (for examplepython3 -c "open(p, encoding='utf-8').read()"); a decoding error is a failed write, to fix before going on. - Never run
git commit,git pushor open a PR.
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.

