circuit-breaker

Implement a circuit breaker pattern with configurable thresholds and cooldown recovery.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Pixel-Process-UG/superkit-agents --skill circuit-breaker-pixel-process-ug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: circuit-breaker
Source: https://github.com/Pixel-Process-UG/superkit-agents/tree/main/templates/skills/circuit-breaker
Command: npx skills add https://github.com/Pixel-Process-UG/superkit-agents --skill circuit-breaker-pixel-process-ug

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents autonomous loops from getting stuck in infinite loops, wasting resources, or causing accidental data loss by enforcing rate limits, protecting critical files, and managing recovery with cooldown periods.

Core Features & Use Cases

  • Stagnation Detection: Identifies and halts loops that show no progress or repeat errors.
  • Rate Limiting: Enforces API call limits to prevent overuse.
  • File Protection: Prevents accidental deletion of critical configuration and project files.
  • Recovery Protocol: Manages cooldown periods and probes for recovery after a circuit break.
  • Use Case: When running an autonomous agent to refactor code, the circuit breaker will stop the agent if it gets stuck in a loop of fixing the same tests repeatedly or if it starts deleting important project configuration files.

Quick Start

Activate the circuit breaker skill to monitor and protect the current autonomous loop.

Frequently Asked Questions about circuit-breaker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I protect autonomous development loops from getting stuck in infinite cycles?

Autonomous loops are protected by implementing a circuit breaker pattern that detects stagnation and halts cycles showing no progress or repeated errors. This prevents resource exhaustion and accidental data corruption during automated tasks.

What is a circuit breaker pattern for managing API rate limits and error handling?

A circuit breaker pattern for API rate limits manages connection states across CLOSED, OPEN, and HALF-OPEN phases. It enforces configurable thresholds for error repetition and API limits, triggering a circuit break to halt operations when thresholds are exceeded.

How do I stop an autonomous agent from deleting critical project files during refactoring?

Stop autonomous agents from deleting critical files by activating file protection mechanisms within the circuit breaker. These safeguards prevent accidental deletion of important configuration and project assets during autonomous refactoring loops.

How does a circuit breaker recovery protocol work after an autonomous loop breaks?

A circuit breaker recovery protocol works by managing cooldown periods after a circuit breaks. Once the cooldown elapses, the system enters a HALF-OPEN state to probe for recovery and determine if the autonomous loop can safely resume operations.

Can I configure stagnation detection thresholds for autonomous loops?

Yes, you can configure stagnation detection thresholds for autonomous loops. The circuit breaker allows you to set specific limits for progress tracking, error repetition, and API rate limits to match your project's tolerance for stagnation.

Do I need any dependencies to run a circuit breaker for autonomous loop protection?

No dependencies are required to run this circuit breaker for autonomous loop protection. It operates independently to monitor progress, enforce rate limits, and manage recovery protocols without external packages.