Skip to content

meta(claude): Add CLAUDE.md#2728

Merged
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/claude
Sep 8, 2025
Merged

meta(claude): Add CLAUDE.md#2728
szokeasaurusrex merged 1 commit intomasterfrom
szokeasaurusrex/claude

Conversation

@szokeasaurusrex
Copy link
Copy Markdown
Member

Add a CLAUDE.md file, which instructs the Claude Code agent to read and follow the Cursor rules.

@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner September 8, 2025 09:46
@szokeasaurusrex szokeasaurusrex requested review from lcian and runningcode and removed request for a team September 8, 2025 09:46
@szokeasaurusrex
Copy link
Copy Markdown
Member Author

@runningcode, I noticed you have been using Claude Code, so I think having this could be helpful!

Copy link
Copy Markdown
Member

@lcian lcian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, that's smart :)


## 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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe you need to import other files with the @ syntax. https://docs.anthropic.com/en/docs/claude-code/memory#claude-md-imports

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like the example workflow below duplicates the rule selection strategy section from above.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I suppose so

@runningcode
Copy link
Copy Markdown
Contributor

Just curious, is there some canonical example of re-using cursor rules in claude or did you just create this?

Copy link
Copy Markdown
Member Author

@szokeasaurusrex szokeasaurusrex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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! 🧑‍🔬

@szokeasaurusrex szokeasaurusrex changed the base branch from main to master September 8, 2025 12:17
Add a `CLAUDE.md` file, which instructs the Claude Code agent to read and follow the Cursor rules.
@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) September 8, 2025 12:18
@szokeasaurusrex szokeasaurusrex merged commit 752d671 into master Sep 8, 2025
23 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/claude branch September 8, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants