Manage rules using GNU stow

Jul 29, 2025

It would be nice to manage all cursor rules in a single place. Just clone a repository of rules and then use it in your project.

Install GNU stow

GNU stow is a symlink farm manager and relocatable package manager.

MacOS

brew install stow

Install Rules

Take PatrickJS/awesome-cursorrules as an example.

git clone https://github.com/PatrickJS/awesome-cursorrules.git
cd awesome-cursorrules/rules/
stow -t path_to_cursor_project code-guidelines-cursorrules-prompt-file --ignore ".vscode" -v

After running the command, you will see the following output:

LINK: .cursorrules => path_to_cursor_project/.cursorrules
LINK: general-coding-rules.mdc => path_to_cursor_project/general-coding-rules.mdc

The symlink will be created in the path_to_cursor_project.

Update Rules

To pull the latest changes from the Cursor Rules repository, you can use the following command:

cd awesome-cursorrules
git pull

Uninstall Rules

To unlink the rules from the cursor project, you can use the following command:

cd awesome-cursorrules/rules/
stow -D -t path_to_cursor_project code-guidelines-cursorrules-prompt-file --ignore ".vscode" -v
RSS
https://blog.ssuyi.tw/posts/feed.xml