circuit-breaker

circuit-breaker is a skill for Claude Code, Codex from Pixel-Process-UG/superkit-agents. It costs 43 tokens per session (2,743 once invoked), scanned C, original, MIT.

A safety mechanism for repeated or autonomous development loops. It monitors stagnation and rate limits, protects configuration files, and uses cooldowns when work needs to pause.

In plain words
What is it for?
Use it to control repeated automated operations and stop or recover loops that are stuck or exceeding safe limits.
Why use it?
It reduces the risk of infinite loops, wasted resources, API-limit problems, and accidental configuration damage during unattended work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Good fit Use it to control repeated automated operations and stop or recover loops that are stuck or exceeding safe limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pixel-process-ug/superkit-agents/circuit-breaker
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Pixel-Process-UG/superkit-agents --skill circuit-breaker
Clone the repo
git clone --depth 1 https://github.com/Pixel-Process-UG/superkit-agents

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for circuit-breaker

README.md
[![agentmods](https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/circuit-breaker/github.svg)](https://agentmods.dev/skills/pixel-process-ug/superkit-agents/circuit-breaker)
Your own site
<a href="https://agentmods.dev/skills/pixel-process-ug/superkit-agents/circuit-breaker"><img src="https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/circuit-breaker/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for circuit-breaker

Your own site · 80×15
<a href="https://agentmods.dev/skills/pixel-process-ug/superkit-agents/circuit-breaker"><img src="https://agentmods.dev/badge/skills/pixel-process-ug/superkit-agents/circuit-breaker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,743 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02743
Opus 5.5 $0.00017 $0.01097
Sonnet 5.5 $0.00009 $0.00549
Haiku 4.5 $0.00004 $0.00274

Measured 1mo ago against content hash c62e61190665, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

circuit-breaker scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| Restricted commands | Block `git clean`, `git rm` on protected paths, `rm -rf` on config dirs | When command targets protected path |
templates/skills/circuit-breaker/SKILL.md · 271 lines

How it starts

The opening of the file, as written. The whole thing — 271 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

The circuit-breaker skill is a safety mechanism that prevents infinite loops, resource exhaustion, and accidental destruction during autonomous development. It operates at the loop level (complementing resilient-execution which operates at the task level). Without circuit-breaker protection, autonomous loops can waste hours on stagnant problems, exhaust API limits, or accidentally destroy configuration files. This skill enforces hard boundaries that keep autonomous operations productive and safe.

Announce at start: "Circuit breaker is active — monitoring for stagnation, rate limits, and file protection."


Phase 1: Circuit State Check

Before each loop iteration, check the current circuit state:

+-----------+     threshold     +-----------+     cooldown     +------------+
|  CLOSED   |----exceeded----->|   OPEN    |----elapsed------>| HALF-OPEN  |
|  (normal) |                  |  (halted) |                  |  (probe)   |
+-----------+                  +-----------+                  +-----+------+
     ^                                                              |
     |                          success                             |
     +--------------------------------------------------------------+
     |                          failure                             |
     |                    +-----------+                              |
     +--------------------+   OPEN    |<----------------------------+
                          +-----------+
State Meaning Action
CLOSED Normal operation Execute iteration, monitor all thresholds
OPEN Halted due to threshold breach Report status, wait for cooldown, or escalate
HALF-OPEN Probing after cooldown Allow ONE iteration. If success: close. If failure: re-open.

STOP: Check circuit state BEFORE executing any loop iteration. Do NOT execute if circuit is OPEN.


Phase 2: Stagnation Detection

Read the full file on GitHub · 271 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 271 lines · 43 tokens per session scan C c62e61190665

Subscribe to this mod's changes

circuit-breaker is a skill published in the GitHub repository Pixel-Process-UG/superkit-agents (3 stars, last pushed 7mo ago), licensed MIT. It adds 43 tokens to every session and 2,743 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

planning-with-files

Persistent file-based planning for multi-step AI-agent work. Keeps taskplan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and…

mxyhi/ok-skills · 117 tokens

slack-messaging

Use when writing, drafting, scheduling, or improving a Slack message, announcement, or reply sent via the Slack MCP tools (slacksendmessage, slacksendmessagedraft, slackschedulemessage). Covers Slack markdown formatting, message structure, thread etiquette, reactions, and scheduling, and points to the right dialect…

slackapi/slack-skills-plugin · 74 tokens

universal-email

Use the bundled Himalaya 2 CLI to connect IMAP/SMTP or Microsoft Graph mailboxes and list, search, read, compose, reply, forward, move, delete, flag, and download email. Use when the user asks to connect or operate Gmail, QQ Mail, iCloud Mail, Outlook, or another standard mailbox, or says…

marswaveai/skills · 103 tokens

google-calendar

A command-line tool for managing Google Calendar. It can read calendars and agendas and create, update, or delete events.

marswaveai/skills · 78 tokens

himalaya

A command-line email client for managing messages in a terminal through IMAP and SMTP, the standard protocols for receiving and sending email. It supports listing, reading, writing, replying to, forwarding, searching, and organizing mail across multiple accounts.

agentscope-ai/skills · 66 tokens

icloud-calendar

A tool for viewing and managing events in Apple iCloud calendars. It can list calendars and read, create, update, or delete events.

marswaveai/skills · 67 tokens