agentleFS
Sign inSign up

Cursor rules examples

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

Best matches · from page 15Worked for most · soon
kunalsuriCursor rule

ai-fication-kit / rules

kunalsuri/ai-fication-kit/.cursor/rules/fix-bug.mdc

Fix a bug using the knowledge layer — reproduce first, failing regression test, root cause, surgical fix, review and ledger entry after.

33mo agoDiscuss
danielvm-gitCursor rule

bigpowers / rules

danielvm-git/bigpowers/.cursor/rules/hook-commits.mdc

Set up pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

24030d agoDiscuss
btseeeCursor rule

clean-code-skills / rules

btseee/clean-code-skills/.cursor/rules/clean-code.mdc

Apply language-agnostic clean-code discipline to all code writing, editing, reviewing, testing, and refactoring, including file placement, single responsibility, and verified completion.

126d agoDiscuss
michele-prandinaCursor rule

ClaudE2E / agents

michele-prandina/ClaudE2E/.cursor/rules/agents/developer.mdc

Senior Developer persona — implements backend user stories, production code, git workflow. Use when coding backend features, writing tests, or implementing API endpoints.

88mo agoDiscuss
TechNickAICursor rule

AICodeBot / rules

TechNickAI/AICodeBot/.cursor/rules/testing-standards.mdc

when writing tests

6213mo agoDiscuss
blncraftCursor rule

cursor-rules-starter-pack / rules

blncraft/cursor-rules-starter-pack/.cursor/rules/nextjs.mdc

Production-tested Next.js App Router rules. Server Components default, Server Actions, TypeScript strict.

05mo agoDiscuss
ivangrynenkoCursor rule

cursorrules / rules

ivangrynenko/cursorrules/.cursor/rules/behat-ai-guide.mdc

This rule provides comprehensive guidance for AI assistants writing Behat tests for Drupal projects using the drevops/behat-steps package. It emphasizes reusing existing traits and steps rather than creating custom implementations. Contains the full STEPS.md reference embedded for easy access.

8811mo agoDiscuss
rustic-aiCursor rule

codeprism / rules

rustic-ai/codeprism/.cursor/rules/rust.mdc

This rule provides comprehensive best practices for Rust development, covering code organization, common patterns, performance, security, testing, pitfalls, and tooling. It aims to guide developers in writing idiomatic, efficient, secure, and maintainable Rust code.

3115mo agoDiscuss
michele-prandinaCursor rule

ClaudE2E / agents

michele-prandina/ClaudE2E/.cursor/rules/agents/frontend-developer.mdc

Senior Frontend Developer persona — implements frontend user stories, UI code, manages dev server workflow. Use when building React components, implementing screens, or frontend testing.

88mo agoDiscuss
madebyarisCursor rule

advance-minimax-m3-cursor-rules / rules

madebyaris/advance-minimax-m3-cursor-rules/.cursor/rules/fable5-coding-craft.mdc

Fable 5 coding craft: locate-before-write, root-cause method, simplicity taste, error-handling philosophy, test integrity, refactoring discipline, and counters to common LLM coding failure modes. Load when writing, refactoring, debugging, or reviewing non-trivial code in any language.

1254mo agoDiscuss
SafetyMPCursor rule

HR-ERP / rules

SafetyMP/HR-ERP/.cursor/rules/vercel-jwt-smoke.mdc

When the user asks for a dev JWT, Bearer token, or to test / hit the linked Vercel deployment API with auth — run the smoke command and report status (not the token)

14mo agoDiscuss
0xdfinityCursor rule

fhevm-agent-skill / rules

0xdfinity/fhevm-agent-skill/.cursor/rules/fhevm-agent-skill.mdc

Zama FHEVM skills. Use for confidential Solidity contracts, encrypted frontend flows, tests, deployments, ERC-7984, input proofs, ACL, and decryption.

05mo agoDiscuss
danielvm-gitCursor rule

bigpowers / rules

danielvm-git/bigpowers/.cursor/rules/terse-mode.mdc

Fallback ultra-compressed communication mode. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Use ONLY when context is critically long and compressing output is necessary to continue. Not a strategy — token discipline comes from code shape (small functions, unique names, headless tests), not terser prompts. Use when user says \"caveman mode\", \"terse mode\", \"less tokens\", \"be brief\", or invokes /terse-mode.

24030d agoDeletes or force-pushesDiscuss
malawaddCursor rule

zama-fhevm-confidential-contracts / rules

malawadd/zama-fhevm-confidential-contracts/.cursor/rules/zama-fhevm-confidential-contracts.mdc

Build, test, deploy, and integrate confidential smart contracts on Zama Protocol FHEVM, including encrypted inputs, ACL, decryption, OpenZeppelin confidential contracts, and ERC-7984.

05mo agoDiscuss
AWSCursor rule

automated-security-helper / rules

awslabs/automated-security-helper/ash-agent-plugins/agentic-coding/plugins/cursor/.cursor/rules/ash-mcp.mdc

Run security scans with the ASH (Automated Security Helper) MCP server. Use this skill whenever the user asks to scan for vulnerabilities, run a security check, find CVEs, audit dependencies, check for secrets, run SAST or SCA, scan IaC (Terraform/CloudFormation/Kubernetes), check for hardcoded credentials, or mentions ASH, Bandit, Semgrep, Checkov, Grype, Syft, or detect-secrets. Also trigger when the user wants to find security issues, harden a codebase, or asks "is my code secure". Do NOT trigger for code review without security context, performance audits, or test writing.

69521d agoDiscuss
sergeyklayCursor rule

cityhive / rules

sergeyklay/cityhive/.cursor/rules/testing-guidelines.mdc

Testing Guidelines

216mo agoDiscuss
RagnarPitlaCursor rule

microsoft-agent-skills-private-archive / rules

RagnarPitla/microsoft-agent-skills-private-archive/.cursor/rules/structured-interview.mdc

Interview the user about a plan, design or decision until every open branch is resolved. Use when a request is ambiguous, when scope is unclear, before writing a spec or estimate, when the user asks to be challenged or stress-tested, or when you are about to build something and are not certain what \"done\" means.

242d agoDiscuss
OmkarKamble1Cursor rule

ratchet / rules

OmkarKamble1/ratchet/.cursor/rules/ratchet.mdc

Development loop for shipping AI-written code without rework. Front-loads the thinking, separates test-writing from code-writing, verifies by mutation. Scales rigor to blast radius.

134d agoDiscuss
Zulut30Cursor rule

dart-mobile-game-studio / agents

Zulut30/dart-mobile-game-studio/.cursor/rules/agents/code-reviewer.mdc

Code reviewer for Flutter/Dart mobile game changes. Use to review a diff/PR for bugs, style, and architectural violations against the skill's rules and the Dart quality bar. Read-only — reports findings, does not edit. Call last, after implementation and tests.

13mo agoDiscuss
CLAUDE.md vs AGENTS.md

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.