ivd: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from leocelis/ivd. It costs 5,122 tokens per session, scanned A, original, MIT.

A set of rules for the IVD framework, a development system that links an intended change to a written intent file and its checks. It requires the agent to read that file before changing related code.

In plain words
What is it for?
Use it when adding a feature, fixing a bug, or changing code that has an intent.yaml file, so the agent can inspect the requirements and follow the framework's verification loop.
Why use it?
It prevents implementation from drifting away from the stated requirements and verification steps. This makes the intended behavior and constraints available before work begins.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

This is leocelis/ivd's own configuration. It tells Cursor how to work on ivd itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ivd configures →

Reuse

Borrowing it

Nothing to install: this file belongs to leocelis/ivd. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/leocelis/ivd/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/leocelis/ivd

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 cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/leocelis/ivd/cursorrules/github.svg)](https://agentmods.dev/rules/leocelis/ivd/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/leocelis/ivd/cursorrules"><img src="https://agentmods.dev/badge/rules/leocelis/ivd/cursorrules/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 cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/leocelis/ivd/cursorrules"><img src="https://agentmods.dev/badge/rules/leocelis/ivd/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,122 This file is loaded in full into every session.
When invoked 5,122 The same file — it is already loaded in full.
Security scan A 0 findings. 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.05122 $0.05122
Opus 5.5 $0.02049 $0.02049
Sonnet 5.5 $0.01024 $0.01024
Haiku 4.5 $0.00512 $0.00512

Measured yesterday against content hash 924741af8647, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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 · 425 lines

How it starts

The opening of the file, as written. The whole thing — 425 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IVD Framework — Cursor Rules

Development rules for working on the IVD framework itself.

Both blocks below also serve as the canonical example of what

users should install in their own projects when adopting IVD.

==============================================================================

Source: leocelis/ivd/recipes/agent-rules-ivd.yaml v1.11

Reference: ivd_system_intent.yaml, framework.md, recipes/agent-rules-ivd.yaml

Do not modify by hand — reload from recipe to refresh.

==============================================================================

IVD: Intent-Verified Development Rules

==============================================================================

These rules enforce the IVD verification loop. Do not remove them.

Reference: ivd_system_intent.yaml, framework.md (Principle 4, Principle 6)

IVD Rule 1: Intent Before Implementation

Before implementing any feature, fix, or change that has an associated intent artifact (*_intent.yaml):

  1. READ the intent artifact first

  2. UNDERSTAND the constraints and their test paths

  3. IMPLEMENT using constraint-segmented approach:

    FOR INTENTS WITH 3+ CONSTRAINTS (threshold based on IFScale 2025 degradation data and Liu et al. 2023 lost-in-the-middle effect) — MANDATORY, not optional:

    a. GROUP constraints into functional segments after the stress test. Example groups: input validation | core logic / output | performance | error handling | security b. IMPLEMENT one segment ONLY — do NOT single-pass the full intent c. Before implementing any constraint with conflict_prone: true, inject its anti_pattern text into the active implementation context d. RE-READ the intent constraints for that segment from disk (not from memory — forces attention reset; counters lost-in-the-middle) e. VERIFY the segment satisfies its constraints before proceeding f. Repeat steps b–e for each segment

    Single-pass implementation against 3+ constraints violates Rule 1.

Read the full file on GitHub · 425 lines

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. yesterday Changed · -1 lines · -11 tokens per session 924741af8647
  2. 2mo ago First seen · 426 lines · 5,133 tokens per session scan A 4f8111ad1a67

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository leocelis/ivd (1 stars, last pushed 2d ago), licensed MIT. It adds 5,122 tokens to every session, about $0.0205 per session on Opus 5.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.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesleocelis/ivdCursor rule12d agoMITA5,122Cursor
graphstackMertCapkin/GraphStackCursor rule84mo agoMITA1,573Cursor
90-devops-deploymentaiagentwithdhruv/ai-dev-stackCursor rule114mo agoMITA0Cursor
00-global-architectaiagentwithdhruv/ai-dev-stackCursor rule114mo agoMITA334Cursor
45-environment-configaiagentwithdhruv/ai-dev-stackCursor rule114mo agoMITA302Cursor
55-data-model-versioningaiagentwithdhruv/ai-dev-stackCursor rule114mo agoMITA0Cursor
85-error-observabilityaiagentwithdhruv/ai-dev-stackCursor rule114mo agoMITA349Cursor