A CLI tool to enforce Cursor IDE rules, CI/CD workflows, and configuration across repositories.
# Using npm
npm install -D @liftoffllc/cursor-ops-kit
# Using yarn
yarn add -D @liftoffllc/cursor-ops-kit# Initialize with a specific role
npx cursor-ops init --role frontend
# Or use interactive mode
npx cursor-ops init --interactivefrontend: Frontend development configurationbackend: Backend development configurationdevops: DevOps and CI/CD configurationinfra: Infrastructure configuration
# Basic initialization
npx cursor-ops init --role <role>
# Dry run mode (preview changes)
npx cursor-ops init --role <role> --dry-run
# Interactive mode
npx cursor-ops init --interactive# Merge role-specific with base configuration
npx cursor-ops merge --role <role># Show differences between configurations
npx cursor-ops diff --role <role># List available backups
npx cursor-ops backup list
# Restore a specific backup
npx cursor-ops backup restore --file <backup-file>
# Clean up old backups
npx cursor-ops backup cleanup --days 30# Audit current configuration
npx cursor-ops audit
# Check version and updates
npx cursor-ops version{
"version": "1.2.1",
"rules": [
{
"name": "enforceNaming",
"type": "naming",
"pattern": "^[a-z][a-zA-Z0-9]*$",
"enabled": true,
"severity": "error"
}
]
}Additional rules and overrides for specific roles.
-
Initialization (init.js)
- Environment validation
- Template copying
- Configuration setup
- Role-specific customization
-
Validation (validator.js)
- Role validation
- Configuration structure verification
- GitHub workflow validation
- Security checks
-
Logging (logger.js)
- Colored output
- Multiple log levels (debug, info, warn, error)
- Configurable log level
-
Backup (backup.js)
- Automatic backup creation
- Backup rotation (keeps last 5)
- Restore functionality
- Cleanup of old backups
-
Merge (merge.js)
- Configuration merging
- Workflow file merging
- Conflict resolution
- Precedence handling
-
Interactive Setup (interactive.js)
- Guided configuration
- Role selection
- Custom settings
-
Audit (audit.js)
- Configuration validation
- Rule verification
- Issue reporting
-
Migration (migrate.js)
- Version upgrades
- Format updates
- Backward compatibility
- Always use
--dry-runfirst to preview changes - Keep backups before major changes
- Review merged configurations before applying
- Use role-specific configurations for team consistency
-
Configuration Validation Errors
- Check rule format
- Verify required fields
- Use audit command for detailed report
-
Merge Conflicts
- Review both configurations
- Use diff command to identify issues
- Consider manual merge for complex cases
-
Backup Issues
- Ensure write permissions
- Check available disk space
- Use cleanup command for space management
For bugs, feature requests, or contributions, please create an issue or submit a pull request.
Developed by LiftOff LLC Engineering 🚀