|
1 | 1 | # How to share [[CursorAI/Project Rules]] across multiple projects and users |
2 | | - - Cursor project rules are a unique set of [[Metaprogramming]] tools. A set of related cursor project rules define the [[CursorAI Agent Mode]]'s [[Agentic System]], each encapsulating a particular aspect of the overall capabilities. |
| 2 | + - Cursor project rules are a unique set of [[Metaprogramming]] tools. A set of related cursor project rules define the [[CursorAI Agent Mode]]'s [[Agentic System]], each encapsulating a particular aspect of the overall capabilities of that system. |
3 | 3 | - It is important for Cursor's users be able to share and collaborate on cursor project rules in a modular, open-source manner, while maintaining the ability to version the rules and obtain updates to the rules after they have been tested. |
4 | | - - In my opinion, they deserve a new type of [[Package Manager]] that allows for rapid prototyping, that is, that allowed one to install a particular version of a "package" of rules, and then modify the library on the fly in response to observed behavior, and have the option to easily offer those contributions back to the source as a merge request. The proposal for such a package manager is out of the scope of this page, however. |
| 4 | + - In my opinion, Cursor Project Rules deserve a new type of [[Package Manager]] that allows for rapid prototyping, that is, that allowed one to install a particular version of a "package" of rules, and then modify the library on the fly in response to observed behavior, and have the option to easily offer those contributions back to the source as a merge request. The proposal for such a package manager is out of the scope of this page, however. |
5 | 5 | - This page focuses on how to achieve collaborative sharing of versioned, vetted project rules across repositories and users. |
6 | 6 | - ## It is not currently feasible to create git submodules under `.cursor/rules` |
7 | 7 | - It would be great if Cursor sourced project rules in subdirectories. This would enable a modular and related collection of cursor project rules to be located in a single git repository. Then downstream projects could use [[git submodules]] to link them in under `.cursor/rules/<submodule_folder>`. Any changes to the rule could be contributed back to the source repository for sharing with others. |
8 | 8 | - Unfortunately, according to my tests at [[CursorAI Project Rule Tests]], in particular, [[CursorAI/Project Rule/Test/Agent/❌/Find MDC/in Subfolder]], this is not currently possible. |
| 9 | + - See [[CursorAI/Forum/25/03/Scan for Project Rules in Subdirectories of .cursor/rules]] for a feature request that has been submitted. |
9 | 10 | - ## Possible workarounds |
10 | 11 | - ### Copy and paste |
11 | 12 | - Of course, it's possible to copy and paste cursor project rules from one repository into the `.cursor/rules` directory of each project or user. Over time, though, there will be drift between the most up-to-date version of the rules from the upstream repository and the one that was copied in. |
|
0 commit comments