agentleFS
Sign inSign up

Cursor rules examples

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

Best matches · from page 6Worked for most · soon
LuxvilCursor rule

ai-coding-rules / rules

Luxvil/ai-coding-rules/.cursor/rules/20-security-privacy.mdc

USE WHEN: handling auth, secrets, PII, input validation, or security-sensitive code.

38mo agoDiscuss
tyecodeCursor rule

skills / rules

tyecode/skills/.cursor/rules/karpathy-guidelines.mdc

Tyecode's coding guidelines — think before coding, simplicity, security, and surgical changes.

038d agoDiscuss
kotro-labsCursor rule

kotro-proxy-engine / rules

kotro-labs/kotro-proxy-engine/.cursor/rules/week1-distribution.mdc

Guide Kotro Week 1 distribution plan to completion (security tiles → exploit demo → Show HN)

93mo agoDiscuss
krutikJainCursor rule

android-agent-skills / rules

krutikJain/android-agent-skills/.cursor/rules/android-security-best-practices.mdc

Apply Android app security guidance around secrets, storage, network trust, exported components, and least privilege.

146mo agoDiscuss
ashish7802Cursor rule

awesome-agent-skills / rules

ashish7802/awesome-agent-skills/.cursor/rules/supabase-postgres-rls.mdc

Enforces complete RLS protection across all tables and audited PL/pgSQL security definer functions.

118d agoDiscuss
amitchorasiyaCursor rule

antivibe-rails-starter / rules

amitchorasiya/antivibe-rails-starter/.cursor/rules/security.mdc

Security architecture rails (AntiVibe) — non-negotiable constraints for all code generation

04mo agoDiscuss
rustic-aiCursor rule

codeprism / rules

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

This rule provides comprehensive best practices for developing and maintaining Kubernetes applications and infrastructure, covering coding standards, security, performance, testing, and deployment.

3115mo agoDiscuss
galyarderlabsCursor rule

galyarder-framework / rules

galyarderlabs/galyarder-framework/.cursor/rules/code-review-expert.mdc

Expert code review of current git changes with a senior engineer lens. Detects SOLID violations, security risks, and proposes actionable improvements.

223mo agoDiscuss
galyarderlabsCursor rule

galyarder-framework / rules

galyarderlabs/galyarder-framework/.cursor/rules/pr-review-expert.mdc

Use when the user asks to review pull requests, analyze code changes, check for security issues in PRs, or assess code quality of diffs.

223mo agoReads credentialsDiscuss
galyarderlabsCursor rule

galyarder-framework / rules

galyarderlabs/galyarder-framework/.cursor/rules/testing-for-xss-vulnerabilities-with-burpsuite.mdc

Identifying and validating cross-site scripting vulnerabilities using Burp Suite's scanner, intruder, and repeater tools during authorized security assessments.

223mo agoDiscuss
sordi-aiCursor rule

skill-everything / rules

sordi-ai/skill-everything/.cursor/rules/code-quality.mdc

Apply when writing or refactoring code. Generic rules to prevent the most common review comments — function length, naming, error handling, security, and tooling.

205mo agoDiscuss
sakurablushCursor rule

zeroagent-studio / rules

sakurablush/zeroagent-studio/.cursor/rules/zeroagent-security-auditor.mdc

Security audit for ZeroAgent Studio. Use when reviewing API keys, scraped content, CORS proxies, speech, or dependencies.

43mo agoDiscuss
wchen02Cursor rule

cursor-agent-learning / rules

wchen02/cursor-agent-learning/.cursor/rules/human-in-the-loop.mdc

When and how to use human-in-the-loop (HITL) in agent workflows; apply before merge, deploy, release, or applying security fixes.

37mo agoDiscuss
galyarderlabsCursor rule

galyarder-framework / rules

galyarderlabs/galyarder-framework/.cursor/rules/code-reviewer.mdc

Expert code review specialist. Proactively reviews code for quality, security, and maintainability. Use immediately after writing or modifying code. MUST BE USED for all code changes.

223mo agoDiscuss
HermeticOrmusCursor rule

linux-sysadmin-skills / rules

HermeticOrmus/linux-sysadmin-skills/.cursor/rules/linux-sysadmin.mdc

Linux sysadmin workflows for Debian/Ubuntu (apt, systemd, journalctl) covering security, performance, diagnose, monitor, maintain. Confirm before destructive operations.

44mo agoDiscuss
encoreshaoCursor rule

encore-skills / rules

encoreshao/encore-skills/.cursor/rules/review-code.mdc

Pre-MR self-review — first confirm the problem is actually solved, then check for security, correctness, and simplicity

22mo agoDiscuss
rustic-aiCursor rule

codeprism / rules

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

Enterprise-grade patterns for production systems including security, complex architecture, and deployment. Use this for high-stakes applications requiring authentication, comprehensive testing, and production deployment.

3115mo agoDiscuss
michele-prandinaCursor rule

ClaudE2E / agents

michele-prandina/ClaudE2E/.cursor/rules/agents/head-of-engineering.mdc

Head of Engineering persona — architecture decisions, technical feasibility, stack governance. Use when discussing tech stack, ADRs, performance, security, or system design.

88mo agoDiscuss
galyarderlabsCursor rule

galyarder-framework / rules

galyarderlabs/galyarder-framework/.cursor/rules/iso-42001-ai-governance.mdc

AI governance audit using ISO 42001 standard. Ensures AI systems are developed and deployed responsibly with risk management, ethics, security, transparency, and compliance best practices.

223mo agoDiscuss
sordi-aiCursor rule

skill-everything / rules

sordi-ai/skill-everything/.cursor/rules/docker.mdc

Apply when writing or reviewing Dockerfiles, docker compose files, or container build pipelines. Covers layer caching, multi-stage builds, security hardening, and compose conventions.

205mo 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.