Cursor rule
.cursor/rules/general.mdcFollow these rules for all requests.
Cursor rules
Quality
69/100
Scores the file, not the repository.Length
438 words
9 headings · 2 code blocksRepository
9
— · pushed 394 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Project Instructions7# Project Instructions89Use specification and guidelines as you build the app.1011Write the complete code for every step. Do not get lazy.1213Your goal is to completely finish whatever I ask for.1415You will see <ai_context> tags in the code. These are context tags that you should use to help you understand the codebase.1617## Overview1819This is a web app template.2021## Tech Stack2223- Frontend: Next.js, Tailwind, Shadcn, Framer Motion24- Backend: Postgres, Supabase, Drizzle ORM, Server Actions25- Auth: Clerk26- Payments: Stripe27- Analytics: PostHog28- Deployment: Vercel2930## Project Structure3132- `actions` - Server actions33 - `db` - Database related actions34 - Other actions35- `app` - Next.js app router36 - `api` - API routes37 - `route` - An example route38 - `_components` - One-off components for the route39 - `layout.tsx` - Layout for the route40 - `page.tsx` - Page for the route41- `components` - Shared components42 - `ui` - UI components43 - `utilities` - Utility components44- `db` - Database45 - `schema` - Database schemas46- `lib` - Library code47 - `hooks` - Custom hooks48 - `services` - Business logic services49- `prompts` - Prompt files50- `public` - Static assets51- `types` - Type definitions5253## Rules5455Follow these rules when building the app.5657### General Rules5859- Use `@` to import anything from the app unless otherwise specified60- Use kebab case for all files and folders unless otherwise specified61- Don't update shadcn components unless otherwise specified6263#### Env Rules6465- If you update environment variables, update the `.env.example` file66- All environment variables should go in `.env.local`67- Do not expose environment variables to the frontend68- Use `NEXT_PUBLIC_` prefix for environment variables that need to be accessed from the frontend69- Always access environment variables via the centralized config module (`serverConfig` and `publicEnv` from `@/lib/config`). Do not use `process.env` directly in application code.7071#### Type Rules7273Follow these rules when working with types.7475- When importing types, use `@/types`76- Name files like `example-types.ts`77- All types should go in `types`78- Make sure to export the types in `types/index.ts`79- Prefer interfaces over type aliases80- If referring to db types, use `@/db/schema` such as `SelectTodo` from `todos-schema.ts`8182An example of a type:8384`types/actions-types.ts`8586```ts87export type ActionState<T> =88 | { isSuccess: true; message: string; data: T }89 | { isSuccess: false; message: string; data?: never }90```9192And exporting it:9394`types/index.ts`9596```ts97export * from "./actions-types"98```99100- Always access environment variables via the centralized config module (`serverConfig` and `publicEnv` from `@/lib/config`). Do not use `process.env` directly in application code.101102
Also in sportiz91/vibe-template
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| sportiz91/vibe-template.cursor/rules/auth.mdc · 9 | Cursor rules | securitydo-not | 32/100 | 3 days ago | |
| sportiz91/vibe-template.cursor/rules/storage.mdc · 9 | Cursor rules | archsecuritydo-not | 65/100 | 3 days ago | |
| sportiz91/vibe-template.cursor/rules/backend.mdc · 9 | Cursor rules | do-not | 61/100 | 3 days ago | |
| sportiz91/vibe-template.cursor/rules/coding-standards.mdc · 9 | Cursor rules | styletypesui | 36/100 | 3 days ago | |
| sportiz91/vibe-template.cursor/rules/frontend.mdc · 9 | Cursor rules | do-not | 61/100 | 3 days ago | |
| sportiz91/vibe-template.cursorrules · 9 | .cursorrules | stylearchsecuritydo-not+1 | 49/100 | 3 days ago | |
| sportiz91/vibe-templateCLAUDE.md · 9 | CLAUDE.md | setuptestlint-formatstyle+7 | 88/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
