Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:
Hi community,
I’m facing difficulties using Cursor to maintain the conventions clearly defined in the .cursorrules
file. The current setup is as follows:
- In the Database (Supabase/PostgreSQL):
- Tables:
snake_case
and plural (e.g.,user_profiles
) - Columns:
snake_case
(e.g.,first_name
) - Relationships:
snake_case
with_id
suffix (e.g.,user_id
)
- Tables:
- In Prisma Schema:
- Models: PascalCase (e.g.,
UserProfile
) - Fields: camelCase
- Use of
@map
and@@map
to map names tosnake_case
- Models: PascalCase (e.g.,
When developing @cursor/rules
, @templates
, and trying to ensure Cursor consistently follows these rules, I frequently find it ignores or incorrectly applies the established conventions. This happens even after repeatedly clarifying and confirming that the rules have been read by Cursor.
For example, Cursor recently generated this Prisma model:
model Booking {
id String @id @default(uuid()) @db.Uuid
booking_ref String @unique @map("booking_ref")
departure_id String @db.Uuid @map("departure_id")
departure_date_id String @db.Uuid @map("departure_date_id")
notes String? @db.Text @map("notes")
paid_amount Decimal? @db.Decimal(12, 2) @map("paid_amount")
payment_status PaymentStatus @default(UNPAID) @map("payment_status")
status BookingStatus @default(PENDING)
total_price Decimal @db.Decimal(12, 2) @map("total_price")
user_id String? @db.Uuid @map("user_id")
created_at DateTime @default(now()) @map("created_at") @db.Timestamptz(6)
updated_at DateTime @updatedAt @map("updated_at") @db.Timestamptz(6)
booking_passengers BookingPassenger[]
departure Departure @relation(fields: [departure_id], references: [id])
departure_date DepartureDate @relation(fields: [departure_date_id], references: [id])
user User? @relation(fields: [user_id], references: [id])
@@index([departure_id])
@@index([departure_date_id])
@@index([user_id])
@@index([status])
@@map("bookings")
}
The typical response after pointing out the issue:
“You’re absolutely right! I apologize for the confusion and for not correctly following the rules YOU established.”
I’m not suggesting Cursor doesn’t work well, but constantly reminding it of the rules is incredibly exhausting.
This makes the workflow quite frustrating, as I waste a lot of time manually correcting each instance.
Has anyone else experienced something similar? Any advice or solutions you’ve found to improve this situation?
Thanks in advance for any help!
Best regards!
Check the forum to ensure the issue hasn’t been reported already
Provide a clear description of the bug
Explain how to reproduce the bug (if known)
Attach screenshots or recordings (e.g.,
.jpg
, .png
, .mp4
).
Tell us your operating system and your Cursor version (e.g.,
Windows, 0.x.x
).
Tell us if the issue stops you from using Cursor.