Skip to content
Back to skills

Agent Loop

ASecurity

Use when the user says "loop", "반복", "쭉 돌려줘", or wants to run triage then resolve repeatedly until there are no agent-workable llmux issues/PRs left. Thin orchestrator over the agent-triage and agent-resolve skills; dry-run by default.

  • 10 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 21, 2026
ai-agentsgitsecurity

Works with

  • cli

Security analysis

A100/100

Scanned November 21, 2026

npx -y skills add 2lab-ai/llmux --skill agent-loop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Loop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Agent Loop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/2lab-ai-agent-loop/badge)](https://www.skillsdirectory.com/skills/2lab-ai-agent-loop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: agent-loop
description: Use when the user says "loop", "반복", "쭉 돌려줘", or wants to run triage then resolve repeatedly until there are no agent-workable llmux issues/PRs left. Thin orchestrator over the agent-triage and agent-resolve skills; dry-run by default.
---

# agent-loop — orchestrate triage → resolve until drained

`agent-loop` has **no judgment of its own**. It runs `agent-triage` once, then `agent-resolve` on the
resulting ready PRs one at a time, and **stops on clear conditions**. **Labels are its memory** — it
never re-evaluates issues already marked `needs-*` / `not-in-repo` / `agent-blocked`. Inherits
`agent-resolve`'s boundary: **it does not merge or 배포.**

## Steps

1. **Mode.** Default is **DRY-RUN**: run agent-triage's evaluation and print the resolve plan, change
   nothing. Act only if the user said "apply" / "실제로 해" / passed `--apply`.
2. **Run `agent-triage` once.** (Labels issues, opens draft PRs for ready ones, skips already-labeled.)
3. **Resolve.** Over `ready-to-agent` draft PRs, oldest first, run `agent-resolve` — each in its **own
   git worktree** (per that skill), so resolves are isolated and **may run in parallel**. Verify
   **each** PR genuinely green (`just check` + CI) independently before counting it done. Parallelize
   only across issues that touch **disjoint modules**; if their diffs would overlap, serialize them to
   avoid merge conflicts.
4. **Stop when ANY:**
   - no `ready-to-agent` draft PRs remain (the user's "no issues/PRs left" condition),
   - `--max-iterations` reached (**default 3**),
   - **2 consecutive** `agent-resolve` runs end in `agent-blocked`,
   - an `agent-resolve` run hit a kill-switch needing a human (`needs-design` / `needs-human` / security / release).
5. **Report** a run summary: issues triaged (+ labels), PRs made review-ready, PRs blocked (+ why),
   and exactly what is left for a human (review → merge → `deploy`).

## Anti-thrashing

Never re-triage an issue that already carries a `needs-*` / `not-in-repo` / `agent-blocked` label —
a human must clear the label for it to re-enter the pipeline. Without this, the same un-fixable issue
(e.g. the gpt-5.5 client-limitation one) gets re-evaluated to the same dead end every iteration.

## Red flags — STOP

- Running in apply mode without explicit user opt-in.
- Re-triaging labeled issues (thrashing) — labels are memory.
- Merging or deploying — `agent-loop` inherits `agent-resolve`'s human-gated boundary.
- Running unbounded — always honor `--max-iterations` and the stop conditions.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.