Cursor rules collections on GitHub (.mdc and .cursorrules)
Ranked by GitHub stars and recent activity, updated daily · last updated · 17 repos
Cursor reads project rules from .mdc files in .cursor/rules/; the older single .cursorrules file in the project root is the legacy format. A rule tells the agent your stack, conventions and things to avoid. The repos below are collections you can copy from, plus small tools that generate or sync rules. Several of them also write AGENTS.md or CLAUDE.md, so the same rules work in other agents.
| # | Repository | Type | Stars | Last push | Licence |
|---|---|---|---|---|---|
| 1 | instructa/ai-prompts (opens in a new tab) Curated AI Prompts for Cursor Rules, Cline, Windsurf and Github Copilot | Collection | ★ 1.1k | MIT | |
| 2 | PatrickJS/awesome-cursorrules (opens in a new tab) Configuration files that enhance Cursor AI editor experience with custom rules and behaviors | Collection | ★ 40.9k | CC0-1.0 | |
| 3 | holtwood/awesome-cursorrules-zh (opens in a new tab) Cursor AI 编程规则精选集 | 132+ 规则,覆盖前端/后端/AI/DevOps 等 32 个领域 | Collection | ★ 239 | MIT | |
| 4 | sanjeed5/awesome-cursor-rules-mdc (opens in a new tab) Curated list of awesome Cursor Rules .mdc files | Collection | ★ 3.6k | CC0-1.0 | |
| 5 | thehimel/cursor-rules-and-prompts (opens in a new tab) A comprehensive, open-source collection of rules and prompts designed to guide Cursor AI in generating better, more consistent code. Enhance code quality, enforce coding standards, and streamline development workflows automatically. | Collection | ★ 249 | Other | |
| 6 | tyrchen/rust-lib-template (opens in a new tab) My goto template for rust projects, with pre-commit, gh action for CI and cursor rules for vibe coding! | Template | ★ 51 | MIT | |
| 7 | Wolfe-Jam/faf-cli (opens in a new tab) The context every AI coding agent reads — authors AGENTS.md, CLAUDE.md, GEMINI.md & .cursorrules from your repo's real stack. IANA-registered .faf format. | Tool | ★ 42 | MIT | |
| 8 | uttam-gelot/payo (opens in a new tab) Generate project-tailored AI assistant rules & skills (CLAUDE.md, .cursorrules, Copilot instructions, AGENTS.md) in under two minutes. Works with Claude, Cursor, Copilot, Codex, Windsurf, Antigravity. | Tool | ★ 30 | MIT | |
| 9 | sx4im/skillcheck (opens in a new tab) Blind A/B testing for AI agent skills, .cursorrules, CLAUDE.md, and system prompts. Detects placebo and harmful instructions. | Collection | ★ 29 | MIT | |
| 10 | jcottam/agent-resources (opens in a new tab) Battle-tested agent skills and Cursor rules from real projects. Works with Cursor, Claude Code, and any agent. | Tool | ★ 29 | MIT | |
| 11 | madebyaris/advance-minimax-m3-cursor-rules (opens in a new tab) Agentic-first Cursor Rules powered by MiniMax M3 - clarify-first prompting, interleaved thinking, and full tool orchestration for production-ready AI coding | Rules | ★ 126 | MIT | |
| 12 | PanisHandsome/ai-rules-sync (opens in a new tab) Keep one source of truth for your AI coding-agent rules. Convert and sync between AGENTS.md, CLAUDE.md, .cursorrules, Copilot, Windsurf, Cline, Aider & Gemini — or scaffold a fresh AGENTS.md. Zero dependencies. | Tool | ★ 101 | MIT | |
| 13 | itshen/xs_vibe_rules (opens in a new tab) My Cursor Rules for AI coding assistants — battle-tested constraints from real projects | Tool | ★ 52 | MIT | |
| 14 | XiaoYiWeio/deepsafe-scan (opens in a new tab) Universal preflight security scanner for AI coding agents — Detects hooks injection, credential exfiltration & backdoors in .cursorrules, CLAUDE.md, AGENTS.md and more. | Tool | ★ 77 | None listed | |
| 15 | golid-ai/golid (opens in a new tab) AI-native factory for Go + SolidJS apps — Cursor rules, spec drift CI, plans, and a production starter with auth, SSR, SSE, Cloud Run deploy. | Rules | ★ 40 | MIT | |
| 16 | yerdaulet-damir/vibe-coding-rules (opens in a new tab) 54 production architecture rules for vibe coding with Claude Code & Cursor. Drop-in CLAUDE.md, .cursor/rules, and .claude/skills for FastAPI, Next.js 15, and Go 1.22+ — turn AI-assisted coding from prototype hack to production. | Rules | ★ 30 | MIT | |
| 17 | niklub/rulefy (opens in a new tab) Create Rules for Cursor AI from any code | Tool | ★ 28 | MIT |
In their own words
From the READMEs of the top-ranked projects:
instructa/ai-prompts (opens in a new tab)
Instructa AI Prompts is an open-source repository dedicated to collecting and sharing AI prompts, best practices, and curated rules for developers. From project scaffolding to coding standards, our goal is to help you quickly set up and refine your workflow with ready-to-use prompts.
PatrickJS/awesome-cursorrules (opens in a new tab)
Cursor Project Rules enhance Cursor AI editor behavior with project-specific guidance and reusable coding standards.
holtwood/awesome-cursorrules-zh (opens in a new tab)
为中文开发者打造的 Cursor AI 编程规则集合 Chinese localized version of Awesome Cursor Rules
How this list is built: we query GitHub's public search API and rank repositories by star count (log scale) weighted by how recently they were pushed to. Forks, archived repos and anything with no push in the last 6 months are dropped. Descriptions and README quotes are the projects' own words. We have not installed or tested these projects. Stars measure popularity, not quality or safety, so read the code and licence before you run anything, especially skills, plugins and MCP servers, which can execute commands on your machine.
Still need the tool itself? Select your class in 3 questions.
Get a main AI coding tool plus a backup for limit days.
Select your class