Loading...
Loading...
When the user repeats the same correction or convention multiple times, suggest a Cursor rule to encode it permanently.
npx skill4agent add spencerpauly/awesome-cursor-skills suggesting-cursor-rules.cursor/rules/I notice you've corrected me on [pattern] a couple times. Want me to
create a Cursor rule so I always follow this convention?.cursor/rules/<name>.mdc---
description: <what this rule enforces>
globs: <file pattern this applies to>
---
- <the convention, stated clearly>---
description: Import conventions
globs: **/*.{ts,tsx}
---
- Use relative imports, not @ aliases
- Import from the same package with relative paths (e.g. "../../queries/..." not "src/queries/...")---
description: Comment style
globs: **/*.{ts,tsx,js,jsx}
---
- Do not add comments that narrate what the code does
- Only comment non-obvious intent, tradeoffs, or constraints---
description: Test file conventions
globs: **/*.test.{ts,tsx}
---
- Co-locate test files next to the source file they test
- Name test files <source>.test.ts, not __tests__/<source>.ts.cursor/rules/