AcademyRulesDevelopment

Cursor rules pack v2 (sample)

Front-end development teams who want the AI to follow clear rules on dependencies, errors, comments and state management.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/cursor-rules-pack-v2-cursorrules-prompt-file.mdc -o .cursor/rules/cursor-rules-pack-v2.mdc
cursor-rules-pack-v2.mdc

Loading the file...

What it does

A sample of rules from a larger Cursor rules pack. It covers checking a new dependency before adding it, explicit error handling with typed errors and logging, a policy of commenting only the why, and a state hierarchy that separates URL state, React state, Zustand and React Query.

Use cases

  1. 01Review a new npm package before adding it
  2. 02Handle async errors with typed errors and logging
  3. 03Decide where each kind of state should live

Questions about
Cursor rules pack v2 (sample).

What is Cursor rules pack v2 (sample) used for?

Front-end development teams who want the AI to follow clear rules on dependencies, errors, comments and state management. A sample of rules from a larger Cursor rules pack. It covers checking a new dependency before adding it, explicit error handling with typed errors and logging, a policy of commenting only the why, and a state hierarchy that separates URL state, React state, Zustand and React Query.

How do I install Cursor rules pack v2 (sample)?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/cursor-rules-pack-v2-cursorrules-prompt-file.mdc -o .cursor/rules/cursor-rules-pack-v2.mdc

Is Cursor rules pack v2 (sample) open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Cursor rules pack v2 (sample) safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.