Advanced Features
Global Options
All commands support:
-t, --target <repo>— Specify repository (name, URL, or local path)-l, --local— Save toai-rules-sync.local.json(private)
bash
ais cursor add react -t company-rules --localQuery Commands
bash
ais status # Check project status
ais search react # Search for rules
ais check # Check if repos are behind upstream
ais check --user # Check user config repos
# JSON output for scripts/CI
ais ls --json
ais status --json
ais search react --jsonMulti-Tool Example
Use rules from the same repository across Cursor, Copilot, and Claude:
bash
# Add Cursor rules
ais cursor add react -t https://github.com/org/rules.git
ais cursor add typescript
# Add Copilot instructions (same repo)
ais copilot instructions add coding-standards -t https://github.com/org/rules.git
# Add Claude skills (same repo)
ais claude skills add code-review -t https://github.com/org/rules.git
# Or use add-all to install everything at once
ais use https://github.com/org/rules.git
ais add-all --tools cursor,copilot,claudeMore
- Multiple Repositories — Use rules from multiple Git repositories
- Import Rules — Share your rules via a repository
- Monorepo & Custom Directories — Custom source and target directories
- User Global-Level Sync — Personal AI config management
- Troubleshooting — Common issues and solutions