This script keeps .roo/rules/rules.md and .cursor/rules/journal.mdc in sync at all times.
Features:
- Watches both files for changes.
- Whenever either file changes, updates the other to match.
- When updating
.cursor/rules/journal.mdc, all instances of "Cursor"/"cursor" are automatically replaced with "Roo"/"roo".
-
Open a terminal in this directory:
cd scripts/rules-sync-server -
Install dependencies:
npm install
Start the sync server with:
npm start
or
node index.js
The script will print messages when it syncs files. Leave it running in the background while you work.
- Requires Node.js (v14+ recommended).
- If either file does not exist yet, create it before starting the sync server.
- Prevents infinite sync loops and redundant writes.