/computational-research:backlog-run runs instead · from computational-research
Runs one disciplined work session against a Work/ item: picks next task, implements it, appends progress, marks done, syncs wiki, commits, and stops. Designed for fresh sessions to avoid context accumulation.
This skill never runs in Claude Code
It ships in computational-research at skills/, but /computational-research:backlog-run (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Run exactly one task against a Work/ item, then stop.
Running each task in a fresh session is the whole point — it keeps context small and avoids the rot that builds up over a long chat.
Read document-revise first; it governs the deliverable.
/backlog-run./backlog-run GraphCurvature), use Work/Active/<Name>.md, or Work/Ready/<Name>.md, which is started below.
If it is in Work/Backlog/, it has not been approved: say so and ask before starting it — shaping it is backlog-refine.
An item in Work/UnderReview/, Work/Done/ or Work/Dropped/ has no next task — surface that instead.Work/README.md Ready-table order, then any unlisted Work/Ready/*.md alphabetically.
Resolve each candidate's branch state below; skip and report items already finished there, then take the first candidate still in Ready/ or Active/.
If none remains, say there is no runnable Ready item and stop; do not take an unapproved Backlog/ item or switch to an unrelated Active item.Work/README.md (it lists active items); if exactly one is active, use it; if several, ask which.Before claiming an item, resolve its state on an existing work/<Item> branch (or an unmerged legacy auto/<Item> branch), since the checkout can still show it in Ready/ after earlier work.
Use git ls-tree -r --name-only <branch> -- Work to find the exact Ready/<Item>.md, Active/<Item>.md, UnderReview/<Item>.md or dated Done/*-<Item>.md / Dropped/*-<Item>.md path, then git show <branch>:<path>; without a branch, use the checkout.
An UnderReview/, Done/ or Dropped/ item has no next task: report it and do not create a worktree or dispatch work.
If no unique item path exists, stop and report the inconsistent state rather than falling back to the stale checkout.
An item is claimed by its branch, work/<Item>, checked out in its worktree, ~/.cache/autolab/<Repo>/<Item>, <Repo> being the repo folder's name.
git lets a branch be checked out in one worktree only, so a second session that reaches for the item is refused, and git's refusal names the worktree that holds it.
The rule is the same for interactive and autonomous sessions, and a colleague follows it with plain git.
The worktree lies outside the repo because git surgery inside a cloud-synced folder races the sync daemon.
/backlog-autolab in the item's worktree, /backlog-run-scheduled in the checkout) → the claim is the driver's; go on.git -C <repo> and absolute paths:
work/<Item> exists → git -C <repo> worktree add <path> work/<Item>.auto/<Item> exists, an unmerged branch from before the rename → the same with auto/<Item>; it stays the item's branch until it is merged.git -C <repo> worktree add -b work/<Item> <path> HEAD.git worktree remove <path>), which is the operator's call; backlog-info lists the worktrees whose item has had no commit in a week.
Any other refusal — the path exists, say — stops the session too, quoting git..gitmodules, a paclet-dev repo) is not claimed this way yet, since submodules in a worktree are untried: work in the checkout as before.From here on the worktree is the repository this session works in.
Every Bash command starts with cd <path> && or uses git -C <path>, file tools take absolute paths under <path>, and every repo-relative path a skill names — Work/Active/<Item>.md, Wiki/... — means <path>/<that path>.
Read the item there: its branch carries every earlier session's work.
Start a Ready item in the worktree, unless its branch already has it in Active/: git mv Work/Ready/<Item>.md Work/Active/<Item>.md and commit chore(work): start <Item> from Ready.
In the checkout the item stays in Ready/ until its branch is merged.
Read the item file — the Spec (## Summary through ## Technical details, or a single ## Spec in an older item), ## Tasks, ## Hand-off, ## Decisions.
The Acceptance criteria are what the task serves: if the task as written would not move the item toward them, say so rather than doing it.
The format holds that read flat in session count, so there is no partial-read rule: ## Progress is one line per session and nothing in it is needed (see Wiki/Concepts/ItemFileFormat.md).
An item that predates the format carries multi-paragraph Progress blocks — read only the last one or two of those, and give the item a ## Hand-off in step 5.
Take the first unchecked box in ## Tasks.
State it back to the user, with its routing annotation if it has one.
Compare the annotated model against the tier you are running on — by tier, never by id string, since the same tier reports different ids — and on a mismatch state both and stop for the user's call: one /model and a fresh session cost less than a task run on the wrong tier, and a cheap tier returns a confident wrong answer with nothing in the output to flag it.
If they say proceed, name the tier you actually ran on in the Progress line.
Effort cannot be self-checked, since nothing reports it — state the requested level and let the operator set it.
An unparseable annotation, or an effort outside low|medium|high|xhigh|max, halts here rather than defaulting silently.
In an autonomous run the driver set the model from this same annotation, so a mismatch there is a driver bug: write it into ## Hand-off with needs-human: instead of proceeding.
Implement that single task — code, notebook, proof, whatever it calls for — following the document-revise loop for the deliverable.
Do not start the next task.
If the task changes a paclet submodule (paclet-dev), make the edits in that paclet's worktree on the item's branch — procedure in paclet-worktree.md, read only in that case.
One fact, one destination — nothing is written twice: file each fact per the destination table in backlog-add § The item file format (rationale: Wiki/Concepts/ItemFileFormat.md).
The Progress line, appended at the bottom:
- **SN** YYYY-MM-DD Tk — one clause naming what changed. → [links to what was filed](...)
Filing a fact in Wiki/ discharges the obligation to state it in Progress — the line links it rather than summarising it.
Do not add sections to the item file: conclusions go to Wiki/, blockers to ## Hand-off.
If the project has prompt tracking on (see the project-provenance skill), the session's prompt goes to the Wiki/Prompts.md ledger, not into the item file.
Prose written here and in the step-4 deliverable follows the Semantic line breaks toggle in CLAUDE.md § Source formatting.
Check the box and move it to ### Done with the session number.
Under it, write the task's test instructions — one to four indented bullets telling the human reviewer how to check it:
- [x] T2 (S3) — drop the Group A symbols.
- **Test:** open [Kernel/Main.wl](../../Kernel/Main.wl) — the eleven `$Infra*Color` exports are gone.
- **Test:** run `TestReport["Tests/ToolsTests.wlt"]` — all pass.
Name the place (a relative link), the action, and what they should see — not what the session did, which is Progress.
If nothing is checkable by a human, write one bullet saying so and why.
Update the item's line in Work/README.md (next task).
If that was the last task, the work is finished but not accepted: git mv the file from Active/ into UnderReview/ (clean name) and move its index line to the UnderReview table.
Only the user moves it on to Done/, in a backlog-review.
The folder is now its status — there is no field to flip.
Invoke wiki-update for the durable facts from step 5 — a new function, a result, a definition, a gotcha about an external tool.
It updates Wiki/ articles and Status.md.
When a fact contradicts what an article says, edit the article; Wiki/ is the one surface where a fact can be corrected instead of contradicted, which is why durable content goes there rather than into an append-only log.
Work/ (the folders + the index, already updated above) owns active items and blockers.
If the project's scientific journal is on (see the paper-journal skill), append a concise dated def/thm/rem/claim entry for what was established this session, citing resources used. When off, skip.
The commit goes on the item's branch, in its worktree — never on the checkout's branch, which the work reaches only when backlog-review merges it; that merge is the review, for interactive and autonomous work alike.
If the user commits, use the commit skill. git history is now the project's audit trail, so write a message that names the item and task.
In an autonomous run (see document-revise § Autonomous mode) there is no user to ask: commit unconditionally, on the work/<Item> branch you were started on. The driver reads the new commit and the newly checked box as proof the task ran.
In a paclet-dev repo, paclet code is committed in its worktree on work/<item> and the dev-repo tracking (Work/, Wiki/, Code/) on main — see paclet-worktree.md.
Release the claim, if this session made the worktree: git -C <repo> worktree remove <path>, no --force.
The branch stays and carries the work to the next session, which makes the worktree again.
git refuses a dirty tree: then leave it, and say that the item stays claimed until the work is committed or the worktree is removed.
A worktree a driver made is the driver's to remove.
Say: "Session N complete (Tk).
Start a fresh session and run /backlog-run for the next task."
If the item went to UnderReview/, say instead that it is ready for review with /backlog-review <Name>, and point at the test instructions.
Do not continue.
For a Type: formalization item, "do one task" (step 4) means close one Lean sub-goal via the paper-lean core loop.
Which Mathlib lemma or tactic closed it is a durable fact — it goes to the Wiki/ theorem article, not into the item file.
backlog-add creates and formats the items this skill executes; the one-fact destination table lives there.document-revise governs the deliverable (and its Autonomous mode governs /backlog-autolab workers and /backlog-run-scheduled sessions).wiki-update files the durable facts in step 7; paper-journal and project-provenance are fed when their toggles are on.commit writes the audit-trail commit in step 8.backlog-add.Done/ or Dropped/) — it has no next task.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
30 skills in this plugin
/backlog-addCreate and manage work items in the top-level Work/ folder — each a multi-session effort with a Spec (what to build), a Tasks checklist (one task ≈ one session), and a Progress log. This is the project's execution state, separate from the Wiki knowledge base. Use for: "new work item", "start a work item", "spec out X", "plan for X", "break X into tasks", "track this across sessions", "add a task", "update the spec", or the /backlog-add command. Creates Work/Backlog/<Name>.md, bootstrapping the folder if missing. A work item's status is its folder (Backlog/Ready/Active/UnderReview/Done/Dropped), not a field. Specs follow the document-revise protocol; shaping one together with the user over a long sitting is the backlog-refine skill. Do NOT trigger on casual uses of the word "work".
/backlog-autolabWork the Work/ backlog autonomously from an ordinary chat, where the operator can watch it: this chat becomes the orchestrator and dispatches one background subagent per task, each a cold backlog-run run in the item's own git worktree on work/<Item>, visible live in the Agent map and steerable by message. Settles permissions in one preflight before the operator leaves, queues several eligible items, verifies every task the way backlog-run-scheduled does, halts only the item that fails, and ends with a digest per item. Use when the user says "autolab", "run the backlog", "let the agents work the backlog", "work these items autonomously here", "work the queue while I'm away", or runs /backlog-autolab.
/backlog-boardPublish and sync the work board — a private claude.ai page, readable on a phone, that shows every Work/ item under a root (one repo or a folder of repos): what needs the user, what is under review, active, ready and in the backlog, each item rendered and clickable. On the page the user edits the human sections, approves moves (Backlog → Ready, Accept, Send back), leaves notes, files new items and asks Claude about an item; those changes wait on the page until a session syncs them into the files. Use for: "sync the board", "refresh the board", "publish the board", "set up a board", or the /backlog-board command. Never on a timer — a sync is always the user's request.
/backlog-infoGo through the whole Work/ backlog with the user: read every item in Backlog/, Ready/ and UnderReview/ and every work/<Item> branch, and report what waits on the user (a review, a halted run's question, a Waiting-on line, queued board changes), what is stale (no Progress for a month, or a premise the code no longer has), which items overlap, and what to refine, merge, split or drop next. Changes nothing until the user says so; then each move is a git mv and an index update. Never moves an item to Ready and never syncs the board. Use for: "go through the backlog", "backlog info", "what's in the backlog", "what waits on me", "clean up the backlog", "what next", or the /backlog-info command. Not for shaping one item (backlog-refine) or reviewing a finished one (backlog-review).
/backlog-refineShape a Work/Backlog item together with the user over a long sitting until it is ready to be worked — the user writes the human parts (Summary, Motivation, Acceptance criteria, any detail they care about) in their editor, while the LLM researches the code and wiki, writes the Technical details, keeps a list of open questions, and proposes the tasks and their routing. Ends with a readiness check and, on the user's word, the move to Work/Ready/ where /backlog-run-scheduled may pick it up. Use for: "refine X", "let's work on the backlog", "shape this item", "backlog refinement", "get X ready", or the /backlog-refine command. Not for executing tasks (backlog-run) or filing a quick new item (backlog-add).
/backlog-reviewReview a finished Work/ item with the user: find it in Work/UnderReview/ or on its unmerged work/<Item> branch, show the run digest, walk the Acceptance criteria one by one with the test instructions of the tasks that serve each, run the checks that can be run, and end on the user's verdict — accept (merge the branch, item to Done/) or send back (merge the branch, a new task from the user's words, item to Active/). Nothing is fixed during the review. Use for: "review X", "review the item", "check the finished item", "accept X", "send X back", "merge the item branch", or the /backlog-review command. Not for running tasks (backlog-run) or going through the whole backlog (backlog-info).
computational-research@WolframInstitute is listed by wolframinstitute/claudepluginmarketplace — review the source before installing
npx claudepluginhub wolframinstitute/claudepluginmarketplace --plugin computational-researchOther plugins' skills for the same job