Package Exports
- @gabimoncha/cursor-rules
- @gabimoncha/cursor-rules/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gabimoncha/cursor-rules) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cursor-rules
Made with ❤️ in Cursor IDE, dogfooding
cursor-rules
A command-line tool for managing AI-assisted guidance in your projects through Cursor IDE rules.
What are Cursor Rules?
Cursor rules are markdown files with structured metadata that provide AI with instructions on how to interact with your codebase. These rules help the AI understand project structure, coding conventions, and best practices specific to your codebase.
Installation
- global install
bun
bun add -g @gabimoncha/cursor-rulesyarn
yarn global add @gabimoncha/cursor-rulesnpm
npm install -g @gabimoncha/cursor-rules- project install
bun
bun add -d @gabimoncha/cursor-rulesyarn
yarn add -D @gabimoncha/cursor-rulesnpm
npm install --save-dev @gabimoncha/cursor-rulesUsage
- init cursor rules
cursor-rules --initThis will:
- Create a
.cursor/rulesdirectory in your project - Add default rule templates (cursor-rules.md, project-structure.md, task-list.md)
- Guide you through customizing these templates for your project
- generate repomix file to be used with AI
cursor-rules --repomix- available commands
# Show help information
cursor-rules --help
# Display the current version
cursor-rules --version
# List existing rules
cursor-rules --list
# Force overwrite existing rules
cursor-rules --force
# Initialize with verbose output
cursor-rules --init --verboseDefault Rule Templates
The CLI provides three default rule templates:
- cursor-rules.md: Guidelines for adding and organizing AI rules in your project
- project-structure.md: Overview of your project's structure and organization
- task-list.md: Framework for tracking project progress with markdown task lists
Documentation
For more detailed documentation, visit:
Acknowledgements
Idea inspired by Elie Steinbock OSS Cursor rules announcement
License
MIT