rule-index

rule-index is a cursor rule for Cursor from GoranErhartic/cursor-development-rules. It costs 41 tokens per session (1,380 once invoked), scanned A, original, MIT.

A master index that explains where a project's coding rules live and which rules apply to different technology stacks or tasks.

In plain words
What is it for?
Use it to find project context, stack-specific guidance, testing, security, architecture, and development workflow rules.
Why use it?
It helps an agent discover the right instructions when working in unfamiliar code or on multi-step work.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to find project context, stack-specific guidance, testing, security, architecture, and development workflow rules.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/goranerhartic/cursor-development-rules/rule-index
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/GoranErhartic/cursor-development-rules

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 rule-index

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/goranerhartic/cursor-development-rules/rule-index"><img src="https://agentmods.dev/badge/rules/goranerhartic/cursor-development-rules/rule-index.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,380 The whole file, excluding the scripts and references it only reads on demand.
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.00041 $0.01380
Opus 5.5 $0.00016 $0.00552
Sonnet 5.5 $0.00008 $0.00276
Haiku 4.5 $0.00004 $0.00138

Measured 2mo ago against content hash 16412e73fbc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rule-index 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 2mo 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/rule-index.mdc · 79 lines

How it starts

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

Rule Index

Use this index when you need to discover which rules exist for a given stack or topic. Each router file is the table of contents for that stack; read the router first, then the specific rule files it points to.

Quick Decision Tree

  • Need first-run guidance or fast navigation? -> QUICK_START.mdc
  • Need stack-specific implementation guidance? -> open the matching stack router below
  • Need cross-cutting concepts (testing/security/architecture)? -> use patterns/*
  • Need workflow/process guidance (TDD/review/onboarding)? -> use development/*

Always-Applied Rules (in every context)

File Purpose
agent-behavior.mdc Persona, Never Assume, Rule Flagging; links to workflow/TDD/docs
project-context.mdc Project-specific routing: active stacks, directory→router mapping, key deps; generated by onboarding

Agent-requestable (request when needed): retrospective.mdc (end-of-task review, rule gaps, IMPROVEMENTS.md). See agent-behavior.mdc "See also".

Per-Stack Routers (glob-activated; read when working in that stack)

Each stack has one router that loads when matching files are open. All other rules in that stack are agent-requestable — the router lists them by task; load the 2–3 relevant to the current sub-task.

Stack Router File When to Use
AWS Lambda / Node.js languages/aws-lambda/nodejs-lambda.mdc Lambda functions, CDK, DynamoDB, SQS, SNS, API Gateway
Node.js / TypeScript (base) languages/nodejs/nodejs-base.mdc Express, Fastify, NestJS, Hono; non-Lambda TS backends
Java / Spring Boot languages/java/java-spring.mdc Spring Boot 3, JPA, Spring Security, Resilience4j
C# / .NET languages/csharp/csharp-dotnet.mdc ASP.NET Core, EF Core, FluentValidation, Polly, Rebus
React / TypeScript languages/react/react-frontend.mdc React 18+, TanStack Query, React Router v7, Tailwind

Agent-Requestable Pattern & Workflow Rules

Read the full file on GitHub · 79 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. 2mo ago First seen · 79 lines · 41 tokens per session scan A 16412e73fbc7

Subscribe to this mod's changes

rule-index is a cursor rule published in the GitHub repository GoranErhartic/cursor-development-rules (20 stars, last pushed 9mo ago), licensed MIT. It adds 41 tokens to every session and 1,380 once invoked, about $0.0002 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-09-03.

Related

rule-index compared with cursor rules from other repositories

rule-index next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rule-indexGoranErhartic/cursor-development-rulesCursor rule209mo agoMITA41Cursor
project-structureatlanhq/agent-toolkitCursor rule4220d agoMITA1,104Cursor
pythonatlanhq/agent-toolkitCursor rule4220d agoMITA213Cursor
ponytailDietrichGebert/ponytailCursor rule203k10d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor