Blog/Published 2026-08-21
A short rules file cuts surprise abstractions during refactors. You still read the diff.
Without rules, Cursor is a keen junior: tests go green, a banned store appears, or errors vanish into an empty catch.
Do not write “you are a world-class engineer.” Write facts the repo already has: folders, commands, banned imports.
Then give a bounded job: “only utils/date.ts and its tests.” If the diff leaves that tree, the rule is soft or the ask is wide.
When the model edits rules, review that hunk alone. It will delete a ban to make the task easy.
Keep rules in version control. That beats each person typing “we do not use that library” into chat.
Rules are not an access-control system. Secrets and production stay on your old path.