agentleFS
arxdsilvaarxdsilva/ai-loops/skills/backlog/SKILL.md

backlog

Skill1 starsChanged 21 days agoMITView on GitHub

Work a whole issue backlog unattended - parallel lanes, each a full /loops:work run in its own git worktree, with this session supervising, re-queueing or handing stuck issues to a human, and filing lane findings as issues assigned to that human. Use when the user asks to clear, burn down or continuously work a backlog of issues, or invokes /loops:backlog.

46 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use conventions, tech-debt and 10 more.

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.
  • KaratussSkill

    conventions

    Spring Boot 코드 컨벤션(커밋 형식·네이밍·패키지 구조). 모든 구현 전 필수 확인.

    Also in 3 projects that use this

  • AnthropicSkill

    tech-debt

    Identify, categorize, and prioritize technical debt. Trigger with "tech debt", "technical debt audit", "what should we refactor", "code health", or when the user asks about code quality, refactoring priorities, or maintenance backlog.

    Also in 3 projects that use this

  • endlessblinkSkill

    task

    Create a new task in MASTER_PLAN.md with auto-generated sequential IDs. Supports TASK, BUG, FEATURE, and INQUIRY types. Triggers on "/task", "add task", "new task", "create task", "track this".

    Also in 3 projects that use this

  • AWSSkill

    issue

    Implement a GitHub issue end-to-end — branch, code, test, docs, and commit.

    Also in 3 projects that use this

  • MicrosoftSkill

    worktree

    Create, reuse or clean up a dedicated git worktree for working on a pull request or a private branch. Use from any PR-scoped workflow that needs an isolated checkout to keep current code and build output untouched.

    Also in 3 projects that use this

  • Google CloudSkill

    fix

    Plan a remediation strategy after a test failure.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    You change no code: Never edit files in the main checkout or a worktree, never merge, rebase or close a PR, and never close an issue.

    line 20
  2. Very specific:

    Check the forge: gh auth status.

    line 26
  3. Very specific:

    Start k lanes, the smallest of:

    line 37
  4. Very specific:

    When k is 0, start nothing: wait for the running lanes, or go to step 5 when none is running.

    line 43
  5. Distinctive:

    Write the body to a file. Never pass model-written text as an inline argument.

    line 72
  6. Very specific:

    When no lane is running and step 2 starts none, the session ends its stretch for one of three reasons: the queue is empty, the open-PR cap …

    line 76

“Common” is measured: kept by at least 6 in 10 of the 43 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/loops:backlog - the supervisor

You are the supervisor. You fill the lanes, react when one ends, and talk to the user. You never work an issue yourself: every issue is worked by a lane, a separate headless agent running /loops:work in its own worktree. Spec: specs/BACKLOG.md (cite BACKLOG §n, do not restate). Arguments: $ARGUMENTS.

The loops binary. As in /loops:work: loops version, else the absolute path the session context gives (<plugin root>/bin/loops). Run the plugin's update once now (loops update --apply --platform <p>, where <p> is in skills/work/platforms/<your platform>.md ## Update), relay its line, and continue: lanes skip it (BACKLOG §4).

Your platform decides how lanes start. Steps 2 and 3 need background commands that notify you when they exit (Claude Code: Bash run_in_background). Without them, do step 1, then supervise with loops backlog run as step 6 says, never with steps 2 and 3, and end with step 5 when that stretch ends. Lanes default to claude -p; on another platform step 1 passes that platform's headless command as --agent (BACKLOG §9), unless the user gave one.

Discipline

  • Lanes are processes, never subagents (BACKLOG §1). Start each lane with Bash run_in_background: true running loops backlog work. Never use the Agent tool for a lane, and never cd into a worktree.
  • The state file is the truth. After a compaction or in a resumed session, run loops backlog status first and continue from it. A running issue whose lane is gone (loops backlog work and every process its agent started) is recovered by the next loops backlog sync. Never start a second lane for an issue that is running.
  • Wait, don't poll. The harness tells you when a background lane exits. Between exits do nothing: no sleep, no status loops. loops backlog watch is the user's view; never run it yourself.
  • You change no code. Never edit files in the main checkout or a worktree, never merge, rebase or close a PR, and never close an issue.
  • Short messages. One line per lane event (#42 PR opened: <url>, #17 handed to @alice: <reason>). Questions only in step 1.

1. Setup (once)

  1. Parse $ARGUMENTS. The human (--human) is required and is never guessed (BACKLOG §5). When it is missing, ask the user for the GitHub login that findings and hand-offs go to. This is the only question you ask.
  2. Check the forge: gh auth status. On failure, tell the user to run ! gh auth login and wait.
  3. Init. Pass only the flags the user gave, plus --agent on a platform other than Claude Code (above):
loops backlog init --human <login> [--lanes N] [--max-prs N|none] [--label …] [--exclude-label …] [--authors …|any] [--budget usd] [--agent "<tmpl>"]
loops backlog sync
loops backlog status
  1. Tell the user, in at most 5 lines: the repo, the lanes × agents, the queue size and the first issues, and the safety settings from BACKLOG §7. That means the authors filter, the lane permission mode (auto unless --agent says otherwise), the budget per lane ("none" when unset) and the open-PR cap with how many lane PRs are open now (from sync). Also say that lanes open PRs and never merge, and where to follow the lanes: the /loops-backlog pane on Claude Code (it opens by itself when a lane starts) or loops backlog watch in a side terminal. Then start. Do not wait for a reply.

2. Fill the lanes

Start k lanes, the smallest of:

  • the lanes setting minus the running lanes in loops backlog status;
  • the queued issues from the last sync;
  • the open-PR cap minus the open count from the last sync (BACKLOG §7; skip this term when the cap is none);
  • under --max N, N minus the lanes started in this session.

When k is 0, start nothing: wait for the running lanes, or go to step 5 when none is running. Otherwise, in one message, start k background Bash calls, each:

loops backlog work

Each one claims the next queued issue under the state lock and checks the cap there, so parallel calls never collide or pass it. Say one line: backlog: <running> lanes running, <q> queued, <open>/<cap> PRs open.

3. When a lane exits

The notification carries the command's output and exit code (BACKLOG §3):

ExitOutput saysYou do
0#n done: <PR>Relay the line and any finding filed lines.
1queued again: <reason>Read the reason. When retrying cannot help, hand it off now: loops backlog finish <n> --status human --note "<reason, in plain words>". Retrying cannot help when the reason shows a contradiction or missing information in the ticket, a missing credential or service, or the same failure as the base branch has. A lane's own needs-human decision is already handed off by the binary. Otherwise leave it queued for the retry.
1handed to the humanRelay it. The comment, label and assignee are already set (BACKLOG §6).
1loops backlog work: <error>A lane could not start (forge, git or state error). Fix what is in your power (for example ! gh auth login, told to the user), else tell the user and stop filling lanes.
3nothing queuedThat lane stays empty.
4paused: <open> of <cap> lane PRs openStart no more lanes until a sync shows room under the cap. Tell the user once that lanes wait for them to merge or close PRs.

For a closer look at a failure, read the tail of the lane log that loops backlog status lists (tail -n 40 <log>), never the whole log. Read the run's reflection.md or pr.md in the worktree only when a hand-off note needs it.

Then run loops backlog sync. It picks up new issues and issues the human gave back, and prints the open PRs against the cap. Then go to step 2, which starts only what that sync leaves room for.

4. Findings and the human

Lanes record findings, and loops backlog work files them, deduplicated and assigned to the human (BACKLOG §5). When the user mentions a problem you noticed yourself across lanes (the same failure in several issues, a flaky check in the base branch), file it once with:

loops backlog file --title "<one line>" --body-file <file in the scratchpad> [--from <n>]

Write the body to a file. Never pass model-written text as an inline argument.

5. Stop or keep watching

When no lane is running and step 2 starts none, the session ends its stretch for one of three reasons: the queue is empty, the open-PR cap is reached (issues wait for merges), or --max lanes have started. Then:

  1. loops backlog clean removes the worktrees of finished lanes: every earlier lane of each issue, and the last lane of done and skipped issues. The last lane of a failed or handed-off issue stays for the human (--all removes it too, only when the user asks).
  2. Give the user a summary of at most 10 lines. Say which of the three reasons stopped it. From loops backlog status: PRs opened (with links), issues handed off and why (one line each), findings filed, issues still queued or skipped, and the lane logs directory. At the cap, say how many PRs must be merged or closed before lanes resume.
  3. Under --watch, or when the user asked to keep going ("continuously", "keep watching"), do not stop (except at --max). Schedule a wake-up about 30 minutes out (on Claude Code, ScheduleWakeup with this skill's arguments, or /loop). On each wake-up run loops backlog sync, then step 2. On a platform with no wake-up, hand the watching to loops backlog run --wait as step 6 says. Otherwise end here.

6. Unattended stretches and other platforms

A session that may close (a laptop lid, a long weekend) should not supervise many hours of lanes. Tell the user once, when the queue is over ~20 issues, that loops backlog run (BACKLOG §8) is the same loop without an agent. They can start it under nohup or tmux with --wait 30m, so it keeps watching (at the open-PR cap and on an empty queue) until they stop it, and come back to /loops:backlog for judgment on the hand-offs. On a platform without background commands, run loops backlog run --max <k> in the foreground, where k is the lanes setting, or under --max N the smaller of that and N minus the lanes started so far (stop at 0). Repeat it while sync shows issues queued and room under the cap, relaying its output. Under --watch, a foreground command cannot keep watching for hours: tell the user to start loops backlog run --wait 30m under nohup or tmux themselves, with --max <N minus the lanes started so far> when the user gave --max (none left: do not start it). It keeps watching at the cap and on an empty queue until stopped or --max is reached.

Escalations

  • A lane that runs past its timeout is stopped by loops backlog work itself and counts as a failed attempt.
  • loops backlog finish <n> --status skipped --note "<why>" sets an issue aside when the user says so. --status queued (with --force once its attempts are spent) gives it another lane.
  • If the user says stop: do not start new lanes. Running lanes finish on their own. To stop one now, stop its background task (TaskStop): it stops loops backlog work and its agent with everything the agent started. Then run loops backlog sync: it records the attempt and removes the claim label when the lane had no time to. A loops backlog work killed outright by anything else (SIGKILL) may leave its agent running; the issue stays running until it ends, so tell the user to check for it.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.