Circuit Breaker
This "Circuit Breaker" skill automatically pauses a conversation if it detects frustration or unproductive exchanges, improving user experience and preventing lengthy dead ends.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add circuit-breaker npx -- -y @trustedskills/circuit-breaker
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"circuit-breaker": {
"command": "npx",
"args": [
"-y",
"@trustedskills/circuit-breaker"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The circuit-breaker skill provides a mechanism to temporarily halt an AI agent's actions based on defined conditions. It prevents potentially harmful or undesirable sequences from continuing, allowing for recovery and reevaluation. This is useful when the agent encounters unexpected situations or errors that require intervention.
When to use it
- Error Handling: Stop execution if the agent repeatedly fails at a task (e.g., consistently incorrect API calls).
- Safety Protocols: Pause actions if the agent detects conditions that could lead to unsafe outcomes in a simulated environment.
- Resource Management: Halt processes when resources are critically low, preventing system overload.
- Unexpected Input: Interrupt an ongoing task when encountering input outside of expected parameters.
Key capabilities
- Conditional halting: Ability to define rules for pausing agent execution.
- Temporary suspension: Actions are paused rather than permanently stopped.
- Recovery mechanism: Allows the agent to resume operations after a defined period or trigger.
Example prompts
- "Implement a circuit breaker that pauses if I receive an 'API Error 500' response more than twice in a row."
- "Add a safety circuit breaker that stops all actions if the simulated temperature exceeds 100 degrees Celsius."
- “Pause execution for 60 seconds if memory usage goes above 90%.”
Tips & gotchas
The effectiveness of this skill depends on accurately defining the conditions that trigger the pause. Incorrectly configured rules could lead to unnecessary interruptions or, conversely, fail to prevent harmful actions.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.