Rules For AI

This page is your cheat sheet for getting Cursor (the AI code editor) to write code that fits the Gravity boilerplate.

If you’re building Views with ShadCN, setting up routes, styling with Tailwind, or wiring up API calls, these rules will help the AI understand how you want things done. It’s like giving Cursor the team handbook—so it stops guessing and starts being useful.

We’ve packed it with clear examples, naming rules, and smart shortcuts so your components, forms, and views all feel seamless and stay in sync with the rest of the app.

Both the server and client repos include a .cursorrules file describing how the project is structured and how code should be written.

If you're using windsurf, you can rename .cursorrules to .windsurfrules

Last updated

Was this helpful?