Cursor rule
.cursor/rules/rule-index.mdcMaster index of all available rules - consult when planning multi-step tasks, working with unfamiliar parts of the codebase, or when no language-specific file is open. Lists per-stack router files and pattern rules.
Cursor rules
Quality
55/100
Scores the file, not the repository.Length
665 words
7 headings · 0 code blocksRepository
19
— · pushed 161 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Rule Index89Use 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.1011## Quick Decision Tree1213- Need first-run guidance or fast navigation? -> `QUICK_START.mdc`14- Need stack-specific implementation guidance? -> open the matching stack router below15- Need cross-cutting concepts (testing/security/architecture)? -> use `patterns/*`16- Need workflow/process guidance (TDD/review/onboarding)? -> use `development/*`1718## Always-Applied Rules (in every context)1920| File | Purpose |21|------|---------|22| `agent-behavior.mdc` | Persona, Never Assume, Rule Flagging; links to workflow/TDD/docs |23| `project-context.mdc` | Project-specific routing: active stacks, directory→router mapping, key deps; generated by onboarding |2425**Agent-requestable (request when needed):** `retrospective.mdc` (end-of-task review, rule gaps, IMPROVEMENTS.md). See agent-behavior.mdc "See also".2627## Per-Stack Routers (glob-activated; read when working in that stack)2829Each 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.3031| Stack | Router File | When to Use |32|-------|-------------|-------------|33| **AWS Lambda / Node.js** | `languages/aws-lambda/nodejs-lambda.mdc` | Lambda functions, CDK, DynamoDB, SQS, SNS, API Gateway |34| **Node.js / TypeScript (base)** | `languages/nodejs/nodejs-base.mdc` | Express, Fastify, NestJS, Hono; non-Lambda TS backends |35| **Java / Spring Boot** | `languages/java/java-spring.mdc` | Spring Boot 3, JPA, Spring Security, Resilience4j |36| **C# / .NET** | `languages/csharp/csharp-dotnet.mdc` | ASP.NET Core, EF Core, FluentValidation, Polly, Rebus |37| **React / TypeScript** | `languages/react/react-frontend.mdc` | React 18+, TanStack Query, React Router v7, Tailwind |3839## Agent-Requestable Pattern & Workflow Rules4041| File | Topic |42|------|--------|43| `patterns/architecture.mdc` | Clean Architecture, Vertical Slice, CQRS, DDD, SOLID |44| `patterns/clean-code.mdc` | Index to clean-code sub-rules (naming, functions, design, hygiene) |45| `patterns/clean-code-naming.mdc` | Naming, vocabulary, abbreviations, negated booleans |46| `patterns/clean-code-functions.mdc` | Method params, guard clauses, abstraction levels, cognitive load |47| `patterns/clean-code-design.mdc` | Side effects, immutability, Law of Demeter, composition, dependencies |48| `patterns/clean-code-hygiene.mdc` | Dead code, magic numbers, comments, fail fast, Rule of Three |49| `patterns/error-handling.mdc` | Result pattern, RFC 7807 ProblemDetails |50| `patterns/testing.mdc` | TDD, AAA, test categories, mocking |51| `patterns/security.mdc` | Secrets, HTTPS, CORS, headers, RBAC |52| `patterns/api-design.mdc` | REST, HTTP methods, status codes, versioning |53| `patterns/input-sanitization.mdc` | Validation vs sanitization, SQL/XSS/path traversal |54| `patterns/cqrs.mdc` | Command/Query separation, pipeline behaviors |55| `development/tdd-workflow.mdc` | TDD Red/Green/Refactor mandate, escape clause |56| `development/tdd-planning.mdc` | Test scenario specification, Method_WhenCondition_ShouldResult |57| `development/code-implementation.mdc` | Pre-work, TDD cycle, Definition of Done, summary format |58| `development/code-review.mdc` | Code review loop, DoD table, checklist |59| `development/project-onboarding.mdc` | Analyze repo, detect stacks, map dirs→routers, generate project-context.mdc |60| `development/context7-docs.mdc` | Context7 MCP — resolve-library-id, get-library-docs |61| `retrospective.mdc` | End-of-task review, rule gaps, IMPROVEMENTS.md |6263## How to Use64651. **Before implementation:** Always consult the **stack router** for the stack you are working in (see table above). The router is the only glob-loaded rule for that stack; it lists every language-specific rule by task type. Load the 2–3 rules relevant to your current sub-task.662. **Planning or unfamiliar codebase:** Read this index, then the router for that stack; request the rule files the router points to for your task.673. **Cross-cutting concept:** Use the pattern or development rules above; request by name when needed.6869## Most Common Workflows7071- API endpoint work: router -> `languages/*/controllers.mdc`, `languages/*/validation.mdc`, `languages/*/error-handling.mdc`72- Testing work: router `languages/*/testing.mdc` + `patterns/testing.mdc` + `development/tdd-workflow.mdc`73- Security work: router `languages/*/security.mdc` + `languages/*/input-sanitization.mdc` (+ `languages/*/auth.mdc` if applicable)74- Large unfamiliar project: `development/project-onboarding.mdc` -> refresh `project-context.mdc` -> router7576**Activation model:** Always-applied: `agent-behavior.mdc`, `project-context.mdc`. Only the five stack routers are glob-activated. All other language-specific rules and all pattern/development rules are agent-requestable — load them on demand via the router or by name to keep context under ~15k–20k tokens per task.7778**See also:** `QUICK_START.mdc`, `README.md` in this folder for full activation model and token budget.79
Also in GoranErhartic/cursor-development-rules
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| GoranErhartic/cursor-development-rules.cursor/rules/retrospective.mdc · 19 | Cursor rules | lint-formatgitagent-behaviour | 34/100 | 3 days ago | |
| GoranErhartic/cursor-development-rules.cursor/rules/QUICK_START.mdc · 19 | Cursor rules | no sections | 25/100 | 3 days ago | |
| GoranErhartic/cursor-development-rules.cursor/rules/agent-behavior.mdc · 19 | Cursor rules | stylegitdo-notagent-behaviour | 79/100 | 3 days ago | |
| GoranErhartic/cursor-development-rules.cursor/rules/project-context.mdc · 19 | Cursor rules | testarchdependencies | 52/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-user-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago | |
| nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49 | Cursor rules | setupbuildteststyle+4 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/gh-task-plan.mdc · 1.4k | Cursor rules | teststylearchtypes+2 | 96/100 | 3 days ago | |
| skillrecordings/egghead-next.cursor/rules/project-update-rules.mdc · 1.4k | Cursor rules | buildtestlint-formatstyle+7 | 96/100 | 3 days ago |
