Skip to main content

panic

Emergency kill switch — halts all agents via lockfile gate. Triggers: panic, stop everything, kill switch, halt agents, agents looping.

来源信息

仓库
softspark/ai-toolkit
最近来源活动
2026年5月6日 09:48
检测到的 SKILL.md 语言
英语
星标
179
分支
21

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
panic
description
Emergency kill switch — halts all agents via lockfile gate. Triggers: panic, stop everything, kill switch, halt agents, agents looping.
effort
low
disable-model-invocation
true
agent
system-governor
context
fork
allowed-tools
Bash
# Panic Command (The Kill Switch) Stops the system dead in its tracks. ## Usage ```bash /panic [reason] # Example: /panic "Agents are looping infinitely" ``` ## Protocol 1. **Create Lockfile**: `touch .claude/HALT` 2. **Notify User**: "System Halted. Delete .claude/HALT to resume." ## Resume To resume operations: ```bash rm .claude/HALT ``` ## Rules - **MUST** create the lockfile at `.claude/HALT` — agents check this path to gate execution - **NEVER** bypass the lockfile silently once it exists - **CRITICAL**: emit a clear, single-line notification so the user knows the system is halted - **MANDATORY**: include the provided reason (if any) in the notification ## Gotchas - The lockfile is **project-local** (`./.claude/HALT`). Agents running in a different working directory, or globally-invoked tools, will not see it and will keep running. `/panic` is not a system-wide kill switch. - The lockfile check relies on the `PreToolUse` hook from `ai-toolkit`; if the user disabled hooks in `settings.json` or ejected without keeping hooks, `touch .claude/HALT` does nothing. Verify the hook is present after invocation. - Removing `.claude/HALT` mid-task resumes agents that were blocked, but they resume with potentially **stale context** (conversation moved on, tool results orphaned). Prefer restarting the session cleanly if possible. ## When NOT to Use - For cancelling a single agent — use the task's own stop mechanism - For a production incident — use `/workflow incident-response` - As a rollback tool — use `/rollback` - To pause for a short clarification — just ask the question, do not halt the system
在 GitHub 查看