loop-breaker

Official

Stop Cloudflare Worker recursion and loops.

Authorlittlebearapps
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Protect Cloudflare Workers from self-recursion and runaway loops that can balloon costs and cause denial-of-wallet scenarios.

Core Features & Use Cases

  • Recursion Depth Middleware to cap nested fetches and worker calls.
  • createRecursionHeaders to propagate loop depth across outbound requests.
  • Durable Object Loop Protection to avoid long-lived timers and unnecessary billing.
  • Queue- and service-bindings aware patterns for safe inter-workflow communications.

Quick Start

Install the skill and apply the recursionGuard middleware to your app, then use createRecursionHeaders for outbound calls.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: loop-breaker
Download link: https://github.com/littlebearapps/cloudflare-engineer/archive/main.zip#loop-breaker

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.