/tracking:backlogfrom tracking
Read, work, and maintain a Git repo's deferred-work items in docs/backlog/, one file per item — a defect a change did not introduce, an open decision, a fix whose blast radius exceeded its value, a finding decided against and kept so it is not re-argued. Owns the item format and the create-then-git-rm lifecycle. Use when the user says "backlog", "check backlog", "what's on my backlog", "work the backlog", "address the backlog", "add to backlog", "clean up backlog", "log this issue", "log an issue", "park this as an issue", "register this decision", "triage this item with the personas", or when a review or task produced items that are real but not being fixed now.
Ships in tracking. 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.
Read when SKILL.md points to them; scripts run unread.
docs/backlog/ at a repo root holds work that is real but not being done now: a defect a change did not
introduce, drift with no user-visible symptom, a fix whose blast radius exceeded its value, a decision the
owner has not taken yet, an idea worth keeping. One file per item. It is the maintainer's own list — it
never gates anything and never reaches a contributor.
The directory path is fixed, so every invocation in a repo reads and writes one predictable store. There
is no index file: the directory listing is the index, and a git rm is the only bookkeeping.
Asking the user. Every question here is asked the way the user's own rules say. Inside agterm those rules may send a choice to a huddle page: follow them. Where no rule says, use AskUserQuestion. The options and the recommendation hold in either form.
Git only. The lifecycle is expressed in Git — git rm to close an item, branch detection before
writing, staging and committing the file. Outside a Git repository, say so plainly and stop; do not
improvise an equivalent in another VCS.
An item belongs here only when all three hold:
docs/reviews/<date>/ stay there, in that register's own format.When the gate fails, say where the finding belongs instead of filing it:
docs/backlog/<slug>.md. The slug names the defect, not the file it lives in
(reopen-fallback-ignores-frontmost.md), so it can be cited from a commit and dedupe is a filename check.
---
worth: later
where: internal/window/library.go:reopen
added: 2026-08-05
---
# reopen fallback ignores the last-frontmost window
`reopen`'s fallback ignores which window was last frontmost once `frontmost` is nil, so a user with three
windows open whose exited window was not `windows.first` gets the wrong capture replayed — the first
window's, not the one they closed. Reading the fallback as "replay the last window" is the misreading
this entry exists to stop: it replays the *first*.
Options: (a) track last-frontmost in `library.go` alongside `frontmost` — small, touches restore
ordering; (b) drop the fallback and replay nothing when `frontmost` is nil — simplest, loses the
single-window case that works today. Recommendation: (a). Unknown that settles the `later`: whether
restore ordering is about to change in the window-groups work; if it is, (a) lands inside that.
Surfaced reviewing PR #370.
Three frontmatter fields, written once and rewritten only as Appending below allows:
worth: yes | no | later — the triage call, and the field the list is ordered by:
yes — the value is agreed and it should be fixed. Says nothing about schedule: an item
blocked on an upstream release is still yes if nobody disputes it is worth doing.later — the value decision itself is unresolved, not the work. The body must name the unknown
or the condition that would settle it; without that it is a yes or a no in disguise.no — a decision not to fix, kept so the same finding is not rediscovered and re-argued by the
next review that touches the file. Keep a no only while that rationale still earns its place; once
it does not, delete the file rather than carrying it.where: path or path:symbol — the file, optionally followed by the function, class, or heading
the item is anchored to. Never a line number — a line number rots on the next edit, a symbol
survives until the code it names is gone. Omit when the item is not anchored to one place. The dedupe
key alongside the slug, compared only when both items have one; two items missing it are not thereby
the same item.added: YYYY-MM-DD — never updated, so it reads as age. A year-old item is itself information.
Zero-pad it so the values sort lexically.The H1 is the title. The body below it has no required headings, but it owes the reader enough that the call can be made without this conversation or the branch it came from:
later: the options with their costs and a recommendation. Two to four options, a line or
two each, and one recommendation stated plainly. This is what lets the owner decide from the file
instead of re-investigating. A yes may skip this when the fix is obvious; a no replaces it with
the one sentence recording why the fix was rejected, without which it cannot do the anti-rediscovery
job it is kept for.A two-line yes stays two lines; a gnarly later gets a page. Cite files and symbols in the body the
same way where does — never line numbers.
Create the file. When the work lands, git rm it in the commit that lands the fix — not a separate cleanup
commit. There is no checkbox, no in-progress marker, no resolved state: the staged deletion is the state,
and the outcome lives in whatever records it — the fixing commit, an ADR, a plan. Dropping an item decided
against is the same operation with a different reason.
/tracking:backlog <slug> names one item: docs/backlog/<slug>.md, the file name without its extension.
Read that file alone, verify its where the same way step 2 below does when it has one, and go straight
to the fix-or-drop question for it — skip the listing, which is not what was asked for. A slug matching no
file is a mistake worth saying plainly: report it and list what is there instead of guessing at the
nearest name.
Glob docs/backlog/*.md from the repo root and read each file's frontmatter and H1. If the directory
does not exist, say so plainly and offer to start one — do not create it empty.
Verify before reporting. where goes stale when a file is renamed or a symbol is removed. For
each item that has one, check the path still exists and, when a symbol is named, that the symbol is
still defined there and still does what the item claims; report a stale item as stale rather than as
work. An item without where has nothing to verify — carry it through as-is.
Report every item, one line each — yes first, then later, then no, oldest added first within
each group. Include where for the items that have one. Do not editorialize; the item already carries
its reasoning.
Offer concrete actions as a question, never prose, with a recommendation first:
no whose rationale has stopped earning its place;With more than four items, group them across several questions rather than truncating the list.
On "fix it now": do the work under the usual gates — tests, formatters, linters — and git rm the file
in the same commit. Never auto-commit.
When a run produces deferred items, offer to append them; never write silently. Filing an item is a side-quest: write it, report the path, and return to the interrupted work without expanding scope.
Never add a backlog item to an unrelated work branch. Repo-wide notes dropped into someone else's in-progress branch get swept into that branch's diff or vanish with it. Check the branch before creating the directory or writing any file:
git symbolic-ref refs/remotes/origin/HEAD and strip
the refs/remotes/origin/ prefix. If that command fails or returns nothing — it exits non-zero when
the ref is not symbolic, which is the usual signal — fall back to two ordered passes with
git rev-parse --verify, remote first and complete before local: refs/remotes/origin/master, then
refs/remotes/origin/main, then refs/remotes/origin/trunk; only if none of the three resolves, try
refs/heads/master, then refs/heads/main, then refs/heads/trunk. Never interleave the two passes
per candidate — a repo migrated to main can keep a stale local master, and checking local master
before remote main picks the dead branch as the default. Probe the full ref paths, so a tag of the
same name cannot answer for a branch.git branch --show-current. If no default branch was found at all, say so and take
the "anywhere else" case below: there is nothing to compare against, so the answer must come from
the user rather than from a guess.
detached HEAD at <sha> when the command
returns nothing, and ask whether to write in this checkout anyway. On yes, write here. On no, change
nothing: do not create a branch, a worktree, or a temp checkout, do not switch the current checkout,
and do not pick a destination the user did not name.Dedupe before writing, on where first and the slug second. A pre-existing defect surfaces in every
review that touches its file, so the same item arrives repeatedly. If it is already there, say so and leave
it alone. If the new sighting sharpens the description or changes the worth call, edit that file in place
rather than adding a second one.
Create docs/backlog/ if it does not exist — after the branch check above, never before it.
When the files are written, read git diff --cached --name-only before offering anything. Nothing has
been staged yet at that point, so anything it lists is pre-existing — including another backlog file from
an earlier run. If it lists anything at all, do not commit: report what is staged and let the user resolve
it, because a plain git commit would sweep it in alongside the item. With an empty index, offer the next
step as a question, staging the exact paths this invocation created or edited and not the
directory — an item bundled with the run's other changes violates the rule below. Never commit without that
answer. Offer commit and push together: a backlog item is notes with no code in it, and unpushed it stays
invisible from every other machine, so the push is part of filing rather than an upsell.
scripts/triage.py sorts the items by who can act on them next, using TypeSafe's Jev model
through the jev command, which the jev plugin puts on PATH and which reads
OPENROUTER_API_KEY:
worth: no; never sent to Jev.The verdicts live in the repository's git directory (backlog-triage.json), so they are never
committed and every worktree shares them. Nothing runs on a timer:
python3 ${CLAUDE_SKILL_DIR}/scripts/triage.py item <slug>
and report its verdict with the filing.python3 ${CLAUDE_SKILL_DIR}/scripts/triage.py refresh first and
show the groups. It judges an item whose text changed, and re-checks a waiting item when the
default branch has moved since its last check, with the commits in between.A verdict is a sorting aid, never a ruling: Jev returns a confidence, and one under about 0.5 is
close to a coin toss, so say it. When jev is missing or the key is unset, the script says so and
the listing goes on without verdicts. An item too long for Jev is listed as not judged, never cut
down to fit.
When the user asks to triage or evaluate an item with the personas, run the persona panel's review
(decide:panel, "Reviewing") on the item. The brief restates it in user terms: what the defect or
decision means to a person and the outcomes the item's options lead to. It leaves out the item's
where:, its code names and its recommendation, so the personas judge the outcomes and not the
author's lean. Report
the review beside the item. If it changes the worth call or sharpens the options, offer to edit
the item in place, as Appending says; never write the review into the item unasked. It runs on
demand only, one item at a time: each persona answers twice, once per model family, so a sweep over
the whole list costs a panel per item.
no that is still doing its job of stopping a
rediscovery; that one stays.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pysilver/cc-tools --plugin tracking