002-verify-before-act

A set of rules for checking the current state before changing, installing, deleting, or declaring anything. It requires reading files before editing them and verifying tools or packages before using them.

In plain words
What is it for?
Use it to guide safe file edits, package installation, command-line tool use, destructive operations, and build or type-check claims.
Why use it?
It reduces mistakes caused by assumptions, such as overwriting unknown content, installing a misspelled package, or claiming a check passed without running it.

Cursor rule for Cursor

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 rules/bookedsolidtech/helixir/002-verify-before-act
Clone the repo
git clone --depth 1 https://github.com/bookedsolidtech/helixir

Made for: Cursor.

Per session 306 This file is loaded in full into every session.
When invoked 306 The same file — it is already loaded in full.
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 $0.00306 $0.00306
Opus 5 $0.00153 $0.00153
Sonnet 5 $0.00061 $0.00061
Haiku 4.5 $0.00031 $0.00031

Measured 2d ago against content hash efdf7c79b95b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

002-verify-before-act 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 2d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/002-verify-before-act.mdc · 29 lines

What it actually says

Verify Before Acting

Read before writing. Verify before installing. Confirm before deleting.

Rules

  1. Read before writing. Before editing a file, read the current version. Never overwrite without knowing what's there. Never assume file contents from memory.

  2. Verify package existence before installing. Before running npm install <pkg>, composer require <pkg>, or any equivalent, confirm the package exists and its name is spelled correctly. Use the package registry, not your training data.

  3. Confirm before destructive operations. Before git reset, git clean, file deletion, or database drops — state what you're about to do and why. Wait for acknowledgement if there's any doubt.

  4. Check current state before declaring it. Before saying "the build passes" or "there are no TypeScript errors", run the check. Do not rely on previous results from earlier in the session.

  5. Verify tool availability before use. Before running a CLI tool (docker, act, composer, drush, etc.), check that it's installed. Don't assume availability.

When to apply

  • Before any write or edit operation
  • Before any install, add, require, or update command
  • Before any destructive git operation
  • Before any claim about current system state
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. 2d ago First seen · 29 lines · 306 tokens per session scan A efdf7c79b95b

Subscribe to this mod's changes

002-verify-before-act is a cursor rule published in the GitHub repository bookedsolidtech/helixir (5 stars, last pushed 2mo ago), licensed MIT. It adds 306 tokens to every session, about $0.0015 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.