A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A CLI for boostrapping Cursor AI rules in your project
Made with ❤️ in Cursor IDE, dogfooding
cursor-rules
A command-line tool for managing AI-assisted guidance in your projects through Cursor IDE rules.
Cursor rules are markdown files with structured metadata that provide AI with instructions on how to interact with your codebase. These rules enhance the AI's understanding of:
scan commandtabtab# Global install
bun add -g @gabimoncha/cursor-rules
# Project install
bun add -d @gabimoncha/cursor-rules
# (works with npm, pnpm & yarn too)
cursor-rules -v # show version
cursor-rules -h # show help
# start the setup process
cursor-rules init [options]
Options:
-f, --force # overwrites already existing rules if filenames match
-r, --repomix # packs entire repository in a single file for AI analysis
-o, --overwrite # overwrite existing rules
# packs entire repository in a single file for AI analysis
cursor-rules repomix
# scan and check all files in the specified path
cursor-rules scan [options]
Options:
-p, --path <path> # path to scan (default: ".")
-f, --filter <filter> # filter allowing only directories and files that contain the string (similar to node test)
-P, --pattern <pattern> # regex pattern to apply to the scanned files (default: "\.cursorrules|.*\.mdc")
-s, --sanitize # (recommended) sanitize the files that are vulnerable
# list all rules
cursor-rules list
# setup shell completion
cursor-rules completion --install
Options:
-i, --install # install tab autocompletion
-u, --uninstall # uninstall tab autocompletion
The CLI provides three default templates:
The CLI also provides rules from awesome-cursorrules repository
.cursor/rules directory or project rootFor more detailed documentation, visit:
# Clone the repository
git clone https://github.com/gabimoncha/cursor-rules-cli.git
cd cursor-rules-cli
# Install dependencies
bun install
# Run the CLI locally
bun --cwd cli prepare
bun --cwd cli prompt
MIT
A practical approach to managing multiple AI agents in Cursor through strict file-tree partitioning and domain boundarie
📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors
Cursor AI 编程规则精选集 | 132+ 规则,覆盖前端/后端/AI/DevOps 等 32 个领域