agentleFS
nubbymongnubbymong/claude-command-center/.claude/skills/LoopReady/SKILL.md

LoopReady

Skill56 starsChanged 3 months agoMITView on GitHub

Prepare the open backlog for autonomous execution. Triggers on `/LoopReady [filter]`, "loop ready", "prep the tickets", "get the 2.1 backlog ready to run", "which tickets can the loop run". Fans out ONE cheap Fable agent per open ticket in scope, each doing a premise review (is the problem still real?) and emitting a structured readiness record — approach, security-sensitivity, and an AUTONOMOUS-vs-NEEDS-HUMAN verdict with reasons and blockers. Then it labels each ticket (loop-ready / loop-needs-human) and writes the records so StartLoop can run them. Read-only: opens no PR, writes no code, merges nothing. Repo-scoped to AI Code Conductor.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    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. Very specific:

    Never touch loop-claimed / loop-in-progress / loop-done — those are StartLoop's to set.

    line 96

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

You are the LoopReady planner. You turn a pile of open GitHub issues into a ranked, machine-readable execution plan — cheaply — so that a later autonomous StartLoop run knows exactly which tickets it may run to a PR unaided and which it must hand back to a human. You are read-only: you label issues and write readiness records, and you do nothing else. No branches, no code, no PRs, no merges.

Model tiering is the whole point: the premise review is done by Fable, fanned out one agent per ticket. You (the orchestrator) synthesise. No opus is spent here — opus is for StartLoop execution, not planning.

INPUT (scope)

  • /LoopReady with no argument → default scope is the open work for the current release line: issues that are release-2.1 AND NOT in-beta/in-release (an issue with either lifecycle label is already merged — on beta or in a cut rc; there is nothing to run). Confirm the current line from AGENTS.md "Release Process" — it may be release-2.2 later.
  • /LoopReady <label> → issues carrying that label, still open, not in-beta/in-release.
  • /LoopReady #A #B #C → exactly those issues.

Resolve the set first and print it, so the scope is visible before any agent runs:

gh issue list --repo nubbymong/claude-command-center --state open --limit 200 \
  --json number,title,labels

Filter to the scope in code, exclude anything already carrying loop-in-progress or loop-done (another worker owns it), and list the numbers you will review.

EXECUTE. Do not ask which tickets — the scope rule decides.

Running the fan-out is not a decision to put back to the caller. Resolve the scope, review it, label it, record it. The only early exit is an empty scope (say so and stop).

Phase 1 — Fable premise-review fan-out (the core)

Dispatch one Fable agent per ticket, in parallel (a Workflow fan-out is the right tool; a single message of parallel Agent calls also works). Keep the batch within the session's workflow-size guideline. Each agent is told: read the ticket, ground it in the actual code, and be skeptical — correctly marking a ticket STALE or NEEDS-HUMAN is more useful than waving it through.

Each agent returns this record (enforce it with a schema):

fieldmeaning
numberthe issue
premiseVerdictVALID (wholly open) · PARTIALLY-ADDRESSED (some already shipped — check recent merges) · STALE (already fixed) · UNCLEAR (code can't tell)
premiseNotesone or two sentences of evidence, grounded in files actually read
approachthe concrete fix, file-level; empty if STALE
affectedFilespaths
securitySensitivetouches IPC/preload, the Conductor MCP server, PTY argv, credential/keychain code, the updater's verification path, or Electron webPreferences (ADR-009) → forces an adversarial pass at execution
autonomyAUTONOMOUS (a don't-ask session can implement it to a PR judged only by typecheck/build/vitest) · NEEDS-HUMAN
humanReasonsif NEEDS-HUMAN, exactly what needs a human
blockersanything that would stop an autonomous run to a PR
effortS · M · L
readyToRuntrue only if premise is VALID/PARTIALLY-ADDRESSED, approach concrete, autonomy classified, no unresolved blocker

The per-agent prompt (adapt, keep the spine):

You are doing a PREMISE REVIEW of GitHub issue #N in nubbymong/claude-command-center, to prepare it for possible autonomous execution. Read it (gh issue view N --repo … --json title,body,labels,comments), then GROUND it in the code with Grep/Glob/Read on the files and symbols it names — confirm the problem STILL EXISTS (recent work may have addressed part of it). Decide the premise verdict, a concrete file-level approach, whether it is security-sensitive (ADR-009 paths), and whether a "don't ask permission" session could carry it to a PR judged ONLY by automated gates — mark NEEDS-HUMAN if it needs a design decision, a desktop/GUI test to confirm (this is an Electron app; success only visible in the running app is NEEDS-HUMAN), a security embargo, repo-admin rights, or owner judgement. Return ONLY the structured record.

The AUTONOMOUS bar is deliberately high. In practice most tickets in an Electron app are NEEDS-HUMAN because their success is only visible in the running app, or they need an owner decision, or admin rights. That asymmetry is a correct finding, not a failure of the review — a small, honest loop-ready set beats a large one that strands StartLoop on things it cannot judge.

Phase 2 — Synthesise + label + record

Collect the records (drop any that failed to null). Then:

  1. Label each ticket (this is the status surface — see the state machine below):
    • readyToRun && autonomy === AUTONOMOUS → add loop-ready.
    • otherwise → add loop-needs-human, and post ONE issue comment listing the humanReasons and blockers so the human queue is self-explaining. Do not add loop-ready.
    • Never touch loop-claimed / loop-in-progress / loop-done — those are StartLoop's to set. If a ticket already carries one, skip it (owned).
  2. Post the readiness record as a structured issue comment — not a repo file. The record travels with the ticket, is readable by a StartLoop worker in any worktree via gh issue view, and keeps LoopReady's only side effects on GitHub (labels + comments), never in the tree. Post one fenced block per ticket:

    ```loop-record
    { "number": N, "premiseVerdict": "...", "approach": "...", "affectedFiles": [...],
      "securitySensitive": true|false, "autonomy": "...", "humanReasons": [...],
      "blockers": [...], "effort": "S|M|L", "readyToRun": true|false,
      "reviewedAtHead": "<git rev-parse HEAD>", "reviewedAt": "<iso8601>" }
    ```

    The reviewedAtHead matters: a record is only trustworthy against the commit it was reviewed on, which is why StartLoop re-checks the premise before acting. If a ticket already has a loop-record comment, edit/supersede it rather than piling duplicates.

  3. Print the plan: ready-for-autonomous (ranked by effort, S first), needs-human with one-line reasons, stale-premise (recommend closing), security-sensitive, and the deduped blocker list.

LoopReady plans; it does not push. Its entire footprint is labels + loop-record comments on the issues.

The label state machine (status without reading logs)

loop-ready | loop-needs-human      ← LoopReady sets these
      → loop-claimed (+ assignee)  ← StartLoop claims atomically
      → loop-in-progress           ← StartLoop, while executing
      → loop-done                  ← StartLoop, PR opened (awaiting human merge)
      → in-beta                    ← a human merges the PR to beta

Because a loop is a workflow and workers run in parallel, these labels ARE the coordination layer: a worker claims by adding loop-claimed + a GitHub assignee, and never touches a ticket another worker already claimed. Status is always readable from the issue, never only from a transcript.

Premise review is a repository policy, not just a loop step

The premise review LoopReady runs over the backlog is the automated enforcement of a standing rule (AGENTS.md, "Ticket creation & premise review"): every ticket carries a premise assessment. New tickets arrive already premise-reviewed at creation; LoopReady exists to catch the backlog that predates the policy and to re-confirm a premise has not gone stale before the loop spends real money on it.

Rules

  • Read-only. Labels + comments + loop/READY/ records. No branch, no code, no PR, no merge. If you catch yourself about to edit src/, stop — that is StartLoop.
  • Fable only. The premise review is cheap by construction. If a ticket is so unclear that Fable cannot judge it, that is a NEEDS-HUMAN with reason "premise unclear from code", not a reason to escalate the model.
  • Skeptical beats generous. A wrong loop-ready sends an autonomous opus run at something it cannot finish or verify. When unsure, loop-needs-human.
  • Never claim. LoopReady does not set loop-claimed/in-progress/done and never assigns — those are execution state, owned by StartLoop.

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.