Conversation
|
@runningcode, I noticed you have been using Claude Code, so I think having this could be helpful! |
|
|
||
| ## Rule Location and Structure | ||
|
|
||
| This project uses **Cursor's Context Rules** system located in `.cursor/rules/`. **ALWAYS** read and load the content of relevant rules from this directory into context when working on the codebase. |
There was a problem hiding this comment.
I believe you need to import other files with the @ syntax. https://docs.anthropic.com/en/docs/claude-code/memory#claude-md-imports
There was a problem hiding this comment.
From what I can tell, it seems like this @ syntax only supports individual files, not importing an entire directory. Let's try with this for now, and see if we need to make any changes later
|
|
||
| ### Discovering Available Rules | ||
|
|
||
| Read all files in the `.cursor/rules/` directory to discover what rules are available. Each rule file uses the `.mdc` extension (Markdown with frontmatter). |
There was a problem hiding this comment.
amazing, I hope this will read the rule to run formatting before making any commit!
|
|
||
| ## Important Notes | ||
|
|
||
| - **Do NOT duplicate rule content** in your responses - reference and follow the rules instead |
There was a problem hiding this comment.
I feel like the example workflow below duplicates the rule selection strategy section from above.
There was a problem hiding this comment.
Yeah, I suppose so
|
Just curious, is there some canonical example of re-using cursor rules in claude or did you just create this? |
szokeasaurusrex
left a comment
There was a problem hiding this comment.
Just curious, is there some canonical example of re-using cursor rules in claude or did you just create this?
I could not find any information on how other folks have done this, so I am just experimenting! 🧑🔬
77f3c91 to
767b2d8
Compare
Add a `CLAUDE.md` file, which instructs the Claude Code agent to read and follow the Cursor rules.
767b2d8 to
598626e
Compare
Add a
CLAUDE.mdfile, which instructs the Claude Code agent to read and follow the Cursor rules.