RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/dodgecfr/combatfilms-webapp

Cursor rule

.cursor/rules/db.mdc

Database rules for working with drizzle schemas and creating backend apis

Cursor rules

Quality

44/100

Scores the file, not the repository.

Length

139 words

0 headings · 2 code blocks

Repository

0

— · pushed 407 days ago

Last changed

3 days ago

First indexed 3 days ago.
dodgecfr/combatfilms-webapp/.cursor/rules/db.mdcRawGitHub
1---
2description: Database rules for working with drizzle schemas and creating backend apis
3globs: apps/**/*.ts
4alwaysApply: false
5---
6Leverage strings with drizzle types, instead of enums:
7`status: text("status").$type<pending | cancelled |error >().notNull()`
8 
9Only use varchar for ids, similiar to the users table. Otherwise use text.
10 
11When creating a new table, leverage the id util `packages/id/src/generate.ts`
12<new_table_prefix>
13```ts
14`packages/id/generate.ts`
15 
16const prefixes = {
17 post: "post",
18 property: "prop",
19 // Add new prefixes here
20} as const;
21```
22For generate.ts, all you have to do is add the table name (or varation) as a key to the const. No need to use nanoid or change any other code.
23Also abbreviate longer words, i.e property: "cust",
24 
25 
26 
27Then inside `packages/db/schema.ts` you can use it like so:
28```ts
29export const properties = pgTable("properties", {
30 id: varchar("id", { length: 255 })
31 .primaryKey()
32 .$defaultFn(() => newId("property"))
33}
34```
35</new_table_prefix>
36 
37Users table doesn't need items like avatar or name, unless specificially required to sync via clerk
38 

Stack — with the evidence

typescript

(1.00)

turborepo

(1.00)

biome

(1.00)

vercel

(1.00)

node

(0.70)

react

(0.70)

nextjs

(0.70)

hono

(0.70)

drizzle

(0.70)

postgres

(0.70)

tailwind

(0.70)

vitest

(0.70)

eslint

(0.70)

javascript

(0.60)

bun

(0.60)

monorepo

(0.60)

pnpm

(0.60)

Glob targeting

  • apps/**/*.ts

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
dodgecfr
Language
—
License
—
Archived
no

All configs in this repo

Also in dodgecfr/combatfilms-webapp

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
dodgecfr/combatfilms-webapp.cursor/rules/api.mdc · 0Cursor rulestypescriptturborepo+15setuptesttypessecurity+386/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
Diff against .cursor/rules/api.mdc Diff against .cursor/rules/frontend.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack