/dev-flow-skills:autoloopfrom Dev Flow Skills
Work through a backlog file with no human in the loop — each iteration picks the next task from `.autoloop/backlog.md`, gates it with `worth-it`, settles the design by self-grilling, trims it with `prune`, implements it red → green on an `autoloop/<slug>` branch, self-reviews with `layered-review`, and opens a PR. Never merges. Tasks it should not or cannot do are marked skipped or blocked with the reason, so the human's only jobs are adding tasks, answering blocked questions, and merging PRs. Designed to be driven by `/loop /autoloop` (self-paced; schedules its own next wakeup and stops when the backlog is drained or a guardrail trips). Use when the user wants an autonomous / unattended / hands-off dev loop, "放置で回す", "自律ループ", "バックログを消化して", or invokes `/autoloop`. Requires `git`, a pushable remote, and an authenticated `gh` CLI.
Ships in Dev Flow Skills. 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.
Run the dev flow of this repository — worth-it → grilling → prune → implement → layered-review → PR — one backlog task per iteration, with nobody answering questions.
A single /autoloop does one iteration. /loop /autoloop repeats it until the backlog is empty or a guardrail stops it.
The human does three things, all asynchronously:
- [ ] lines to the backlog,[!] blocked questions (edit the note, flip it back to [ ]),Everything else is this skill's job. Where a neighbouring skill says "ask the user and wait", this skill decides with the recommended answer or blocks the task — it never waits for input.
Default path: .autoloop/backlog.md at the repository root. /autoloop <path> overrides it. The .autoloop/ directory must be ignored by git (add .autoloop/ to .gitignore or .git/info/exclude) so that its state survives branch switches and never lands in a commit. If it is tracked, stop and say so.
Format — one task per top-level checkbox line; indented lines under it are notes for that task:
- [ ] Add a header row to the CSV export
- exporter lives in src/export.ts
- [~] Improve the login error message (autoloop/login-error-message, 2026-09-30)
- [x] Fix typo in README → https://github.com/o/r/pull/12
- [-] Theme switcher in settings worth-it: Later — one request, no repeat
- [!] Raise the plan limit needs decision: 100 or 500?
| mark | meaning | set by |
|---|---|---|
[ ] | todo | human |
[~] | in progress (branch, date) | autoloop, at pick-up |
[x] | PR opened (URL) | autoloop |
[-] | skipped by worth-it (verdict + one-line reason) | autoloop |
[!] | blocked — needs a human (the exact question or failure) | autoloop |
Autoloop edits only the mark and the trailing annotation of the task line it is working on. It never rewrites, reorders, or deletes task text or notes, and never adds tasks.
Iteration outcomes are also appended to .autoloop/log.md:
## 2026-09-30 14:02 — Add a header row to the CSV export
- worth-it: Build (high) — two support tickets quote the missing header
- decisions: header names = column keys (matches the JSON export)
- tests: red (1 failing) → green (all 14 pass)
- review: 1 Layer-2 finding fixed; no Layer-1 findings
- result: [x] https://github.com/o/r/pull/31
Check all of these. On any failure: do not pick a task, append the reason to the log, and stop the loop (see step 9).
git status --porcelain ignoring .autoloop/) and on the default branch (gh repo view --json defaultBranchRef or git symbolic-ref refs/remotes/origin/HEAD); git pull --ff-only succeeds.autoloop/ is git-ignored[~] — a leftover [~] means a previous iteration died mid-task; a human must look at it (mention the branch)gh auth status passesTake the first [ ] line. If there is none, the backlog is drained: log it and stop the loop.
Choose a branch name autoloop/<slug> (kebab-case, ≤ 40 chars, from the task text; add -2 etc. if it exists locally or on the remote). Mark the line [~] with the branch and today's date before doing anything else — this is the lock.
worth-it, unattendedRun the worth-it procedure on the task text and its notes, researching facts yourself (code, git log, tests) exactly as that skill says. Then act on the verdict instead of waiting:
| verdict | action |
|---|---|
| Don't / Already covered / Later | mark [-] with worth-it: <verdict> — <one line>; go to step 8 |
| Smaller | continue with the smaller move as the task (record it in the log) |
| Build | continue |
If the verdict hinges on a fact only a human knows (e.g. "is anyone actually hurt by this?" with no evidence either way in the repo), mark [!] with that question instead of guessing.
Walk the decision tree the way grilling does, but answer each question yourself:
[!] with the question and your recommended answer, go to step 8.Keep the result as a short plan: files to touch, behaviour to change, tests to add.
pruneApply prune to the plan. Cut everything labelled speculative or ornamental; keep required and load-bearing. Do not reintroduce cuts later.
On a fresh branch from the up-to-date default branch (git switch -c autoloop/<slug>):
[!] "no runnable tests for " and go to step 8.[!] with the failing output summary, go to step 8 (the branch stays local and unpushed for a human to inspect).layered-review --diffRun layered-review against the branch's diff to the default branch. Fix findings and re-run the tests; at most two review → fix rounds.
[!] instead of [x], quoting the finding.git push -u origin autoloop/<slug>gh pr create --base <default> --head autoloop/<slug> with a body containing: the task line, the worth-it verdict, decisions taken in step 3, what was cut in step 4, test evidence (red → green), and review notes. Add the label autoloop if the repository has it.[x] → <PR URL>.[!] with the error (the branch name is already on the line); do not retry in a loop.git switch <default> — always return to the default branch, whatever happened..autoloop/log.md.[!] for a failure (tests, push, PR, review), else reset to 0. A [!] for a human decision is not a failure.Stop when any holds: backlog has no [ ]; 5 tasks processed in this /loop run; 2 consecutive failures; preflight failed.
/loop (dynamic mode): to continue, call ScheduleWakeup with delaySeconds: 60, the /loop input passed back verbatim as prompt, and a reason naming the next task; to stop, call ScheduleWakeup with stop: true.Counters live in the log: count this run's iterations from the ## entries since the last # run <timestamp> header, which you write on the first iteration of a /loop run (i.e. when the loop was just started, not woken up).
End every iteration with a three-line report: task → outcome (mark + URL/reason), what is next, whether the loop continues.
prune is for). Unrelated problems you notice go into the log as a suggestion, not into the backlog.echo .autoloop/ >> .git/info/exclude (or add it to .gitignore) and write .autoloop/backlog.md.git, gh pr create, the test runner — via auto mode or a permissions.allow list in .claude/settings.json. Anything still prompting will stall the loop at that step./loop /autoloop. Watch .autoloop/log.md; answer [!] lines; merge PRs. Start /loop /autoloop again whenever you've added tasks or cleared a stop.autoloop does not duplicate the neighbours; it chains them and replaces every "ask the user" with decide by recommendation or block with the question:
worth-it — whether (step 2)grilling — how (step 3)prune — how little (step 4)layered-review — is it right (step 6)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mitubaex/dev-flow-skills --plugin dev-flow-skillsOther plugins' skills for the same job
7 skills in this plugin
/grillingGrill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases./grill-meA relentless interview to sharpen a plan or design./layered-reviewReview a single PR (or a local diff / branch) using a top-down three-layer method — (1) production-impact check (feature-flag gating, dead references), (2) chunk-level comprehension check (SOLID / DRY / YAGNI at the "does this shape make sense" altitude, not line-by-line), (3) surface check (shallow methods, patterns foreign to this repository). Use when the user wants to review a specific PR carefully, self-review their own working-tree change before pushing, or apply a consistent review discipline. Complements `smelly-prs` — that skill triages many merged PRs; this skill goes deep on one change. Read-only by default; never pushes, comments, or edits. Requires `gh` CLI when reviewing a remote PR. Invoke as `/layered-review <PR-url|PR-number|--diff>`.