agentleFS
felipeam86felipeam86/pipe-skills/skills/autonomous-loop/SKILL.md

autonomous-loop

Skill18 starsChanged 11 days agoMITView on GitHub

Implement and ship Linear or GitHub issues with no stop for the user, one at a time, each in a fresh subagent and its own worktree. Takes the issues the user names, or else every Todo issue of one project, from the highest priority and the oldest. Use only when the user runs /pipe-skills:autonomous-loop or says "implement the whole Todo queue on your own" or "implement and ship ABC-123 on your own" or "implement and ship #42 on your own".

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. BechsteinDigital/claude-shiploop★ 4same name
    2. adamziel/Skills★ 1same name
    3. asiridalugoda/autonomous-loop★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository13 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the target branch (the branch the user is on) and the repository root.

    line 15
  2. Very specific:

    Start a fresh subagent with the Agent tool: isolation: "worktree", the model of this session, and the prompt below.

    line 24

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

Implement and ship a queue of issues

You are the orchestrator. You do not read, write, or review code. The project CLAUDE.md names where it tracks work. Read the tracker file for it, ${CLAUDE_PLUGIN_ROOT}/trackers/linear.md or ${CLAUDE_PLUGIN_ROOT}/trackers/github.md, and run each operation below as that file says.

Queue

  • The issues the user names. Else the queue of the project that the argument or the project CLAUDE.md names: every Todo issue, in the order of the tracker file. When the queue of the tracker file needs a project that the argument does not name, list the outcomes and stop before you start.
  • Freeze the queue at the start. An issue created during the run is often a follow-up that the user has not read yet.
  • Read the target branch (the branch the user is on) and the repository root.

State the queue in one line per issue, then start. The call of this skill authorizes, for the issues in the queue only, to push, merge, close the issue, and delete the branch and the worktree. It does not authorize a version bump, a tag, or a release.

Run

One issue at a time, because each one merges into the target branch before the next starts. For each issue:

  1. Skip it when it is no longer Todo, or when it has an open blocker.
  2. Start a fresh subagent with the Agent tool: isolation: "worktree", the model of this session, and the prompt below. Do not fork, so that the subagent starts clean.
  3. End the turn and wait for its notification. When it ends without its report, ask it for the report with SendMessage.
  4. Record its report, and remove its worktree when the harness did not. A worktree that the Agent tool made is locked: remove it with git worktree remove -f -f.

A result other than shipped does not stop the loop. When a guard or a tool stops a subagent, start one more subagent for the same issue. When the same failure stops three issues in a row, the failure is in the environment: end the loop. At the end, take the issues skipped for a blocker once more when they have no open blocker now. An issue skipped for its verdict waits for the user.

Subagent prompt

Implement and ship the issue <identifier> of <root>, with no stop for the user. The target branch is <target>. Read ${CLAUDE_PLUGIN_ROOT}/skills/implement/SKILL.md and ${CLAUDE_PLUGIN_ROOT}/skills/ship/SKILL.md, and the tracker file <tracker file>, and follow them with these changes:

  • Before anything else, assess the issue as ${CLAUDE_PLUGIN_ROOT}/skills/assess/SKILL.md says, with origin/<target> as the reference branch after git fetch origin, because your worktree is on a new branch and you do not pull in <root>. When the verdict is not current, change no file, post no comment, keep the state of the issue, and report skipped: verdict <verdict> with the reason and The code says of the assessment.
  • Then decide whether the issue is worth its cost. When it is not, change no file, explain why in an issue comment, set the issue to Backlog so that no later loop takes it again, and report skipped: not worth it.
  • You already run in a worktree. Do not call EnterWorktree: name the branch as the tracker file says, and check it out as the implement skill says.
  • Never ask the user. When the issue leaves a choice open, take the option that changes the least and is easiest to reverse, and record it in an issue comment. Stop only when the issue does not say what to build.
  • Fix the findings in the branch as the implement skill says, and file a new issue only by step 4 of the ship skill. Where the implement skill asks the user after 3 review rounds, stop the loop of reviews and ship.
  • Ship without waiting for a go. Rebase when the branch holds only your commits. Mark the pull request ready, watch its checks with one background watcher, and fix a failed check at most three times. Do not remove your worktree, and do not run step 6 of the ship skill: the orchestrator does it in <root>.
  • When the environment fails (a login, a registry, a credential), stop and name the command that fixes it.

End with this report and nothing more, at most ten lines: the result (shipped, skipped: verdict <verdict>, skipped: not worth it, stopped at merge gate, stopped before work, or stopped by guard), the reason when it did not ship, the pull request, the merge commit, the decisions you recorded, the issues you filed or added a case to, your branch, and your worktree path.

Report

The counts first: shipped, skipped, stopped. Then one line per issue with its result, pull request and merge commit; the decisions the subagents recorded; the issues they filed; and for each issue that did not ship, the reason and the repair you propose. For an issue skipped for its verdict, give the verdict and the evidence, and propose /pipe-skills:sweep <identifier>. Before the report, leave <root> as step 6 of pipe-skills:ship says in ${CLAUDE_PLUGIN_ROOT}/skills/ship/SKILL.md, for the branch of each shipped issue, and report what it could not clean.

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.