Locate Cursor user rules storage on disk
Session from merchantscroll-traces on Hugging Face by vedalken · MIT · condensed by Coders Talk
16ssession
1interventions
GOAL
Find out where Cursor stores user rules (specifically the 'Package Management with uv' rule) on the developer's machine.
- +0Prompt · +0Where are Cursor rules stored on my computer? e.g. the 'Package management with uv' rule
- +0mAgent did · +0mSearched extensively across ~/.cursor, ~/.config/Cursor, settings.json, storage.json and the state.vscdb SQLite database for the rule text and any rules/skills folders.
- +0mFail · +0mConcluded the rule was not a plain file but stored inside Cursor's internal state.vscdb SQLite database, since it found no ~/.cursor/rules folder at the time.
- +0mIntervention · +0mAsked the agent to specifically check ~/.cursor again for skills or rules folders.Why: I didn't buy the SQLite-only answer and wanted it to look again directly at the folder instead of guessing from the database.
- +0mAgent did · +0mRe-listed ~/.cursor and found rules/ and skills/ directories present, then read force-uv.md to confirm the rule content.
- +0mOutcome · +0mConfirmed the rule lives at ~/.cursor/rules/rules/force-uv.md among 10 rule files, plus a ~/.cursor/skills/ folder with several skill directories.
VERDICT
Next time I'd just tell it to `ls -la ~/.cursor/rules` and `~/.cursor/skills` directly instead of letting it guess from settings.json and the SQLite state.vscdb. The correction that actually worked was me asking it to go back and literally check ~/.cursor again rather than trust its database theory.