panic

panic is a skill for Claude Code from softspark/ai-toolkit. It costs 32 tokens per session (468 once invoked), scanned A, original, Apache-2.0.

An emergency stop command for agent activity. It creates a project lock file that supported agents check before continuing.

In plain words
What is it for?
Use it to stop all gated agents, record the reason for the halt, and later resume them by deleting the project-local lock file.
Why use it?
It provides a way to halt agents that are looping or behaving unexpectedly until the lock file is removed.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it to stop all gated agents, record the reason for the halt, and later resume them by deleting the project-local lock file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/softspark/ai-toolkit/panic
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 softspark/ai-toolkit --skill panic
Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 hooks.

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 panic

README.md
[![agentmods](https://agentmods.dev/badge/skills/softspark/ai-toolkit/panic/github.svg)](https://agentmods.dev/skills/softspark/ai-toolkit/panic)
Your own site
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/panic"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/panic/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 panic

Your own site · 80×15
<a href="https://agentmods.dev/skills/softspark/ai-toolkit/panic"><img src="https://agentmods.dev/badge/skills/softspark/ai-toolkit/panic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 468 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 29
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00032 $0.00468
Opus 5.5 $0.00013 $0.00187
Sonnet 5.5 $0.00006 $0.00094
Haiku 4.5 $0.00003 $0.00047

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

Security

Grade A, and why

panic scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

app/skills/panic/SKILL.md · 51 lines

What it actually says

Panic Command (The Kill Switch)

Stops the system dead in its tracks.

Usage

/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:

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
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 · 51 lines · 32 tokens per session scan A 871b6dbd8605

Subscribe to this mod's changes

panic is a skill published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed yesterday), licensed Apache-2.0. It adds 32 tokens to every session and 468 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.