122 public Cursor rules in the HyperPrompt directory
Cursor applies project rules stored as .mdc files in .cursor/rules. Each rule's frontmatter (description, globs, alwaysApply) decides whether it is always included, attached to matching files, chosen by the agent from its description, or only used when you @-mention it. Cursor also reads AGENTS.md in the project root and subdirectories for plain-Markdown instructions.
Setup details below were checked against the official Cursor documentation on 2026-11-05. Vendor tools change often; confirm with the linked sources if something behaves differently in your version.
| File or location | Scope | Status |
|---|---|---|
.cursor/rules/*.mdc | Project rules, version-controlled with the repository. Subfolders such as .cursor/rules/frontend/ are allowed.A plain .md file inside .cursor/rules is ignored by the rules system; use .mdc. | current |
AGENTS.md | Plain-Markdown instructions in the project root or any subdirectory. | current |
User Rules (Cursor settings) | Personal rules that apply across your projects. | optional |
Team Rules (dashboard) | Organization-wide rules managed from the Cursor dashboard.Available on Team and Enterprise plans according to the Cursor docs. | optional |
.cursorrules | Single root file used by older Cursor setups.Not described in the current Cursor rules documentation. | legacy |
.cursor/rules/react-components.mdcIllustrative example of the documented .mdc structure. Adapt the globs and instructions to your project.
--- description: Conventions for React components in this repository globs: src/components/**/*.tsx alwaysApply: false --- - Write function components with typed props; do not use React.FC. - Keep data fetching in server components or hooks under src/lib. - Co-locate tests as Component.test.tsx and run them before proposing a change.
Cursor's documentation states that it supports AGENTS.md in the project root and in subdirectories. Use AGENTS.md for plain-Markdown instructions you also want other tools to read, and .mdc rules when you need Cursor's scoping options (globs, description-based selection, always-apply).
Older guides (including earlier versions of this page) told you to create a .cursorrules file in the project root. The current Cursor rules documentation does not describe that file. If you still have one, move its content into one or more .cursor/rules/*.mdc files (or AGENTS.md) and check that Cursor lists the new rules.
Collections with at least one matching public rule.
Cursor rules for Next.js 14+ App Router projects updated for Next.js 16 with async params, validated Route Handlers, generateMetadata and proxy.ts in place of middleware.
Cursor rules for strict TypeScript: compiler checks beyond strict, interfaces vs type aliases, real type guards, discriminated unions, utility types and branded IDs.
Cursor rules for Tailwind CSS v4: automatic class sorting, mobile-first breakpoints, CVA variants with merging, class-based dark mode via @custom-variant, and CSS-first @theme configuration.
Cursor rules for React with TypeScript: typed function components, React 19 ref-as-prop, hooks discipline, state ownership, error boundaries and measured performance work.
Cursor rule for FastAPI projects using Pydantic v2 schemas, SQLAlchemy 2 async_sessionmaker, lifespan cleanup, explicit commits and 409 conflict handling.
Cursor rule for Express 5 APIs in TypeScript with createApp structure, no try/catch boilerplate, Zod 4 validation into res.locals and a safe central error handler.
Cursor rule for React Server Components in the Next.js App Router covering client boundaries, serializable props, async params, streaming and secure Server Actions.
Cursor rule for pandas code with method chains, vectorised ops, explicit date parsing, nullable dtypes, observed groupby and pandas 3 Copy-on-Write habits.
Cursor rule for Next.js Route Handlers with Zod 4 safeParse validation, auth and ownership checks, awaited params, bounded pagination and one consistent JSON error shape.
Cursor rule for Prisma 7 with the prisma-client generator, prisma.config.ts, driver adapters, selective queries, transactions, cursor pagination and $extends soft delete.
Cursor rules for standard-library Go services with internal/ layout, graceful shutdown, method-routed handlers, wrapped errors and bounded errgroup work.
Cursor rule for layered FastAPI backends with routers, services and repositories, typed settings, one domain-error mapping and limits on BackgroundTasks.
Cursor rules for Rust systems code: borrowing-first APIs, thiserror/anyhow error layers, Tokio async with correct mutex choice, allocation-aware performance and project layout.
Cursor rules for testing React components with Vitest, React Testing Library and user-event, including setup, query priority, mocking and async patterns.
Cursor rules for Vue 3 with <script setup> and TypeScript: typed props and emits (3.3+/3.5 syntax), reactive data loading on prop changes, Pinia setup stores and typed composables.
Cursor rules for SvelteKit 2 with Svelte 5: typed load functions, form actions with validation, JSON endpoints, cookies and per-request user data.
TypeScript type guards: typeof, instanceof, in, discriminated unions, user-defined predicates, assertion functions, inferred predicates and exhaustive never checks.
Cursor rule for Django apps covering thin views, custom QuerySets, N+1 prevention, careful signals, safe migrations, DRF basics and query-count tests.
Cursor rule for pytest suites covering scoped fixtures, conftest, parametrize ids, registered markers, boundary mocking, pytest.raises(match) and coverage.
Secure Node.js applications comprehensively
Project rules go in .cursor/rules as .mdc files, committed with your repository. Cursor also reads AGENTS.md files in the project root and subdirectories, and supports personal User Rules and, on Team and Enterprise plans, Team Rules.
alwaysApply: true includes the rule in every request. With alwaysApply: false, globs attach the rule when matching files are involved, a description lets the agent decide when the rule is relevant, and a rule with neither is only used when you @-mention it.
The current Cursor rules documentation (checked 2026-11-05) does not mention .cursorrules. Treat it as a legacy setup and migrate its content to .cursor/rules/*.mdc or AGENTS.md.
Generate a Cursor project rule or a cross-tool AGENTS.md from your stack, then adapt it with the file locations above.