Skip to content

Add Cursor or other AI rules and context to UI repos #4719

@mlehotskylf

Description

@mlehotskylf

Add Cursor rules to /.cursor/rules/ Here is the list of UI repos:

These rules define how Cursor should generate and inspect the code in Cursor IDE. You can read more here: https://cursor101.com/cursor/rules

Some of our LF repos already have it: membership-ui and lf-dbt.

I also attached AI generated sample rules for Angular project. It is just an example and has more files and different structure than in membership-ui and lf-dbt, but it should also work. Use any structure you want, but start with simple rules. Later you can adjust them based on your need and best practices.

cursor_rules_angular.zip

UPDATE:
Here is latest request from David: https://linuxfoundation.slack.com/archives/C0697E1QHNG/p1755624915721359

We’re starting to roll out some AI attribution conventions when generating our git commits. Please take a look at this short document on the topic: https://github.com/linuxfoundation/lfx-engineering/blob/main/ai/git-commits.md
I know some AI tools do this automatically - some may require a git hook or perhaps a “context file” note/entry (such as Claude.md for Claude Code - or Cursor Rules file for Cursor).
I’d love for your team to adopt this construct. Let me know if you have any feedback. Thanks!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestinternalInternal tickets

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions