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

# Download to your project root
curl -o .cursorrules "https://raw.githubusercontent.com/thehimel/cursor-rules-and-prompts/main/.cursor/rules/general/articles-in-comments.mdc"

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

Quality Score

B

Good

79/100

Standard Compliance78
Documentation Quality82
Usefulness45
Maintenance Signal100
Community Signal100
Scored Yesterday

GitHub Signals

Stars212
Forks52
Issues0
Updated2d ago
View on GitHub

Trust & Transparency

No License Detected

Review source code before installing

Verified Open Source

Hosted on GitHub — publicly auditable

Actively Maintained

Last commit 2d ago

212 stars — Growing Community

52 forks

My Fox Den

Community Rating

Works With

Cursor