Skip to content
Skills Library
Programming · Automation

repeat

/repeat

Run a stage a FIXED number of times — a bounded count loop (`for i in 1..N`). One iteration per turn; the Stop hook resumes the next across turns. For a loop with a semantic stop condition, use `/agentflow:until` (do…until) or `/agentflow:while` (while…do) instead. USE when the user says "do X N times", "run the suite 5 times", "retry 3 times", "regenerate twice".

Repository
agentflow ↗
Licence
Apache-2.0
Last repository change
24.07.2026

Assessment and security

95/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content30 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 24.07.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Run a stage a FIXED number of times — a bounded count loop (`for i in 1..N`). One iteration per turn; the Stop hook resumes the next across turns. For a loop with a semantic stop condition, use `/agentflow:until` (do…until) or `/agentflow:while` (while…do) instead. USE when the user says "do X N times", "run the suite 5 times", "retry 3 times", "regenerate twice".

Triggers from the description

do X N timesrun the suite 5 timesretry 3 timesregenerate twice

Arguments

/repeat --times N --stage "<bash command>
Original author description

Run a stage a FIXED number of times — a bounded count loop (`for i in 1..N`). One iteration per turn; the Stop hook resumes the next across turns. For a loop with a semantic stop condition, use `/agentflow:until` (do…until) or `/agentflow:while` (while…do) instead. USE when the user says "do X N times", "run the suite 5 times", "retry 3 times", "regenerate twice".

How it works

  1. Init
  2. Drive (one iteration per turn)
Original SKILL.md headings · 30 lines, 163 words
SKILL.md preview
---
name: repeat
user-invocable: false
description: |
  Run a stage a FIXED number of times — a bounded count loop (`for i in 1..N`). One iteration per turn; the Stop hook resumes the next across turns. For a loop with a semantic stop condition, use `/agentflow:until` (do…until) or `/agentflow:while` (while…do) instead.

  USE when the user says "do X N times", "run the suite 5 times", "retry 3 times", "regenerate twice".
allowed-tools: Bash, Read, Agent
argument-hint: --times N --stage "<bash command>"
---

# /agentflow:repeat — fixed-count loop

> **Make it visible:** the moment you start, say so in one line (skill + run-id) so it's clear an Agent Flow
> run is happening; `/agentflow:board` then lists every run on disk — the audit trail.

Engine: `iterate` (runs show as `cmd: iterate` in `/agentflow:inspect`). A repeat is an iterate with a
never-satisfied predicate, so it terminates only at `--times`.

## Init

```bash
node "${CLAUDE_PLUGIN_ROOT}/dist/state/iterate.js" init <run-id> \
  --stage "<command to run each time>" \
  --times <N>
```

(`--stage` takes a plain bash command; pass a JSON object only if you need extra fields.)

## Drive (one iteration per turn)

```bash
node "${CLAUDE_PLUGIN_ROOT}/dist/state/iterate.js" run-iteration <run-id>
```

Inspect the JSON: `action: "continue"` → end the turn (the Stop hook fires again next turn);
`action: "stop"` with `reason: "max_iterations"` → the N runs are done, surface the result. Each
iteration's stdout is captured; `ITER_INDEX` (0-based) and `ITER_PREV_OUTPUT_PATH` are in the env.
Stop early any time with `iterate.js kill <run-id>`.

Versions

The database has no other skills named repeat.

Database snapshot: 13.11.2026 · package version 51c5ae0de565 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95until
    Loop a stage and stop once a predicate is satisfied — `do … until (cond)`: the body runs FIRST, then the condition is checked. The loop always runs at least once. Full loop safety: hard cap on iterations, convergence detection (stops if output stops changing), and a clean kill…
  • 95while
    Loop a stage WHILE a predicate holds, checking the condition BEFORE each run — `while (cond) { body }`. If the condition is already false up front, the body never runs. Full loop safety: hard cap, convergence detection, kill switch. USE when the guard must be checked first —…
  • 100agentflow
    File logs, Git evidence and optional development. Triggered by godev/devlog/ag/agentflow/fast-lane/skip-ag.
  • 90godmode-loop-warden
    Bound an iterative fix-and-retry cycle before it starts and stop it when it stops making progress: audit the loop contract, declare the iteration cap and stop conditions, tick every iteration with its evidence, read the host transcript for repeating error signatures and…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.