Skip to content

Commit f34c64a

Browse files
committed
Improve instructions and rules for Cursor Agents
1 parent 028cae6 commit f34c64a

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.cursor/commands/test.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,7 @@ Steps to verify:
7878

7979
1. run `npm run test` to perform testing.
8080
2. If the tests fail, FIX the code and RETRY loops until success.
81-
3. If the tests pass, respond "Done".
82-
4. Never respond "Done" until you have verified that the tests are complete and cover all the functionality of the source file.
81+
3. run`npx tsc --noEmit`to check for type errors.
82+
4. run `npm run lint` to check for linting errors.
83+
5. If the tests AND linting AND type errors pass, respond "Done".
84+
6. NEVER respond "Done" until you have verified that the tests are complete and cover all the functionality of the source file and that there are no linting/type errors or warnings.

.cursor/rules/environment.mdc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,13 @@ If you encounter `npm error code ERESOLVE` (Peer Dependency Conflict):
4646
# ✅ DO: Correct nvm usage
4747
nvm use 24
4848

49-
# ✅ DO: Simple commands
50-
npm run dev
51-
npx npm run db:generate # Generate migration files
52-
npx npm run db:push # Push schema changes to SQLite
53-
npx npm run db:studio # Open Drizzle Studio GUI (AI Agent does not need to do this, its interactive and can be done by the user)
54-
5549
# ✅ DO: Check version if unsure
56-
node -v && npm run dev
50+
node -v
51+
52+
# ✅ DO: Simple commands
53+
npm run dev # Run development server
54+
npx drizzle-kit generate # Generate migration files
55+
npx drizzle-kit push --force # Push schema changes to SQLite
5756

5857
# ✅ DO: Correct npm usage
5958
npm install package-name # Add new dependency (updates lockfile)

0 commit comments

Comments
 (0)