hard-brake

hard-brake is a command for coding agents from xcodethink/open-claude-code-skills. It costs 31 tokens per session (340 once invoked), scanned A, original, MIT.

A safety-check command that compares a planned change with a list of high-risk development actions and pauses for explicit approval when one matches.

In plain words
What is it for?
Use it before renaming shared types, changing database columns or stored state, editing authentication, modifying access levels, changing many files, or deploying to production.
Why use it?
It catches changes that may affect stored data, authentication, permissions, navigation, user tiers, many existing files, or production deployment before they are made.

Command

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.

agentmods
npx agentmods add commands/xcodethink/open-claude-code-skills/hard-brake
Clone the repo
git clone --depth 1 https://github.com/xcodethink/open-claude-code-skills

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 hard-brake

README.md
[![agentmods](https://agentmods.dev/badge/commands/xcodethink/open-claude-code-skills/hard-brake.svg)](https://agentmods.dev/commands/xcodethink/open-claude-code-skills/hard-brake)
Your own site
<a href="https://agentmods.dev/commands/xcodethink/open-claude-code-skills/hard-brake"><img src="https://agentmods.dev/badge/commands/xcodethink/open-claude-code-skills/hard-brake.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 340 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00031 $0.00340
Opus 5 $0.00015 $0.00170
Sonnet 5 $0.00006 $0.00068
Haiku 4.5 $0.00003 $0.00034

Measured 5d ago against content hash 6f5462efefc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

hard-brake 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 5d 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.

commands/hard-brake.md · 28 lines

What it actually says

hard-brake — 硬刹车自检

用户输入 /hard-brake $ARGUMENTS 触发 CLAUDE.md 硬刹车清单逐条对照

立刻读取并完整加载: ~/.claude/prompts/lib/09-元指令/硬刹车自检.md

按其"行为契约"对照以下硬刹车清单(任一命中 → 列 diff + 等用户 yes):

  1. type alias / enum / interface 重命名影响 ≥ 3 文件
  2. Zustand persist version bump / Redux store shape / localStorage key 改名
  3. NAV / 权限 / tier / 体验等级配置改动
  4. DB DROP / ALTER 既有列 / 改 PK/UNIQUE / data backfill UPDATE
  5. 批量修改 ≥ 5 个已有文件(纯新增不算)
  6. 触发生产 deploy(merge / push to main / release tag)
  7. OAuth / auth 链路文件修改

参数 $ARGUMENTS = 即将做的动作。

核心契约:逐条对照,列出命中的硬刹车 + 列 diff + 等用户 yes 才执行。"我觉得不严重"不算豁免。

参数: $ARGUMENTS

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. 5d ago First seen · 28 lines · 31 tokens per session scan A 6f5462efefc4

Subscribe to this mod's changes

hard-brake is a command published in the GitHub repository xcodethink/open-claude-code-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 340 once invoked, about $0.0002 per session on Opus 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-08-31.