Skip to content
Back to skills

Bounded Loops

ASecurity

Make any repeated or self-paced agent work safe — a written goal, a machine-checkable stop condition, a cap on attempts and time, a report after every round, and a clean way to interrupt.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 22, 2026
ai-agentsgo

Security analysis

A100/100

Scanned October 22, 2026

npx -y skills add gaurav8936/oneroof --skill bounded-loops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bounded Loops?

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

Security grade badge for Bounded Loops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gaurav8936-bounded-loops/badge)](https://www.skillsdirectory.com/skills/gaurav8936-bounded-loops)

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: bounded-loops
description: Make any repeated or self-paced agent work safe — a written goal, a machine-checkable stop condition, a cap on attempts and time, a report after every round, and a clean way to interrupt.
runtime: [shared]
triggers: [loop, keep trying, retry until, run until done, recurring task]
---

# bounded-loops — every loop knows how it ends

Before starting any loop (retry until green, poll a deploy, work through a list, a nightly job), write these five
lines at the top of the session or the job file:

```
GOAL:        what is true when we are done
CHECK:       the command or observation that proves it (exit 0, a count, a page)
LIMIT:       at most N rounds or T minutes, whichever comes first
EACH ROUND:  one line — round n, what changed, check result
ON LIMIT:    stop, list what was tried, ask (never "try something bigger")
```

## Rules

- **The check runs every round.** No round ends on "I think it works now".
- **Change one thing per round** so a result can be explained.
- **Same failure twice → change approach**, don't repeat the same attempt.
- **Never widen scope to escape a loop**: no deleting tests, loosening checks or skipping steps.
- **Waiting is not polling.** When waiting on something slow (a CI run, a deploy), check at the pace it changes, not
  every few seconds.
- **Interruptible.** A person can stop the loop at any round; the round log says exactly where it was.

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.

Comments

Loading comments…

Newsletter

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