cursor-rules-0.1.1 is not a library.
cursor-rules
A CLI tool for managing Cursor rules from GitHub repositories.
Overview
cursor-rules
is an interactive, cross-platform Rust CLI that allows developers to browse GitHub repositories named cursor-rules
and copy selected .mdc
rule files into their projects. It provides an easy way to share and manage Cursor IDE configuration rules across different projects.
Installation
From crates.io
From source
Usage
Basic Usage
# Interactive browse mode (default)
# Browse a specific owner's repository
# Quick-add a specific manifest
# List available rules
Commands
browse
- Interactive browser (default)quick-add <ID>
- Apply a manifest (ID = filename or friendly slug)list
- Print repo tree in JSON/YAMLconfig
- Show or modify saved configcache
- Manage offline cache (list|clear)completions
- Generate shell completions
Options
--owner, -o
- GitHub owner to fetch rules from--repo, -r
- Repository name (defaults to 'cursor-rules')--branch, -b
- Branch to fetch from (defaults to 'main')--out, -o
- Output directory (defaults to './.cursor/rules')--dry-run
- Show what would be done without making changes--force
- Force overwrite without prompting--verbose, -v
- Verbose output
Repository Structure
Your cursor-rules
repository should follow this structure:
cursor-rules/
├── frontend/
│ ├── react/
│ │ ├── react-core.mdc
│ │ └── tailwind.mdc
│ └── vue/
│ └── vue-core.mdc
├── backend/
│ └── rust/
│ └── actix.mdc
├── quick-add/
│ └── fullstack.txt
└── QUICK_ADD_ALL.txt
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Development Status
This is currently a barebones implementation. Full functionality is coming soon!
Current Version: 0.1.1 - Basic CLI structure only
Planned Features
- Interactive repository browsing
- Quick-add manifest support
- GitHub authentication
- Offline caching
- Shell completions
- And much more!
Stay tuned for updates!