@gabimoncha/cursor-rules
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

cursor-rules

Made with ❤️ in Cursor IDE, dogfooding cursor-rules

A CLI tool for managing AI-assisted guidance in your projects through Cursor IDE rules.

What are Cursor Rules?

YouTube presentation

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:

  • Project structure and organization
  • Coding conventions and patterns
  • Task management approaches
  • Best practices specific to your codebase

Features

  • 🚀 Rule Installation: Easily add Cursor rules to any project
  • 📋 Template Rules: Includes default rule templates for common use cases
  • 💬 Interactive Setup: Guided setup process using command-line prompts
  • 📊 Repomix Integration: Generate repository overviews using Repomix for AI analysis
  • 📁 Project Structure: Creates standardized rule organization

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:

  1. Create a .cursor/rules directory in your project
  2. Add default rule templates
  3. 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

License

MIT

Package Sidebar

Install

npm i @gabimoncha/cursor-rules

Weekly Downloads

13

Version

0.1.8

License

MIT

Unpacked Size

126 kB

Total Files

81

Last publish

Collaborators

  • gabimoncha