A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A comprehensive, open-source collection of rules and prompts designed to guide Cursor AI in generating better, more cons
💡 Stop repeating yourself. Make Cursor AI follow your coding standards automatically.
A comprehensive collection of rules and prompts that transform Cursor from a helpful assistant into a team member who knows your codebase conventions. These rules enforce best practices, maintain code quality, and ensure consistency—without you having to explain the same things over and over.
Ever find yourself constantly reminding Cursor to "use @/ instead of relative paths" or "don't add inline styles"? This repository solves that. 🤯
Instead of manually correcting the AI every time, these rules ensure it follows your standards automatically. Think of it as a coding style guide that the AI actually reads, understands, and applies consistently across your entire project.
💼 It's like having a senior developer review every AI-generated change before it hits your codebase.
✨ Automatic Enforcement - Rules apply automatically, no manual intervention needed
🎯 Project-Agnostic - Works with any tech stack, easily customizable
📚 Comprehensive - Covers code style, organization, documentation, and more
🔄 Maintainable - Well-organized, easy to understand and modify
🚀 Time-Saving - Stop repeating the same instructions to AI
❌ Before: You ask Cursor to create a component, and it generates:
import { Button } from '../../../components/ui/button';
import { MyType } from '../types';
✅ After: With these rules, Cursor automatically generates:
import { Button } from '@/components/ui/button';
import { MyType } from '@/components/quiz/types';
🎉 The AI knows your conventions and follows them without being told!
.cursor folder in your project rootUse the sync script to automatically keep your .cursor directory updated across all your projects:
# Add alias to ~/.zshrc (or ~/.bashrc)
alias sync-cursor="~/PycharmProjects/cursor-rules-and-prompts/sync-cursor.sh"
# Reload shell configuration
source ~/.zshrc
# Run sync from any directory
sync-cursor
📌 Sync Script:
sync-cursor.sh⚠️ Important: The script requires a
.includefile in each destination's.cursor/directory to specify what to sync. See sync-cursor.md for detailed documentation.
The script will:
~/PycharmProjects/.include file💡 Note: The old
fetch-cursor-rules.shscript is deprecated. Usesync-cursor.shinstead. See sync-cursor.md for full documentation.
💬 The rules are organized by category and apply automatically when you're working in Cursor. No configuration needed.
This repository contains a growing collection of rules and prompts organized by category. The rules cover areas like:
📍 Rules are stored in
.cursor/rules/organized by category, and reusable prompts are in.cursor/prompts/. The collection continues to grow as new patterns and best practices are identified. 🌱
All rules follow a consistent format:
---
alwaysApply: true | false
description: Brief description of what the rule does
author: Himel Das
---
# Rule Title
## Section
- Rule content
- More rules
Rules are:
These rules are designed to be:
Feel free to:
📖 See the rule creation guidelines in
.cursor/rules/organization/rule-creation.mdcfor details on creating new rules.
This is a proprietary project. For permissions or inquiries, please contact Himel Das.
PROPRIETARY LICENSE - All Rights Reserved
Copyright (c) 2025 Himel Das
This software is proprietary and confidential. You are NOT permitted to:
If you are granted explicit permission to share, you must provide attribution to Himel Das.
See LICENSE file for full terms and conditions.
Himel Das
Created to help developers leverage Cursor AI more effectively and maintain high code quality standards.
.cursor folder to your project root✨ No setup, no configuration, no hassle. Just better code, automatically.
⚠️ Note: These rules work with Cursor's AI features. Make sure you have Cursor installed and the
.cursorfolder in your project root for them to take effect.
Made with ❤️ for the developer community
If this helps you write better code, consider giving it a ⭐ and sharing it with your team!
A practical approach to managing multiple AI agents in Cursor through strict file-tree partitioning and domain boundarie
📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors
Cursor AI 编程规则精选集 | 132+ 规则,覆盖前端/后端/AI/DevOps 等 32 个领域