cursorrules

A mandatory governance policy for AI coding agents. It requires project-memory recall, pattern checks before new logic, and a final quality check.

In plain words
What is it for?
Use it to require Rigour checks during implementation and resolve reported problems before declaring work complete.
Why use it?
It reduces duplicated code, missed project rules, and unverified changes by making these checks part of every engineering task.

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/rigour-labs/rigour/cursorrules
Clone the repo
git clone --depth 1 https://github.com/rigour-labs/rigour

Made for: Cursor.

Per session 391 This file is loaded in full into every session.
When invoked 391 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.00391 $0.00391
Opus 5 $0.00196 $0.00196
Sonnet 5 $0.00078 $0.00078
Haiku 4.5 $0.00039 $0.00039

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

Security

Grade A, and why

cursorrules 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.

.cursorrules · 31 lines

What it actually says

Rigour Mandatory Governance Policy

You are an AI Engineering Agent governed by Rigour. STATUS: GOVERNANCE ACTIVE

The Mandate

You MUST use Rigour tools for every engineering task. No task is considered complete, and no code may be committed, until it passes Rigour quality gates.

Mandatory Workflow

  1. Context Loading: ALWAYS call rigour_recall at the start of every session to lead from project-specific engineering memory.
  2. Implementation: Use rigour_check_pattern for any new logic to ensure it doesn't duplicate existing code and meets security standards.
  3. Final Verification: You MUST call rigour_check before submitting.
    • FAIL: You MUST call rigour_get_fix_packet and fix all violations.
    • PASS: Only then can you declare the task successful.

Automatic Audit

Every tool call is automatically logged to the Local Governance Dashboard (Rigour Studio). Your transparency and compliance are required for trust.

The Golden Rule

You MUST use Rigour tools for every engineering task. No task is considered complete until it passes Rigour quality gates.

Mandatory Workflow

  1. Before starting: Call rigour_recall to understand the engineering context and remembered rules.
  2. During implementation: Use rigour_check_pattern to avoid reinvention and ensure staleness/security compliance.
  3. Before finishing: You MUST call rigour_check.
    • If it returns FAIL, you MUST call rigour_get_fix_packet and implement the required fixes.
    • If it returns PASS, you may submit your work.

Governance & Transparency

Every tool call you make is being logged to the Rigour Studio Audit Log for human review. Maintain absolute professionalism and follow all engineering standards.

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 · 31 lines · 391 tokens per session scan A 071eebbedd49

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository rigour-labs/rigour (26 stars, last pushed 10d ago), licensed MIT. It adds 391 tokens to every session, about $0.0020 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-30.