/build-loop:list-bugs [optional filter: open | all | resolved | wontfix]from build-loop
Shows the build loop bug queue as a plain-language table. Use when the user asks "what's in the queue", "what bugs are open", "show me the queue", "what did I capture", or explicitly invokes /list-bugs. Supports optional status filter argument (open, all, resolved, wontfix). Default filter is Open + In Progress items only, leading with the items that can actually be started and oldest first within that.
Ships in build-loop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are displaying the build loop bug queue at ~/.claude/build-loop/queue/. This is a strictly read-only view — do not write, edit, or delete any queue entries from this skill.
Check $ARGUMENTS. It may be empty or contain one of these values (case-insensitive):
open-and-in-progress (status Open OR In Progress). This is the
default because the everyday question is "what is outstanding", and something already
being worked on is still outstanding.open → only Open. Asking for open explicitly means open, not open-ish. Use it to see
what has not been started.all → no filter, show every statusin progress → only In Progressresolved → only Resolvedwontfix or won't fix (treat as equivalent) → only Won't FixDetermine the human-readable filter_label:
open-and-in-progress → "Open + In Progress"all → "All"open → "Open only"in progress → "In Progress only"resolved → "Resolved only"wontfix → "Won't Fix only"ls ~/.claude/build-loop/queue/*.json 2>/dev/null
ls returns nothing (no output, no files, or directory does not exist): print "Queue is empty, nothing to show." and stop. Do NOT error..json file listed, read it with the Read tool.id, parent_id, target, target_kind, what_happened, status, created_at, what_expected, target_path, dedup_key, type fields. id and parent_id are what Step 5 and the index in point 6 match on, so a run that skips them has nothing to match and will render empty or invented parent details. Apply the read-time defaults from SCHEMA.md so an older entry never crashes this view: a missing type reads as "primary", a missing target reads from skill, a missing target_path reads from skill_path, and a missing target_kind reads as "skill".id: null, parent_id: null, target: "(malformed)", target_kind: "(error)", what_happened: "file {filename} could not be parsed", status: "(error)", created_at: "?", type: "(error)". Do not hide broken entries — the user needs to see them so they can fix them.(error) with the filename and continue. Never stop processing remaining files.id to both its status and its target. Skip any entry whose id is null or absent. A malformed file has no usable id, and indexing several of them would collide them all onto one key and let a dep-review that records no parent resolve against a broken file. Carry the target as well as the status, because Step 5 names the parent and a parent dropped by the filter is not available to look up later. Build the index first, for the same reason: a dep-review's parent is usually Resolved by the time the review can be done, and a Resolved parent is dropped by the default filter while its status and name are both still needed here.dep-review entry against that index and classify it:
parent_id is null or absent, stop there: parent_status and parent_target are both "(unknown)", with no index lookup. null is the schema's value for "no parent", so looking it up is how a dep-review ends up blamed on an unrelated entry.parent_id up in the index and record what it points at as parent_status and parent_target. An id naming an entry that is not on disk also reads as "(unknown)" for both.parent_status is Open, In Progress, Won't Fix, or the retired fix attempted / unresolved. What these share is that no change was ever made, so there is nothing whose impact could be reviewed. Won't Fix means the correction was declined and fix attempted / unresolved means the write failed or the diff was rejected, so neither is a finished fix despite reading like a closed entry.parent_status is Resolved, fix applied, watching, or (unknown). The first two are the only statuses that mean a fix actually landed. An unknown parent is surfaced rather than hidden, because a dep-review pointing at nothing is itself worth seeing.waiting_reason on each waiting entry, since the two cases need different advice: "no fix yet" for Open and In Progress, and "parent closed without a change" for Won't Fix and fix attempted / unresolved. A parent in the second group will never produce a fix, so its dep-review wants closing rather than waiting on.primary entry is never waiting, and neither is an (error) entry.Sort the surviving entries in this order:
Open → In Progress → Resolved → Won't Fix → (error) last. Status stays the top key so open work always leads, whatever the filter. Sorting by band first would put a Resolved primary above an Open dep-review under /list-bugs all, which is the opposite of the point.primary first, then answerable dep-review, then waiting dep-review. This is what makes the open group lead with work that can actually be started. A waiting dep-review is a real item, but it is blocked on something else in the queue, so it sits below everything that is not.created_at ascending within each band, oldest first, since older means more urgent.An (error) entry sits in no band. Its status is (error), which key 1 already sorts last, so
key 2 never applies to it. Sort those by filename ascending, since a file that would not parse
has no created_at to sort on.
Count N = number of entries after filtering and sorting. Then count the bands within it:
P = primaries, A = answerable dep-reviews, W = waiting dep-reviews, E = unreadable
(error) entries. Every row falls in exactly one of the four, so P + A + W + E must equal
N. If it does not, a band was missed and the header will not reconcile against the table.
Build {breakdown}, which stops a queue full of blocked reviews from reading as a queue
full of bugs:
A, W and E are all zero, {breakdown} is the empty string, and the header reads exactly as it always did.{breakdown} is , followed by the non-zero counts among {P} primary, {A} dep-review ready, {W} dep-review waiting, and {E} unreadable, joined with , . Omit any segment whose count is zero.If N == 0: print "No {filter_label} items in the queue." and skip to Step 5.
If N > 0: produce a Markdown table with this exact header:
## Build loop queue: {filter_label} ({N} items{breakdown})
| Target | Kind | What happened | Type | Status | Date |
|--------|------|---------------|------|--------|------|
Then add one row per entry (up to 20 rows):
target field value, falling back to the skill field for entries written before schema v5target_kind field value, or skill when the field is absentwhat_happened to 60 characters; append ... if truncated. Escape any literal | character as \| so the Markdown table doesn't break."primary" if missing (per Step 2 point 4). Show "primary", "dep-review", "dep-review (waiting)", or "(error)". Marking the waiting ones is what lets the header count be reconciled row by row, and that reconciliation only holds because the breakdown counts (error) rows too. This column does not affect filtering, but it does affect sort, through the band in Step 3.status field valuecreated_at (format: YYYY-MM-DD). If created_at is "?", show ?.If N > 20: after the 20th row, print a summary line:
... and {N - 20} more. Run /list-bugs all to see every item, or open ~/.claude/build-loop/queue/ directly.
After the table (or after the "no items" message), pick what gets the spotlight, in this order. A waiting dep-review never takes it while any other open entry exists, because it names work that cannot be started yet.
Every case below draws only from the filtered and sorted entries, the same rows the table
just rendered. Never from the parent index built in Step 2 point 6. That index deliberately
holds every entry on disk, including ones the filter dropped, because it exists to look up
parents. Selecting from it would spotlight an item that is not in the table, which is what
/list-bugs resolved and /list-bugs wontfix would do: no row on screen is Open, so those
runs must print no spotlight at all rather than reaching past the filter for one.
Open primary among the filtered entries, by lowest created_at.Open answerable dep-review among them.Open filtered entries are waiting dep-reviews, print the blocked block below instead of a spotlight. Count W_open = filtered waiting dep-reviews whose status is Open. Use that, not the W from Step 4, which counts every status the filter let through and would name more items than the block goes on to list.Open, skip this step entirely. This is the normal outcome for resolved and wontfix.For cases 1 and 2, print a spotlight block:
**Most urgent open item:**
- Target: {target} {if type == "dep-review" append " (dep-review, triggered by parent " + parent_id + ")"}
- What happened: {full what_happened, not truncated}
- What expected: {full what_expected}
- Logged: {created_at as YYYY-MM-DD} ({days-ago} days ago, where days-ago = today's date minus created_at date)
- File: `~/.claude/build-loop/queue/{filename}`
Case 4 above covers when this block is skipped. It is stated once, in the numbered list, so the scope of the selection and the condition for skipping it cannot drift apart.
For case 3, where every open entry is a dep-review waiting on an unfixed parent, print this instead of a spotlight. It says what to do next rather than presenting a blocked item as the urgent one. Open with this line:
**Nothing open can be started yet.** All {W_open} open items are dep-reviews with no change to review, because none of their parents produced a fix:
Then add one bullet per waiting entry, all W_open of them, so the list below the count
is as long as the count claims. One bullet against a stated count of nine is the failure this
spells out to avoid:
- {target}, from {parent_target} (`{parent_id}`, status {parent_status}, {waiting_reason})
Then close with the line matching what is actually in the list. Both, if it holds a mix:
For a parent still open, fix that first, and /apply-fix offers up its dep-reviews once the fix commits.
For a parent closed without a change, no fix is coming, so close the dep-review instead. /apply-fix only surfaces dep-reviews when a parent fix commits, so nothing else will clear it.
Always end with this exact line, regardless of what was shown above:
"Run /flag-issue to log a new correction. Run /list-bugs all to see every status. Dep-review entries are reviews triggered automatically, and one marked waiting has no change to review because its parent never produced a fix. See SCHEMA.md Type enum for details."
what_happened or what_expected fields are missing from an entry, substitute "(missing)" rather than crashing.created_at is missing or unparseable, treat as "?" for display and sort these entries last within their status group.type field is missing from an entry (Phase 1 v1 entries), render it as "primary". Never display an empty column.parent_id is missing, or names an entry that is not on disk, treat it as answerable with parent_status and parent_target both "(unknown)". Never drop it and never crash. A dep-review whose parent has vanished is a real problem, and hiding it is how it stays one.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sarahcallmesmadds/infra-plugins --plugin build-loop11 skills in this plugin
/apply-fixApplies a correction from the bug queue to an actual target file. Reads the queue entry, checks DEPS.json for dependents, reasons about the surgical fix, shows a plain-language before/after diff, waits for the user's approval (yes / no / retry), then writes the fix, commits to the correct repo, and updates the queue entry status to "fix applied, watching" with the commit hash stored. Never writes without explicit approval./audit-depsScans every configured root (skills, hooks, commands), compares what is on disk to DEPS.json at ~/.claude/build-loop/, and surfaces missing (on disk but not in the map), orphaned (in the map but not on disk), or changed (the file is newer than its DEPS.json entry's last_updated) entries. Use when you've added or renamed a skill, hook, or command, or when DEPS.json is flagged as stale. Shows a draft of proposed changes and asks y/edit/skip before writing — never silent writes./built-checkOther plugins' skills for the same job