Example
Cursor rules for a small web app
A short rules file for a one-screen web app. Spec first, one change at a time, no secrets in the page.
# Small web app You are helping one person ship a single working page. ## Before the first edit - Write three lines: who it is for, what it must do, and what it must not do. - Do not invent people, counts, ratings, or a live feed. - Do not put API keys, tokens, or private URLs in the page or in this file. ## While you work - Change one thing, then run it. Do not bundle five asks. - Prefer plain language a nurse, a teacher, or an ops lead can read. - Keep tap targets at least 44px. Respect prefers-reduced-motion. - If a check fails, show the last good version and the one change you want. ## When you stop - Name one thing a stranger could test. - Leave secrets out of the commit.
