Token导航 LogoToken导航

Agent Skill · 开发

emergency-circuit(应急电路)

emergency-circuit 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

emergency-circuit 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 4,377。

总安装 8,397周安装 357GitHub Stars 公开资料未说明下载 2,942核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:emergency-circuit(应急电路)
来源仓库:https://github.com/zhenstaff/emergency-circuit
安装命令:
openclaw skills install emergency-circuit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install emergency-circuit

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

实时监控AI Agent以检测异常情况并通过自动紧急关闭来执行安全策略,以防止损坏和成本超支。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install emergency-circuit;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

emergency-circuit 怎么安装?

在终端执行 openclaw skills install emergency-circuit。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

emergency-circuit 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

emergency-circuit 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

emergency-circuit 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

emergency-circuit 用的人多吗?

公开数据是累计安装 8,397 次,近一周安装 357 次,下载 2,942 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

emergency-circuit 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
emergency-circuit

应急电路 · 本页

8,397—需要联网MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Emergency Circuit - SKILL Documentation

The Kill Switch for Rogue Agents | 失控 AI 代理的紧急断路器


English | 中文


<a name="english"></a>

🇬🇧 English

SKILL Name

emergency-circuit - AI Agent Safety Monitor

Category

AI Safety / Agent Monitoring / DevOps

Tagline

The Kill Switch for Rogue Agents

Description

Emergency Circuit is a production-ready safety system that monitors AI agents in real-time and provides emergency shutdown capabilities. It implements the circuit breaker pattern to automatically detect and halt runaway agents before they cause damage.

When to Use This SKILL

Use Emergency Circuit when you need to:

  • ✅ Monitor AI agents - Track resource usage, API calls, and costs
  • ✅ Enforce safety policies - Set hard limits on agent behavior
  • ✅ Prevent runaway costs - Auto-kill when budget exceeded
  • ✅ Detect anomalies - Identify suspicious behavioral patterns
  • ✅ Test safely - Sandbox mode for development
  • ✅ Production monitoring - Enterprise-grade agent oversight

Core Capabilities

1. Real-time Monitoring
  • Track API calls, token consumption, and execution time
  • Monitor costs across providers (OpenAI, Anthropic, etc.)
  • Session-based statistics and health scores
2. Circuit Breaker
  • Three states: CLOSED (normal), OPEN (halted), HALF_OPEN (testing)
  • Automatic failure detection and recovery
  • Configurable trip thresholds
3. Policy Engine
  • Resource limit enforcement (API calls, tokens, cost)
  • Action whitelisting and blacklisting
  • Anomaly detection with configurable sensitivity
4. Emergency Controls
  • Instant kill switch
  • Pause/resume capabilities
  • Manual override controls

Command Reference

# Monitor an agent
emergency-circuit monitor --agent-id <id> [--policy <path>]

# Emergency kill
emergency-circuit kill --agent-id <id> [--reason <text>]

# Check status
emergency-circuit status [agent-id]

# View logs
emergency-circuit logs --agent-id <id> [--last <duration>]

# List all agents
emergency-circuit list

# Validate policy
emergency-circuit policy validate --policy <path>

# View incidents
emergency-circuit incidents [--last <duration>]

Safety Policies

Create custom policies or use pre-configured templates:

{
  "limits": {
    "max_api_calls_per_minute": 100,
    "max_tokens_per_hour": 1000000,
    "max_cost_per_day": 100.0
  },
  "allowed_actions": ["read_file", "api_call"],
  "blocked_actions": ["execute_shell", "delete_database"],
  "anomaly_detection": {
    "enabled": true,
    "sensitivity": "medium",
    "alert_threshold": 0.8
  },
  "circuit_breaker": {
    "enabled": true,
    "trip_threshold": 5,
    "reset_timeout": 300
  }
}

Integration Example

import { AgentMonitor } from 'emergency-circuit';

// Create monitor
const monitor = new AgentMonitor(agent, policy);

// Start monitoring
await monitor.start();

// Track actions
await monitor.trackAction({
  action_type: 'api_call',
  resource_usage: { tokens: 1000 },
  cost: 0.03
});

// Emergency stop
await monitor.kill('Budget exceeded');

Use Cases

Development & Testing
# Test with strict sandbox limits
emergency-circuit monitor --agent-id test-agent --sandbox
Production Monitoring
# Monitor with production policy
emergency-circuit monitor \
  --agent-id prod-agent \
  --policy ./policies/production.json
Cost Control
# Auto-kill on budget exceeded
emergency-circuit monitor \
  --agent-id expensive-agent \
  --policy ./policies/low-cost.json

Troubleshooting

Q: Agent keeps getting killed

  • Check policy limits in your policy file
  • Review logs: emergency-circuit logs --agent-id <id>
  • Try sandbox mode for testing

Q: How to reset circuit breaker

  • Circuit auto-resets after timeout
  • Or restart monitoring session

Q: Policy validation failed

  • Use: emergency-circuit policy validate --policy <path>
  • Check JSON syntax and required fields

Requirements

  • Node.js ≥18.0.0
  • TypeScript 5.7+ (for development)
  • Git (for installation from source)

Installation

# From ClawHub
clawhub install emergency-circuit

# From npm
npm install -g openclaw-emergency-circuit

# From GitHub
git clone https://github.com/ZhenRobotics/openclaw-emergency-circuit.git

Support

  • GitHub Issues: https://github.com/ZhenRobotics/openclaw-emergency-circuit/issues
  • Documentation: See README.md and QUICKSTART.md
  • Examples: Check examples/ directory

License

MIT License - Free for commercial and personal use


<a name="chinese"></a>

🇨🇳 中文

技能名称

emergency-circuit - AI 代理安全监控器

分类

AI 安全 / 代理监控 / DevOps

标语

失控 AI 代理的紧急断路器

描述

Emergency Circuit 是一个生产就绪的安全系统,可实时监控 AI 代理并提供紧急关闭功能。它实现了断路器模式,可在失控代理造成损害之前自动检测并终止它们。

何时使用此技能

在以下情况下使用 Emergency Circuit:

  • ✅ 监控 AI 代理 - 追踪资源使用、API 调用和成本
  • ✅ 执行安全策略 - 对代理行为设置硬性限制
  • ✅ 防止成本失控 - 超出预算时自动终止
  • ✅ 检测异常 - 识别可疑的行为模式
  • ✅ 安全测试 - 开发时使用沙箱模式
  • ✅ 生产监控 - 企业级代理监督

核心能力

1. 实时监控
  • 追踪 API 调用、Token 消耗和执行时间
  • 监控跨提供商的成本(OpenAI、Anthropic 等)
  • 基于会话的统计和健康评分
2. 断路器
  • 三种状态:CLOSED(正常)、OPEN(暂停)、HALF_OPEN(测试)
  • 自动故障检测和恢复
  • 可配置的触发阈值
3. 策略引擎
  • 资源限制执行(API 调用、Token、成本)
  • 操作白名单和黑名单
  • 可配置灵敏度的异常检测
4. 紧急控制
  • 即时终止开关
  • 暂停/恢复功能
  • 手动覆盖控制

命令参考

# 监控代理
emergency-circuit monitor --agent-id <id> [--policy <path>]

# 紧急终止
emergency-circuit kill --agent-id <id> [--reason <text>]

# 检查状态
emergency-circuit status [agent-id]

# 查看日志
emergency-circuit logs --agent-id <id> [--last <duration>]

# 列出所有代理
emergency-circuit list

# 验证策略
emergency-circuit policy validate --policy <path>

# 查看事件
emergency-circuit incidents [--last <duration>]

安全策略

创建自定义策略或使用预配置模板:

{
  "limits": {
    "max_api_calls_per_minute": 100,
    "max_tokens_per_hour": 1000000,
    "max_cost_per_day": 100.0
  },
  "allowed_actions": ["read_file", "api_call"],
  "blocked_actions": ["execute_shell", "delete_database"],
  "anomaly_detection": {
    "enabled": true,
    "sensitivity": "medium",
    "alert_threshold": 0.8
  },
  "circuit_breaker": {
    "enabled": true,
    "trip_threshold": 5,
    "reset_timeout": 300
  }
}

集成示例

import { AgentMonitor } from 'emergency-circuit';

// 创建监控器
const monitor = new AgentMonitor(agent, policy);

// 开始监控
await monitor.start();

// 追踪操作
await monitor.trackAction({
  action_type: 'api_call',
  resource_usage: { tokens: 1000 },
  cost: 0.03
});

// 紧急停止
await monitor.kill('超出预算');

使用场景

开发和测试
# 使用严格的沙箱限制进行测试
emergency-circuit monitor --agent-id test-agent --sandbox
生产监控
# 使用生产策略监控
emergency-circuit monitor \
  --agent-id prod-agent \
  --policy ./policies/production.json
成本控制
# 超出预算时自动终止
emergency-circuit monitor \
  --agent-id expensive-agent \
  --policy ./policies/low-cost.json

故障排查

问:代理不断被终止

  • 检查策略文件中的限制设置
  • 查看日志:emergency-circuit logs --agent-id <id>
  • 尝试沙箱模式进行测试

问:如何重置断路器

  • 断路器会在超时后自动重置
  • 或重新启动监控会话

问:策略验证失败

  • 使用:emergency-circuit policy validate --policy <path>
  • 检查 JSON 语法和必需字段

系统要求

  • Node.js ≥18.0.0
  • TypeScript 5.7+(用于开发)
  • Git(用于从源代码安装)

安装

# 从 ClawHub 安装
clawhub install emergency-circuit

# 从 npm 安装
npm install -g openclaw-emergency-circuit

# 从 GitHub 安装
git clone https://github.com/ZhenRobotics/openclaw-emergency-circuit.git

技术支持

  • GitHub Issues: https://github.com/ZhenRobotics/openclaw-emergency-circuit/issues
  • 文档: 查看 README.md 和 QUICKSTART.md
  • 示例: 查看 examples/ 目录

许可证

MIT 许可证 - 可免费用于商业和个人用途


Stay Safe. Stay in Control. ⚡🛡️

保持安全,保持控制。 ⚡🛡️

平台分布

OpenClaw

91.38%
按下载量换算2,688

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills