verify-before-proceeding

A coding rule that requires checking the project after each commit before starting the next feature.

In plain words
What is it for?
It is for running type checks and tests, checking integration points, and fixing failures before continuing. It also gives fallback steps when npm is unavailable.
Why use it?
It helps catch type errors, failing tests, broken imports, and build problems early instead of carrying them forward.

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/rethunk-ai/clodbridge/verify-before-proceeding
Clone the repo
git clone --depth 1 https://github.com/Rethunk-AI/clodbridge

Made for: Cursor.

Per session 260 This file is loaded in full into every session.
When invoked 260 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.00260 $0.00260
Opus 5 $0.00130 $0.00130
Sonnet 5 $0.00052 $0.00052
Haiku 4.5 $0.00026 $0.00026

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

Security

Grade A, and why

verify-before-proceeding 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.

.cursor/rules/verify-before-proceeding.mdc · 37 lines

What it actually says

Verify Before Proceeding

Don't assume correctness. Verify after each commit.

Verification Checklist

  • npm run typecheck (zero errors)
  • npm test (100% pass)
  • No unresolved imports or syntax errors
  • Integration test if applicable (call an MCP tool, etc.)

If Verification Fails

Fix the code, don't work around it. Debug the issue:

  • Type error? Update types or fix code (consciously)
  • Test failure? Fix the code or the test (if the test is wrong)
  • Build error? Find the root cause (missing export, wrong import, etc.)

Only after verification passes, move to the next feature.

When Tooling Blocks You

If npm is unavailable:

  1. Try alternatives (bun, npx, online TypeScript playground)
  2. If no alternatives exist, escalate to the user
  3. Don't ignore the problem and keep coding

For detailed verification strategies and error handling, see the verify-before-proceeding skill.

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 · 37 lines · 260 tokens per session scan A e42bbb5d2806

Subscribe to this mod's changes

verify-before-proceeding is a cursor rule published in the GitHub repository Rethunk-AI/clodbridge (0 stars, last pushed 1mo ago), licensed MIT. It adds 260 tokens to every session, about $0.0013 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.