et's add tables to /.cursor/rules/ci.mdc to document the 'special' folders, the assumptions, and a table of the env vars, what they're used for, and example values (if certain) @ci.mdc
Restore checkpoint
Thought for 2 seconds
Okay, I will enhance the ci.mdc rule by adding tables to document the key directories, assumptions, and environment variables used in the CI workflow.
I need to read the file first to ensure I append the new tables correctly.
Could not find file '.github/ci.mdc' in the workspace.
Thought for 2 seconds
I did two things to make it more likely Cursor will create or update rules in the proper directory, not my original work. I picked these up from a blog somewhere.
I added a editor association for rule files to have the default behavior.
I have a cursor rule I explicitly reference to help guide creating or editing rule content.
Rule snippet
---
description: Use ALWAYS when asked to CREATE A RULE or UPDATE A RULE or taught a lesson from the user that should be retained as a new rule for Cursor
globs: .cursor/rules/*.mdc
alwaysApply: false
---
### Location
- Path: `.cursor/rules/`
- Extension: `.mdc`
- Never modify files outside of `.cursor/rules/` directory when creating or updating rules.
Both of these things together made it more likely for me that when I requested in Agent mode to create or update a rule that it did so successfully.