A curated list of awesome Cursor rules (.cursorrules) and MCP servers for AI-assisted development. maintained by AgentIndex.app
A curated list of best practices,
.cursorrulesfiles, and MCP servers to supercharge your AI coding experience with Cursor, Windsurf, and VSCode.
Searching for specific rules by language or framework?
๐ Visit AgentIndex.app for the full, searchable directory with one-click copy and compatibility checks.
(We update the website daily with new agents and rules that aren't listed here yet!)
้็จ่งๅ๏ผ้็จไบๅคงๅคๆฐ้กน็ฎ
- Senior Developer Persona: Forces the AI to think deeply before answering. Source
- Concise Coder: No yapping, just code. Optimized for speed.
Focus on Swift, SwiftUI, Objective-C
-
SwiftUI Expert & Clean Architecture:
- Description: Forces Cursor to use the latest Swift 5.9+ syntax, prioritize value types, and strictly follow MVVM pattern.
- Rule Content: Copy from AgentIndex.app (Or use the snippet below)
- .cursorrules Snippet:
You are an expert iOS Developer proficient in Swift, SwiftUI, and Combine. - Always use `struct` over `class` unless you need reference semantics. - Use `some View` for body types. - Prefer `Async/Await` over completion handlers. - Strictly follow MVVM: Views should only talk to ViewModels. - For UI, always assume iOS 16+ unless specified otherwise. - When using SF Symbols, ensure availability check.
-
XCode Build Fixer: Helps debug obscure derived data and signing issues. Get Rule
React, Vue, Next.js, Tailwind
-
Next.js 14 App Router & SEO:
- Description: Enforces modern Next.js 14+ conventions (App Router, Server Components) and SEO best practices.
- .cursorrules Snippet:
You are an expert in Next.js 14+, React, and TypeScript. - **App Router**: Always use the `app/` directory. Do not use the `pages/` directory. - **Server Components**: All components are Server Components by default. Use `'use client'` only when necessary (e.g., hooks, event listeners). - **Data Fetching**: Use standard `fetch` with async/await in Server Components. Avoid `useEffect` for data fetching. - **Images**: Always use `next/image` with proper sizing and format (WebP). - **Metadata**: Use the Metadata API for SEO tags, not `<head>`. - **Filenames**: Use `page.tsx`, `layout.tsx`, `loading.tsx` conventions.
-
Tailwind CSS Master:
- Description: Generates clean, responsive, and maintainable Tailwind utility classes.
- .cursorrules Snippet:
You are a Tailwind CSS expert. - **Utility First**: Use utility classes over custom CSS. Avoid `@apply` unless absolutely necessary. - **Responsive Design**: Use mobile-first breakpoints (`sm:`, `md:`, `lg:`). - **Sorting**: Order classes logically (Layout -> Box Model -> Typography -> Visuals). - **Arbitrary Values**: Use `[]` for one-off values sparingly. - **Colors**: Use semantic color names (e.g., `text-primary`, `bg-surface`) if defined, otherwise standard palette.
FastAPI, PyTorch, Django
- Clean Python & PEP 8:
- Description: Writes Pythonic code focusing on type safety, readability, and standard formatting.
- .cursorrules Snippet:
You are an expert Python developer. - **Style**: Strictly follow PEP 8 standards (indentation, snake_case for functions/vars). - **Type Hinting**: Always use the `typing` module. Function signatures must have type hints. - **Docstrings**: Use Google-style docstrings for all public functions and classes. - **Modern Python**: Use `f-strings` for formatting. Use `pathlib` instead of `os.path`. - **Error Handling**: Use specific exceptions (e.g., `ValueError`) instead of generic `Exception`.
Model Context Protocol Integrations - Copy these configs to your claude_desktop_config.json
-
PostgreSQL Inspector:
- Description: Give AI safe, read-only access to inspect your database schema and run queries to debug issues.
- Config (JSON):
"postgres": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-postgres", "postgresql://user:password@localhost:5432/your_db_name" ] }
-
Git Commit Assistant:
- Description: Allows AI to read your
git diffandgit statusto automatically generate semantic commit messages. - Config (JSON):
"git": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-git" ] }
- Description: Allows AI to read your
We love contributions!
- Fork this repo.
- Create a branch (
git checkout -b add-new-rule). - Commit your changes.
- Push to the branch.
- Create a Pull Request.
Or simply submit your Agent/Rule directly at AgentIndex.app for faster listing!