safety-critical

safety-critical is a cursor rule for Cursor from kyungseo/ai-workflow-harness. It costs 182 tokens per session, scanned C, original, Apache-2.0.

A set of safety rules for destructive, privileged, infrastructure, and environment-changing actions.

In plain words
What is it for?
It governs commands such as deleting data, using sudo, changing cloud infrastructure, resetting history, rotating secrets, or modifying shared environments.
Why use it?
It prevents irreversible changes and exposure of secrets by requiring explicit approval and favoring read-only inspection.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit It governs commands such as deleting data, using sudo, changing cloud infrastructure, resetting history, rotating secrets, or modifying shared environments.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kyungseo/ai-workflow-harness/safety-critical
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.

Clone the repo
git clone --depth 1 https://github.com/kyungseo/ai-workflow-harness

Made for: Cursor.

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 safety-critical

README.md
[![agentmods](https://agentmods.dev/badge/rules/kyungseo/ai-workflow-harness/safety-critical/github.svg)](https://agentmods.dev/rules/kyungseo/ai-workflow-harness/safety-critical)
Your own site
<a href="https://agentmods.dev/rules/kyungseo/ai-workflow-harness/safety-critical"><img src="https://agentmods.dev/badge/rules/kyungseo/ai-workflow-harness/safety-critical/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 safety-critical

Your own site · 80×15
<a href="https://agentmods.dev/rules/kyungseo/ai-workflow-harness/safety-critical"><img src="https://agentmods.dev/badge/rules/kyungseo/ai-workflow-harness/safety-critical.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 This file is loaded in full into every session.
When invoked 182 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00182 $0.00182
Opus 5 $0.00091 $0.00091
Sonnet 5 $0.00036 $0.00036
Haiku 4.5 $0.00018 $0.00018

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

Security

Grade C, and why

safety-critical scanned grade C with 1 finding 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 10d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- `rm -rf`
.cursor/rules/safety-critical.mdc · 30 lines

What it actually says

Safety Rules

CRITICAL: Safety rules override convenience.

NEVER run destructive or privileged commands without explicit user approval:

  • rm -rf
  • sudo
  • kubectl
  • terraform
  • cloud provider CLI commands
  • commands that delete data, reset history, rotate secrets, or mutate shared infrastructure

NEVER:

  • Make infrastructure or environment changes unless the user explicitly asks for that exact action.
  • Read or expose .env, secret files, credentials, full tokens, or password values unless the user explicitly approves a specific need.

MUST:

  • Ask before any operation with irreversible or hard-to-reverse impact.
  • Prefer read-only inspection commands when diagnosing infrastructure or environment issues.
  • Explain the risk and reversal cost before proposing high-impact actions.
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. 10d ago First seen · 30 lines · 182 tokens per session scan C edf1cd0d6a8c

Subscribe to this mod's changes

safety-critical is a cursor rule published in the GitHub repository kyungseo/ai-workflow-harness (13 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 182 tokens to every session, about $0.0009 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other cursor rules, from other repositories

nauro-adopt

Seeds Nauro's project store from an existing repo. Use after nauro adopt has run locally. On filesystem-capable surfaces, reads docs (README, manifests, ADRs, Memory-Bank) for rationale and inspects code, config, tests, lockfiles, and recent git history for evidence, then surfaces targeted probes that turn evidence…

Nauro-AI/nauro · 89 tokens

nauro-context

Writes durable shared context into Nauro's project store so other agents (a later session or a parallel one) can discover and pull it, finds and reads context another agent left, or captures a resumable brief so your own next session in this environment picks up cleanly. Three modes. Author writes a shared brief for…

Nauro-AI/nauro · 272 tokens

language-agnostic-patterns

Language-agnostic programming patterns: SOLID, design patterns, clean code, and architecture. Load when refactoring, designing abstractions, or reviewing structure — not for everyday syntax.

madebyaris/advance-minimax-m3-cursor-rules · 37 tokens

cursor-tools-mastery

Cursor 3.7 runtime guide: choose the right tool, canvases, Design Mode, /worktree, /best-of-n, Await, and parallel execution where safe.

madebyaris/advance-minimax-m3-cursor-rules · 36 tokens

fable5-coding-craft

Fable 5 coding craft: locate-before-write, root-cause method, simplicity taste, error-handling philosophy, test integrity, refactoring discipline, and counters to common LLM coding failure modes. Load when writing, refactoring, debugging, or reviewing non-trivial code in any language.

madebyaris/advance-minimax-m3-cursor-rules · 60 tokens

cursor-agent-orchestration

Cursor 3.7 orchestration guide: when to plan, when to delegate, nested subagents, multi-environment handoffs, /best-of-n, and Await for long-running branches.

madebyaris/advance-minimax-m3-cursor-rules · 39 tokens