cursor-rules-and-prompts
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.
Install / Use
npx skills add thehimel/cursor-rules-and-promptsInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
AutomationSupported Platforms
Our assessment of cursor-rules-and-prompts
cursor-rules-and-prompts scores 89/100 on our quality scale, 1329th of 2,877 Automation skills we index (top 47%).
Its .cursorrules is 8.0 KB long, well organised into 24 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 251 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated about 3 months ago, so cursor-rules-and-prompts is actively maintained.
- Our last check on 2026-10-21 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 88/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit โ read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk โ read a skill before letting an agent act on it.
cursor-rules-and-prompts compared with similar skills
All 4 of these similar skills score higher than cursor-rules-and-prompts; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cursor-rules-and-prompts (this skill)by thehimel | 89 | 251 | 3mo ago | .cursorrules |
| taste-skillby Leonxlnx | 100 | 111.0k | 1d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 109.5k | 1d ago | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 98.7k | today | MCP Server |
| rufloby ruvnet | 100 | 81.1k | today | MCP Server |
Frequently asked questions
- How do I install cursor-rules-and-prompts?
- Run
npx skills add thehimel/cursor-rules-and-prompts. The install tabs above show the steps for each supported agent. - Which AI agents does cursor-rules-and-prompts work with?
- It is written for Cursor, as a .cursorrules file. Other agents that read the same format can often use it too.
- Is cursor-rules-and-prompts safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 88/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cursor-rules-and-prompts still maintained?
- The repository was last updated about 3 months ago, so cursor-rules-and-prompts is actively maintained.
Skill content
View source on GitHub๐ฏ Cursor Rules & Prompts
๐ก 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.
<div align="left"> <a href=".cursor/rules" style="text-decoration: none; display: inline-block; margin: 10px;"> <img src="https://img.shields.io/badge/๐_RULES-4A90E2?style=for-the-badge&logo=book&logoColor=white" alt="Rules" style="height: 70px;"/> </a> <a href=".cursor/prompts" style="text-decoration: none; display: inline-block; margin: 10px;"> <img src="https://img.shields.io/badge/๐ฌ_PROMPTS-50C878?style=for-the-badge&logo=lightbulb&logoColor=white" alt="Prompts" style="height: 70px;"/> </a> </div>๐ What This Is
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.
Key Features
โจ 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
๐ Why Use This
- โ Consistency: Your codebase stays consistent even when multiple people (or AI) work on it
- โก Less Review Time: Fewer style issues means faster code reviews
- ๐ Better Onboarding: New team members (and AI) understand your patterns immediately
- ๐ก๏ธ Quality by Default: Best practices are enforced automatically, not by memory
- โฑ๏ธ Time Savings: Stop explaining the same conventions repeatedly
๐ก Real-World Example
โ 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!
๐ Quick Start
Option 1: Manual Setup
- ๐ฅ Clone or copy this repository into your project
- ๐ Place the
.cursorfolder in your project root - โจ That's it - Cursor will automatically use these rules
Option 2: Automatic Sync (Recommended)
Use 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:
- ๐ Sync files from source to all destinations in
~/PycharmProjects/ - ๐ Use ID-based matching to handle file renames and updates
- ๐ Support path-based syncing via
.includefile - ๐๏ธ Automatically clean up orphaned files
- ๐ Show progress for each destination
๐ก 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.
๐ฆ What's Included
This repository contains a growing collection of rules and prompts organized by category. The rules cover areas like:
- ๐จ Code Style: Import patterns, component structure, styling conventions
- ๐ Organization: File structure, feature organization, code migration
- ๐ Documentation: Writing standards, comment style, documentation patterns
- ๐๏ธ Infrastructure: Route management, configuration patterns
- ๐ซ Constraints: What to avoid, best practices
- ๐ Dependencies: Library selection, component usage
๐ 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. ๐ฑ
๐ Rule Format
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:
- โ๏ธ Concise and generic - work across projects
- ๐ Language independent - not tied to specific tech stacks
- ๐ฏ Action-oriented - explain what to do, not just how
- ๐ Well-organized - categorized for easy navigation
๐ฏ Use Cases
๐ฅ For Teams
- ๐ Onboarding: New developers (and AI) understand your patterns immediately
- ๐ Code Reviews: Fewer style discussions, more focus on logic
- ๐ค Consistency: Multiple developers produce code that looks like one person wrote it
๐งโ๐ป For Solo Developers
- โญ Quality: Best practices enforced automatically
- โก Speed: Less time fixing style issues, more time building features
- ๐ฎ Future-Proofing: When you add team members, they'll follow the same patterns
๐ For Open Source Projects
- ๐ค Contributor Experience: Clear, consistent rules for everyone
- ๐ง Maintainability: Easier to maintain when code follows patterns
- ๐ Documentation: Rules serve as living documentation of your standards
๐ ๏ธ Customization
These rules are designed to be:
- ๐ Generic enough to work in most projects
- ๐ฏ Specific enough to be useful
- โ๏ธ Easy to modify for your needs
Feel free to:
- โ Add your own rules
- โ๏ธ Modify existing ones
- โ Remove rules that don't fit your project
- ๐ Create new categories as needed
๐ See the rule creation guidelines in
.cursor/rules/organization/rule-creation.mdcfor details on creating new rules.
๐ค Contributing
This is a proprietary project. For permissions or inquiries, please contact Himel Das.
๐ License
PROPRIETARY LICENSE - All Rights Reserved
Copyright (c) 2025 Himel Das
This software is proprietary and confidential. You are NOT permitted to:
- โ Share, distribute, or publish this software
- โ Modify or create derivative works
- โ Use this software for commercial purposes
If you are granted explicit permission to share, you must provide attribution to Himel Das.
See LICENSE file for full terms and conditions.
๐ค Author
Himel Das
Created to help developers leverage Cursor AI more effectively and maintain high code quality standards.
๐ฌ Getting Started Today
- ๐ด Fork or clone this repository
- ๐ Copy the
.cursorfolder to your project root - ๐ป Start coding - the rules work automatically
โจ 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.
<div align="left">
Made with โค๏ธ for the developer community
If this helps you write better code, consider giving it a โญ and sharing it with your team!
</div>Related Skills
taste-skill
111.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
109.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu โ one CLI, zero API fees.
Scrapling
98.7k๐ท๏ธ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
ruflo
81.1k๐ The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit โ see the Safety scan above for what the skill file itself contains.
