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.
Installation
# Global install
# bun
bun add -g @gabimoncha/cursor-rules
# yarn
yarn global add @gabimoncha/cursor-rules
# npm
npm install -g @gabimoncha/cursor-rules
# Project install
# bun
bun add -d @gabimoncha/cursor-rules
# yarn
yarn add -D @gabimoncha/cursor-rules
# npm
npm install --save-dev @gabimoncha/cursor-rules
Usage
# Initialize cursor rules
cursor-rules init
# Generate repomix file
cursor-rules repomix
# Initialize and generate repomix
cursor-rules init -r
# Force overwrite existing rules
cursor-rules init -f
# List existing rules
cursor-rules list
# Display version or help
cursor-rules --version
cursor-rules --help
When you initialize cursor rules, the CLI will:
- Create a
.cursor/rules
directory in your project - Add default rule templates
- Guide you through customization
Default Rule Templates
- cursor-rules.md: Guidelines for adding and organizing AI rules
- project-structure.md: Overview of project structure and organization
- task-list.md: Framework for tracking project progress
Documentation
For more detailed documentation, visit:
Acknowledgements
Idea inspired by Elie Steinbock OSS Cursor rules announcement
License
MIT