Masterpoint's open source collection of AI/LLM prompts, Cursor rules, and templates for more effective workflows.
You can keep it basic and copy individual Cursor Rules into projects or use rule-tool to create symlinks in multiple projects.
rule-tool is a go CLI tool that generates symlinks between a centrally managed Cursor Rules repo and various projects. The advantage is that you're able to reference or pull in the same central set of Cursor Rules across multiple projects.
shared-prompts/
└── rules/
├── dockerfile-best-practices.mdc
├── tf-root-module-layout.mdc
└── tf-testing-child-module.mdc
project-A/.cursor/rules
├── tf-testing-child-module.mdc → ../../shared-prompts/rules/tf-testing-child-module.mdc
├── tf-root-module-layout.mdc → ../../shared-prompts/rules/tf-root-module-layout.mdc
└── ...
project-B/.cursor/rules
├── dockerfile-best-practices.mdc → ../../shared-prompts/rules/dockerfile-best-practices.mdc
├── tf-testing-child-module.mdc → ../../shared-prompts/rules/tf-testing-child-module.mdc
└── ...To start using rule-tool,
-
Install rule-tool following these instructions.
-
Git clone this
shared-promptsrepomkdir -p $HOME/tooling cd $HOME/tooling git clone [email protected]:masterpointio/shared-prompts.git
-
Export an env var
RULE_TOOL_PATHthat points to the shared-prompts repo,export RULE_TOOL_PATH=$HOME/tooling/shared-prompts
You can also easily add this to your respective shell config,
# bashrc echo 'export RULE_TOOL_PATH=$HOME/tooling/shared-prompts' >> ~/.bashrc # zshrc echo 'export RULE_TOOL_PATH=$HOME/tooling/shared-prompts' >> ~/.zshrc
Please note,
rule-toolby convention expects to find a folder namedruleswithin theRULE_TOOL_PATHfolder. -
Call
rule-tooland symlink rules fromshared-promptsin your current project# example project cd $HOME/git/some-project # Option 1 rule-tool # this will open up a terminal based GUI # Option 2 # See: https://github.com/circleci-petri/rule-tool?tab=readme-ov-file#non-interactive-mode rule-tool --non-interactive --list