thehimel/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.

245Stars on the repository
30Mods indexed here, across every type
25d agoLast push, which is what freshness is scored on
noneNo LICENSE: all rights reserved, so bodies are not copied

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Ensures that when creating rules or prompts for AI agents, copyrighted course materials are never included. Requires using generic, domain-agnostic examples instead of specific course content, terminology, or examples from lectures.

not rated 245 25d ago A 404 tokens

exam-answer-format

03

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Guidelines for writing exam-style answers in a practical, conversational style with definitions first followed by real-world examples.

not rated 245 25d ago A 2,608 tokens

documentation

09

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Rules for documentation structure, file naming conventions, source attribution, code comments style, and linking patterns. Ensures consistent markdown organization and neutral, professional documentation.

not rated 245 25d ago A 721 tokens

human-writing-style

10

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Rules for writing naturally and authentically - avoid robotic AI tone in documentation, code comments, error messages, and explanations. Write like a human colleague, not a customer service bot.

not rated 245 25d ago A 1,007 tokens

line-wrapping

12

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Guidelines for wrapping text lines at approximately 120 characters for better readability in documentation.

not rated 245 25d ago A 16 tokens

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Rules for organizing feature documentation sequentially when implementing new features. Determines whether to use sequential numbering and folder structure based on existing documentation patterns.

not rated 245 25d ago A 672 tokens

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Rules for organizing Electron projects with clear separation between foundational/template code and application-specific code. Template code goes in src/, app-specific code goes in src/app/.

not rated 245 25d ago A 553 tokens

code-migration

16

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Guidelines for ensuring all references are updated when moving files or directories. Covers code references, configuration files, documentation, and verification steps.

not rated 245 25d ago A 255 tokens

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Rules for organizing feature code in single directories. All feature-related code (types, hooks, components, utils) must be grouped together in one feature directory.

not rated 245 25d ago A 502 tokens

file-endings

19

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Files must end with exactly one newline character. No trailing newlines beyond the single required newline at the end of file content.

not rated 245 25d ago A 399 tokens

file-organization

20

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Rules for consolidating related components into single files instead of splitting them. Defines when to consolidate vs split components based on coupling and domain.

not rated 245 25d ago A 453 tokens

libraries

21

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Rules for library selection - prefer popular, well-maintained libraries over custom code. Research and use battle-tested solutions before writing custom implementations.

not rated 245 25d ago A 184 tokens

restrictions

22

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Restrictions and constraints - what not to do (inline styles, custom CSS, new UI libraries, large refactors) and what to do (minimal changes, follow patterns, reuse code).

not rated 245 25d ago A 151 tokens

thehimel/cursor-rules-and-prompts

Cursor rule Cursor

Meta-rule ensuring all rules in .cursor/rules/ directory are always followed in every conversation and project. This rule takes precedence and ensures comprehensive rule compliance.

not rated 245 25d ago A 431 tokens

At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: