Skip to content
Prompt

cursor-rules-and-prompts — Cursor Rules

by thehimel

AI Summary

This Cursor rule enforces grammatically correct article usage (a, an, the) in code comments to improve readability and professionalism. It benefits developers and teams who prioritize code quality and documentation standards.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "cursor-rules-and-prompts — Cursor Rules" prompt rules to my project.
Repository: https://github.com/thehimel/cursor-rules-and-prompts

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Enforce proper use of articles (a, an, the) in comments to maintain grammatical correctness and readability.

Correct Usage

• ✅ "Initialize the database connection." • ✅ "Create an instance of the User class." • ✅ "Add a new item to the list." • ✅ "Build the command based on the platform." • ✅ "Handle the Finder separately (macOS only)." • ✅ "Get the icon path for the window." • ✅ "Open the project in the specified IDE."

Incorrect Usage

• ❌ "Initialize database connection." → "Initialize the database connection." • ❌ "Create instance of User class." → "Create an instance of the User class." • ❌ "Add new item to list." → "Add a new item to the list." • ❌ "Build command based on platform." → "Build the command based on the platform." • ❌ "Handle Finder separately." → "Handle the Finder separately." • ❌ "Get icon path for window." → "Get the icon path for the window." • ❌ "Open project in specified IDE." → "Open the project in the specified IDE."

Proper Use of Articles in Comments

All comments must include appropriate articles ('a', 'an', 'the') where necessary to maintain grammatical correctness and readability.

Rules

• Use "the" when referring to a specific or previously mentioned item • Use "a" or "an" when introducing a new, non-specific item • Use "an" before words starting with a vowel sound • Do not omit articles where they are grammatically required

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
Adoption100+ stars on GitHub
214 ★ · Growing
DocsREADME + description
Well-documented

GitHub Signals

Stars214
Forks52
Issues0
Updated1mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more