Skip to content

Add cursor-rules-pack: production-tested TypeScript rules#46

Open
oliviacraft wants to merge 7 commits intocursor:mainfrom
oliviacraft:add-cursor-rules-pack
Open

Add cursor-rules-pack: production-tested TypeScript rules#46
oliviacraft wants to merge 7 commits intocursor:mainfrom
oliviacraft:add-cursor-rules-pack

Conversation

@oliviacraft
Copy link
Copy Markdown

Cursor Rules Pack

Adds the cursor-rules-pack plugin — production-tested Cursor Rules for TypeScript projects.

What's included

3 rule files organized by scope:

  • rules/core.mdc — applies to all TypeScript files: dependency discipline, error handling, comments policy, naming conventions, file size discipline
  • rules/nextjs.mdc — Next.js App Router: server components first, state management hierarchy, parallel data fetching, loading/error states
  • rules/database.mdc — backend patterns: database query safety (always use select), API route security checklist, webhook security (signature + idempotency), Prisma best practices

Why these rules

Each rule addresses a specific failure pattern observed in production:

  • Dependency discipline → prevents bloated package.json with abandoned packages
  • Error handling → eliminates silent failures that are impossible to debug
  • Database query safety → prevents accidental exposure of password hashes and tokens
  • Webhook security → fixes the Website design system extraction #1 webhook bug: processing without signature verification

Source

Happy to adjust format, naming, or structure to match the conventions of this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant