Apply when writing any loop, retry, or watch cycle. Declare the cap with the loop and make hitting it a loud, terminal, reported outcome — never silent grinding. Size budgets are the output-side instance.
Scanned 9/2/2026
Install to Claude Code
npx -y skills add bostonaholic/team --skill principle-bounded-loops --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Principle Bounded Loops?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/bostonaholic-principle-bounded-loops)More formats (shields.io, HTML) on the badges page.
---
name: principle-bounded-loops
description: "Apply when writing any loop, retry, or watch cycle. Declare the cap with the loop and make hitting it a loud, terminal, reported outcome — never silent grinding. Size budgets are the output-side instance."
user-invocable: false
---
# Bounded Loops
Every loop carries a declared cap, and hitting the cap is a defined,
loud, terminal outcome: halt and hand the work back with the full
unresolved state. A loop with no declared end is its own failure mode.
**Why:** A loop that cannot converge must not discover that by running
forever. The cap converts "stuck" from an invisible state into a reported
one, at a bounded and pre-agreed cost.
**Pattern:**
- Declare the bound with the loop: watch cycles, retries, poll budgets,
helpers in flight.
- Hitting the cap halts terminally: report everything unresolved. Never
silently restart, extend, or soften the exit criteria to escape.
- A retry budget is small and stated ("retry once, then halt loudly").
- A loop that ends on a verdict rather than a count is already bounded:
the verdict is the bound. Declare that terminal condition, and then
never supply a count the loop deliberately omits — the missing number
is the design, not a gap for a reader to fill. The operator who can
stop the run is the outer bound. Team's two review loops are this
case: DESIGN ends on the reviewer's verdict, IMPLEMENT ends when no
Blocking or Major finding is left, and neither takes a round cap.
## Size budgets
The same rule bounds output. Artifacts and replies carry size targets —
a ~200-line design, a ≤ 30-line helper reply, a byte-capped prompt.
Over budget means restructure: drop whole units and name what you
dropped. Never silent truncation.
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!