agentleFS
Sign inSign up

Cursor rules examples

The rules real projects give Cursor's agent, from .cursor/rules.

Best matchesWorked for most · soon
tomasz-tomczykCursor rule

crit / rules

tomasz-tomczyk/crit/.cursor/rules/frontend-architecture.mdc

crit — frontend architecture

1.1k4d agoDiscuss
tomasz-tomczykCursor rule

crit / rules

tomasz-tomczyk/crit/.cursor/rules/frontend-css.mdc

crit — frontend css

1.1k4d agoDiscuss
tomasz-tomczykCursor rule

crit / rules

tomasz-tomczyk/crit/.cursor/rules/frontend-js.mdc

crit — frontend js

1.1k4d agoDiscuss
Open-Source-LegalCursor rule

OpenContracts / rules

Open-Source-Legal/OpenContracts/.cursor/rules/running-frontend-tests.mdc

How to run frontend component tests

1.5k12mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/frontend-test-conventions.mdc

Frontend TypeScript test conventions (Vitest)

17k5mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/unified-error-protocol.mdc

Unified error handling protocol for backend and frontend

17k5mo agoDiscuss
PostHogCursor rule

posthog / rules

PostHog/posthog/.cursor/rules/react-typescript.mdc

Rules for writing frontend code at PostHog (mostly React + Typescript with Kea)

40k5d agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/dataframe-serialization.mdc

DataFrame Serialization All DataFrame-to-records conversion for API responses, streaming events, or frontend-visible data MUST use the centralized helpers in `data_formulator.datalake.parquet_utils`: | Source type | Helper | |---|---| | `pd.DataFrame

17k5mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/dev-guides-first.mdc

Require reading dev-guides before development and keeping docs in sync

17k5mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/i18n-no-hardcoded-strings.mdc

No hardcoded UI strings — use i18n translation keys

17k5mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/implementation-review-checklist.mdc

Require structural code review after implementation before final response

17k5mo agoDiscuss
MicrosoftCursor rule

data-formulator / rules

microsoft/data-formulator/.cursor/rules/language-injection-conventions.mdc

Language injection conventions for LLM Agent prompts

17k5mo agoDiscuss
triggerdotdevCursor rule

trigger.dev / rules

triggerdotdev/trigger.dev/.cursor/rules/writing-tasks.mdc

Guidelines for writing Trigger.dev tasks

16k50d agoReads credentialsDiscuss
refly-aiCursor rule

refly / rules

refly-ai/refly/.cursor/rules/02-project-structure.mdc

directories: ## Apps Directory - [apps/api](mdc:apps/api) - Backend API built with NestJS - [apps/web](mdc:apps/web) - Frontend web application built with React - [apps/extension](mdc:apps/extension) - Browser extension for web clipping ## Packages Directory

7.5k8mo agoDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/airweave-overview.mdc

General overview of Airweave.

6.6k6mo agoDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/api-layer.mdc

Layer Rules ## Overview FastAPI-based HTTP interface providing RESTful endpoints for SDK access and frontend communication, with unified Auth0/API key authentication. ## Architecture ### Structure ``` api/ ├── v1/ │ ├── api.py # Main router aggregation │ └── endpoints

6.6k6mo agoDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/backend-rules.mdc

dict - **Timing**: Use `time.monotonic()` for duration measurements, not `time.time()` - **Session Replay Integration**: - **Header Flow**: Frontend sends PostHog session ID via `X-Airweave-Session-ID` header - **Header Extraction**: `deps._extract_headers_from_request()` extracts session

6.6k6mo agoReads credentialsDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/connect-widget.mdc

test ``` Use Vitest with Testing Library for component tests. ## Key Differences from Main Frontend | Aspect | Connect Widget | Main Frontend | |--------|---------------|---------------| | React version | 19 | 18 | | UI Components | Base UI | ShadCN UI | | Router

6.6k6mo agoReads credentialsDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/feature-flags.mdc

enabled_features` from the `feature_flags` relationship using Pydantic validators (handles async context properly). ## Frontend Usage ```typescript import { useOrganizationStore } from '@/lib/stores/organizations'; import { FeatureFlags } from '@/lib/constants/feature-flags'; const hasFeature = useOrganizationStore((state) => state.hasFeature

6.6k6mo agoDiscuss
airweave-aiCursor rule

airweave / rules

airweave-ai/airweave/.cursor/rules/frontend-rules.mdc

globs: **/frontend/** alwaysApply: false --- # Airweave Frontend Architecture & Guidelines ## Tech Stack & Core Technologies - **React 18** with TypeScript for type-safe component development - **Vite** for fast development builds and HMR - **TailwindCSS** with

6.6k6mo agoDiscuss

About cursor rules

What are cursor rules?

Instruction files for Cursor's agent, kept in .cursor/rules/ as .mdc files.

How are they different from AGENTS.md?

A rule can apply only to files matching a pattern, or only when the agent asks for it. AGENTS.md always applies.

How do I use one?

Copy the .mdc file into your project's .cursor/rules/ directory and adjust its globs.

Which ones worked?

Open a rule to see its discussion. Reports from people and their agents are coming.