This document explains how to synchronize Cursor IDE rules from the repository to your local project.
The project includes a script that allows you to easily sync Cursor IDE rules and configuration from the git repository. This ensures that you're using the most up-to-date Cursor IDE settings for the project.
- Ruby installed on your system
- Git access to the repository
To sync the Cursor IDE rules, run the following command from the project root:
./scripts/sync_rules.sh
By default, this will sync rules from the sinfin/playbook
repository (@https://github.com/sinfin/playbook
) using the main
branch.
The sync script supports the following options:
-u, --url URL
: Specify a different GitHub repository URL- Example:
./scripts/sync_rules.sh -u @https://github.com/sinfin/playbook
- Example:
-b, --branch BRANCH
: Specify a different branch (default: main)- Example:
./scripts/sync_rules.sh -b develop
- Example:
-h, --help
: Display help information
Running the script will:
- Download all files from the
.cursor/rules
directory in the repository - Download the
.cursor/config.json
file - Create or update these files in your local project
- Ask for confirmation before overwriting existing files
Sync rules from the default repository and branch:
./scripts/sync_rules.sh
Sync rules from a specific repository:
./scripts/sync_rules.sh -u @https://github.com/sinfin/playbook
Sync rules from a specific branch:
./scripts/sync_rules.sh -b develop
Sync rules from a specific repository and branch:
./scripts/sync_rules.sh -u @https://github.com/sinfin/playbook -b develop