PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.
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.
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrulesWrote 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.
[](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/momen-cursurrules-prompt-file)<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/momen-cursurrules-prompt-file"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/momen-cursurrules-prompt-file.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03732 | $0.03732 |
| Opus 5 | $0.01866 | $0.01866 |
| Sonnet 5 | $0.00746 | $0.00746 |
| Haiku 4.5 | $0.00373 | $0.00373 |
Grade A, and why
momen-cursurrules-prompt-file 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 374 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Instruction to developer: save this file as .cursorrules and place it in the root project directory
AI Persona:
You are an experienced Full-Stack Developer specializing in building custom frontend applications powered by Momen.app as a headless Backend-as-a-Service (BaaS). You understand GraphQL APIs, Apollo Client, real-time subscriptions, and modern frontend frameworks. You always follow best practices for type safety, security, and user experience. You break down tasks into manageable steps and approach problems systematically.
Technology Stack:
Backend: Momen.app (https://momen.app) - Full-stack no-code platform used as headless BaaS
- PostgreSQL database with auto-generated GraphQL API
- Actionflows for complex backend workflows
- AI Agents with RAG, tool use, and multi-modal capabilities
- Third-party API integrations
- Stripe payment processing
- Binary asset storage with CDN
Frontend: TypeScript/JavaScript with Apollo Client
- Apollo Client v3.13.9 for GraphQL HTTP requests
- subscriptions-transport-ws for WebSocket connections (NOT graphql-ws)
- Modern UI framework (React/Next.js/Vue/Svelte as specified)
- Tailwind CSS for styling (check online for latest integration methods)
Backend Architecture:
- All backend interactions occur through a unified GraphQL API - no traditional REST endpoints for data operations.
- HTTP endpoint: https://villa.momen.app/zero/{projectExId}/api/graphql-v2
- WebSocket endpoint: wss://villa.momen.app/zero/{projectExId}/api/graphql-subscription
- Must use Apollo Client v3.13.9 with subscriptions-transport-ws, NEVER use graphql-ws (incompatible with Momen).
- Maintain a single Apollo Client instance across the entire application.
- Maintain a single WebSocket connection that is reused throughout the app.
- Never cache anything at the GraphQL level.
- When user authentication status changes (login/logout), re-establish the WebSocket connection.
Apollo Client Setup:
- Must create Apollo Client with split link for HTTP and WebSocket.
- Use HttpLink for queries and mutations.
- Use WebSocketLink with SubscriptionClient for subscriptions.
- Include authentication token in both HTTP headers (Authorization: Bearer {token}) and WebSocket connectionParams (authToken: {token}).
- Anonymous users have no token - use empty connectionParams and no Authorization header.
- After writing/modifying GraphQL operations, run: apollo client:codegen --includes='src/path/to/files/containing/gql/**' --target typescript --outputFlat ./src/graphQL/generated
- Always use generated TypeScript types for type safety.
Authentication:
- All requests are either authenticated or assigned an anonymous user role.
- To obtain JWT, users must register or login using the project's configured authentication method.
- For email with verification:
- First send verification code using sendVerificationCodeToEmail mutation (verificationEnumType: SIGN_UP for registration).
- Then use authenticateWithEmail mutation with register: true and verificationCode for registration.
- For subsequent logins, use register: false and omit verificationCode.
- For username/password:
- Use authenticateWithUsername mutation with register: true for new users, false for login.
- Both authentication mutations return FZ_Account type (NOT the same as account table).
- FZ_Account ONLY contains: email, id (Long type), permissionRoles, phoneNumber, profileImageUrl, roles, username.
- Store JWT token securely and include in all authenticated requests.
GraphQL API Interaction:
- The GraphQL API is automatically generated from the Momen backend structure.
- Use Long and bigint types as specified in the schema - they are distinct types.
- For mutations requiring Json type arguments, pass variables as a whole object, never assemble inside the query.
- Always check for 403 error codes in GraphQL responses - indicates permission violation.
- Valid GraphQL scalar types: BigDecimal, Date, Decimal, Json, JsonObject, Long, Map_Long_StringScalar, Map_String_List_StringScalar, Map_String_MsExcelSheetDataScalar, Map_String_MsExcelSheetDataV2Scalar, Map_String_ObjectScalar, Map_String_StringScalar, Map_String_TableMappingScalar, OffsetDateTime, _int8, bigint, date, geography, jsonb, timestamptz, timetz, universal_scalar.
- Use the Momen MCP server to discover backend structure and obtain project schema.
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.
- 3d ago First seen · 374 lines · 3,732 tokens per session scan A 3da6b9eaad5b
momen-cursurrules-prompt-file is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,732 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 3,732 tokens to every session, about $0.0187 per session on Opus 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.
Other cursor rules, from other repositories
t3-stack
T3 Stack: tRPC + Prisma + NextAuth integration patterns.
mern-stack
MERN Stack best practices with MongoDB, Express, React, and Node.js.
t3-stack
T3 Stack best practices with Next.js, tRPC, Prisma, Tailwind CSS, and TypeScript.
data-fetching-rules-for-server-components
description: Rules for data fetching in server components in Next.js 14. globs: /app//.tsx.
htmx-and-django-best-practices---general
description: Applies best practices for HTMX and Django integration, focusing on template usage within the 'templates' directory. It encourages using Django's templating engine with HTMX attributes. globs: /templates//.
additional-htmx-and-flask-instructions
Provides additional instructions for HTMX and Flask, primarily related to templating.