Hub Sync
When to use this skill
- The user wants to copy a template into another project.
- You need to list available templates.
- You need to run sync with backup or compose-first options.
Default workflow
- List templates:
python scripts/sync.py --list
- Determine the destination:
- Consumer project directory (writes
<target>/.cursorrules) - Or an explicit file path
- Consumer project directory (writes
- Run sync:
- Standard:
python scripts/sync.py <target> <template> - No prompt: add
-y - With backup: add
--backup - With compose-first: add
--compose-first
- Standard:
- Verify that target
.cursorruleswas updated.
Error handling
sync: error: ...indicates a validation error (bad args/missing template).sync: file error: ...indicates an I/O error (permissions/invalid path).- If
--compose-firstfails, fix compose issues first.
Useful commands
# List available templates
python scripts/sync.py --list
# Copy the ruby template to a target repo
python scripts/sync.py ../my-ruby-app ruby
# Sync with forced overwrite and backup
python scripts/sync.py ../my-ruby-app ruby -y --backup
# Recompose before sync
python scripts/sync.py ../my-ruby-app ruby --compose-first -y
Source: lraboteau/cursor-rules-hub — distributed by TomeVault.