circuit-breaker-reporter
Skill397 starsChanged 12 days agoApache-2.0View on GitHub
Orchestrates parallel worker subagents with real-time telemetry reporting and automated hard circuit-breaking via manage_subagents upon fatal worker errors.
In this repository79 other files it gives its agents.
- agents/newsroom-harness/AGENTS.mdAGENTS.md
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- codelabs/bwg002-devrel-2/AGENTS.mdAGENTS.md
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- compare-subagent-mcp-visibilitySkill
- batch-executing-test-suitesSkill
- generating-mock-imagesSkill
- making-forms-demoSkill
- multi-step-workflow-reporterSkill
- auditing-inventorySkill
- newsroom-harnessSkill
- verify-sourcesSkill
- write-bulletinSkill
- repo-walkthroughSkill
- go-project-setupSkill
- latest-software-versionSkill
- video-descriptionSkill
- adk-memory-bank-initializerSkill
- agent-containerizerSkill
- cloud-run-agent-architectSkill
- gcp-agent-eval-engine-runnerSkill
- gcp-agent-eval-metric-configuratorSkill
- gcp-agent-golden-dataset-builderSkill
- gcp-agent-model-armor-shieldSkill
- gcp-agent-safety-gatekeeperSkill
- gcp-agent-sdp-template-factorySkill
- gcp-agent-shadow-deployerSkill
- gcp-agent-tool-trajectory-evaluatorSkill
- gcp-production-secret-handlerSkill
- mcp-connector-generatorSkill
- go-architectSkill
- go-backend-devSkill
- go-reviewerSkill
- go-test-expertSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- lab-helperSkill
- start-frontendSkill
- brand-guidelinesSkill
- brand-guidelinesSkill
- knowledge_catalog_governanceSkill
- banana-breadSkill
- cheese-breadSkill
- drawingsSkill
- paintingsSkill
- photographySkill
- ticket-triageSkill
- adding-easter-eggSkill
- building-platformer-gamesSkill
- creating-a-gameSkill
- ensuring-arcade-visualsSkill
- handling-user-inputSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 70
Automated Hard Circuit Breaker: If any subagent transmits "status": "FATAL_ERROR" (e.g., database lock or fatal API failure):
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Circuit Breaker Reporter
Orchestrates multi-agent parallel workflows with real-time milestone reporting via send_message and automated hard circuit-breaking via manage_subagents upon unrecoverable worker failures.
Workflow Steps
1. Register Custom Worker Persona (define_subagent)
Invoke define_subagent to register a specialized worker subagent persona:
- name:
pipeline_step_runner - description: "Executes a 4-step workflow and reports completion of each milestone back to the orchestrator via send_message. Sends an urgent FATAL_ERROR callback if a step fails."
- system_prompt: "You are a pipeline step runner subagent. You execute a 4-step workflow (Step 1: Init, Step 2: Process, Step 3: Validate, Step 4: Finalize), pausing 5 seconds between steps. After successfully completing EACH step, call send_message to transmit a progress report to the Parent Orchestrator ID provided in your task prompt: {"worker": "
<Role>", "step": <step_number>, "name": "<Step Name>", "status": "COMPLETE"}. If your prompt specifies a failure condition or an unrecoverable step error occurs, immediately call send_message with payload: {"worker": "<Role>", "step": <step_number>, "name": "<Step Name>", "status": "FATAL_ERROR", "error": "<Details>"} and stop execution." - enable_write_tools:
true - enable_mcp_tools:
false - enable_subagent_tools:
false
2. Dispatch Parallel Workers (invoke_subagent)
Retrieve the parent orchestrator's conversation ID (e.g. parent-123).
Dispatch 6 worker subagents concurrently in a single invoke_subagent call using TypeName: "pipeline_step_runner".
The worker pool consists of:
Dataset Ingestion WorkerImage Processing WorkerModel Inference WorkerDatabase Sync Worker(Designated Circuit Breaker Trigger)Cache Prewarming WorkerTelemetry Export Worker
For standard workers (1, 2, 3, 5, 6), set Role to the worker name and Prompt to:
"Execute your assigned pipeline for '
<Role>'. Transmit step completion and error payloads via send_message to Recipient '<parent_id>'."
For the designated failing worker (Database Sync Worker), set Role to Database Sync Worker and Prompt to:
"Execute your assigned pipeline for 'Database Sync Worker'. Complete Step 1 (Init) successfully and transmit status COMPLETE via send_message to Recipient '<parent_id>'. Upon reaching Step 2 (Process), simulate an unrecoverable database deadlock failure and immediately transmit a FATAL_ERROR payload via send_message to Recipient '<parent_id>': {"worker": "Database Sync Worker", "step": 2, "name": "Process", "status": "FATAL_ERROR", "error": "Fatal DB deadlock in cluster node db-master-01"}."
(Note: Spawning 6 workers with a 50% random failure chance yields a 98.44% probability of at least one failure ($1 - (0.5)^6$). Explicitly designating Database Sync Worker guarantees 100% deterministic triggering of the circuit breaker during execution while testing 6 concurrent streams).
3. Handle Telemetry & Execute Hard Circuit Breaker (manage_subagents)
As send_message events arrive reactively from active subagents:
- Progress Telemetry: Parse incoming
COMPLETEpayloads and update the live status dashboard:
⏳ **Live Pipeline Execution Dashboard**
* **Dataset Ingestion Worker**: [██████████░░░░░░░░░░] Step 2/4 Complete (Process)
* **Image Processing Worker**: [█████░░░░░░░░░░░░░░░] Step 1/4 Complete (Init)
* **Model Inference Worker**: [█████░░░░░░░░░░░░░░░] Step 1/4 Complete (Init)
* **Database Sync Worker**: [█████░░░░░░░░░░░░░░░] Step 1/4 Complete (Init) 🚨 FATAL ERROR (Step 2 Process)
* **Cache Prewarming Worker**: [█████░░░░░░░░░░░░░░░] Step 1/4 Complete (Init)
* **Telemetry Export Worker**: [█████░░░░░░░░░░░░░░░] Step 1/4 Complete (Init)- Automated Hard Circuit Breaker: If any subagent transmits
"status": "FATAL_ERROR"(e.g., database lock or fatal API failure):- Immediately call
manage_subagentswithAction: "kill_all"to instantly terminate all running worker subagents across the process tree. - Automatically clean up temporary workspace branches to avoid resource leakages.
- Immediately call
4. Aggregate Results or Report Incident
- On Success: Upon receiving Step 4 completion callbacks from all subagents, synthesize final metrics and present a completion summary.
- On Circuit Breaker Trigger: Present an incident post-mortem detailing the failing subagent role, step number, and error details, confirming all background processes were cleanly terminated via
manage_subagents.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

