Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Transform GitHub repositories into cursor rules using multiple LLM providers (Anthropic, OpenAI, Ollama, etc.)
Jump to setup instructionsFetched from the repository for this visit.
Supercharge your Cursor AI with codebase-specific intelligence. Cursorifier transforms your GitHub repositories into custom rules that teach Cursor AI how your project works, resulting in more accurate code suggestions, better refactoring, and contextually aware assistance. Now supports multiple LLM providers including Anthropic Claude, OpenAI, and local models like Ollama.
.rules.mdc files for Cursor AI.clinerules files for Cline AI assistant# Install globally from npm
npm install -g cursorifier
# Or use with npx (no installation required)
npx cursorifier
# Install from GitHub (latest development version)
npm install -g https://github.com/rainmana/cursorifier.git
# Or clone and install locally
git clone https://github.com/rainmana/cursorifier.git
cd cursorifier
npm install
npm link
cursorifier --version
cursorifier --list-providers
📦 Available on npmjs.com
# Generate rules for any GitHub repository
cursorifier https://github.com/facebook/react
# Use with local models (Ollama)
cursorifier . --provider local --base-url http://localhost:11434 --model llama2
# Use existing repomix output
cursorifier --repomix-file ./my-repo-analysis.xml
Cursorifier supports two AI assistant formats:
# Generate Cursor AI rules
cursorifier https://github.com/facebook/react
# Output: react-output/react.rules.mdc
Features:
.rules.mdc file format with FrontMatter# Generate Cline rules
cursorifier https://github.com/facebook/react --output-format cline
# Output: react-output/.clinerules
Features:
.clinerules file format# Generate Roo Custom Modes
cursorifier https://github.com/facebook/react --output-format roo
# Output: react-output/.roomodes
Features:
.roomodes YAML configuration file--chunk-delay<|endoftext|>ANTHROPIC_API_KEY, OPENAI_API_KEY, LOCAL_API_KEY
🧠 Intelligent Analysis
|
🚀 Multi-Provider Support
|
📊 Smart Chunking
|
🎯 Multi-Format Support
|
export ANTHROPIC_API_KEY='your-anthropic-api-key'
export OPENAI_API_KEY='your-openai-api-key'
No API key required! Just make sure your local service is running.
The basic command structure is:
cursorifier <repo-path>
Examples:
# Inside a repository (uses Claude 3.7 Sonnet by default - latest and most intelligent)
cursorifier
# Using latest Claude 3.7 Sonnet explicitly
cursorifier --provider anthropic --model claude-3-7-sonnet-20250219
# Using Claude 4 Opus (most powerful)
cursorifier --provider anthropic --model claude-opus-4-20250514
# Using OpenAI (latest model)
cursorifier --provider openai --model gpt-4o
# Using OpenAI 4.1 mini (fast and cost-effective)
cursorifier --provider openai --model gpt-4.1-mini
# Using local Ollama model
cursorifier --provider local --model llama3.1 --base-url http://localhost:11434/v1
# Using local LM Studio
cursorifier --provider local --model llama3.1 --base-url http://localhost:1234/v1
# Using local repository path
cursorifier ./my-local-project/subdir
# Using GitHub URL
cursorifier --remote https://github.com/fastapi/fastapi
# Cursorifier with specific description as an option
cursorifier --description "guidelines for extending the component using the base interface"
# Specify Cursor AI rule type
cursorifier --rule-type "agent" --description "coding standards for React components"
# Generate Cline rules (for Cline AI assistant)
cursorifier --output-format cline
# Generate Cline rules with specific description
cursorifier --output-format cline --description "React project guidelines and coding standards"
# Generate Cline rules using local model
cursorifier --output-format cline --provider local --model llama3.1 --base-url http://localhost:11434/v1
# Generate Roo Custom Modes
cursorifier --output-format roo
# Generate Roo Custom Modes with specific description
cursorifier --output-format roo --description "TypeScript development with AI integration"
# Generate Roo Custom Modes using OpenAI
cursorifier --output-format roo --provider openai --model gpt-4o
# Generate using AWS Bedrock
cursorifier --provider bedrock --model anthropic.claude-3-sonnet-20240229-v1:0
# Generate using AWS Bedrock with specific profile and region
cursorifier --provider bedrock --aws-profile myprofile --aws-region us-west-2
# List available providers and models
cursorifier --list-providers
# Use existing repomix output file
cursorifier --repomix-file ./my-repo-output.txt
# Use repomix file with specific provider
cursorifier --repomix-file ./output.txt --provider openai --model gpt-4o
# Handle rate limiting with custom delays
cursorifier . --chunk-delay 10000 # 10 second delays between chunks
# Process large repository with smaller chunks and longer delays
cursorifier . --chunk-size 50000 --chunk-delay 8000
This will:
<repo-name>.rules.mdc fileOptions:
--provider <provider> LLM provider to use (anthropic, openai, local) (default: anthropic)
--model <model> Specific model to use (overrides provider default)
--api-key <key> API key for the provider (or set environment variable)
--base-url <url> Base URL for the API (useful for local providers)
--max-tokens <tokens> Maximum tokens for response (default: 8000)
--temperature <temp> Temperature for generation (0-2, default: 0.7)
--description <text> Description of what should be rulefied
--rule-type <type> Type of rule to generate (auto, manual, agent, always)
--output-format <format> Output format for rules (cursor, cline, roo) (default: cursor)
--chunk-size <size> Chunk size for processing (default: 100000)
--chunk-delay <ms> Delay between chunks in milliseconds to avoid rate limits (default: 5000)
--repomix-file <path> Path to existing repomix output file (skips repomix execution)
--list-providers List available providers and their models
-h, --help display help for command
ANTHROPIC_API_KEYOPENAI_API_KEYLOCAL_API_KEY)| Feature | Anthropic Claude | OpenAI | Local Models | AWS Bedrock |
|---|---|---|---|---|
| Quality | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| Speed | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
| Cost | ⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ |
| Privacy | ⭐⭐ | ⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ |
| Offline | ❌ | ❌ | ✅ | ❌ |
| Custom Models | ❌ | ❌ | ✅ | ❌ |
| Enterprise | ⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ | ⭐⭐⭐⭐⭐ |
| Use Case | Recommended Provider | Why |
|---|---|---|
| 🏢 Enterprise Projects | AWS Bedrock | Enterprise-grade security and compliance |
| 🧠 Complex Analysis | Anthropic Claude | Best code understanding and analysis |
| 🚀 Rapid Prototyping | OpenAI | Fast and cost-effective |
| 🔒 Sensitive Codebases | Local Models | Complete privacy and control |
| 🎓 Learning Projects | Local Models | Free and educational |
| ☁️ AWS Environments | AWS Bedrock | Native AWS integration and billing |
# Option 1: AWS CLI configuration
aws configure
# Option 2: Environment variables
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_DEFAULT_REGION=us-east-1
# Option 3: AWS Profile
export AWS_PROFILE=your_profile_name
# Use default AWS credentials and region
cursorifier . --provider bedrock
# Specify AWS profile and region
cursorifier . --provider bedrock --aws-profile myprofile --aws-region us-west-2
# Use specific Bedrock model
cursorifier . --provider bedrock --model anthropic.claude-3-sonnet-20240229-v1:0
# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
# Pull a model
ollama pull llama3.1
# Run cursorifier with Ollama
cursorifier --provider local --model llama3.1
cursorifier --provider local --model llama3.1 --base-url http://localhost:1234/v1
If you already have a repomix output file, you can use it directly without running repomix again:
# Use existing repomix file
cursorifier --repomix-file ./my-repo-output.txt
# Use with specific provider and model
cursorifier --repomix-file ./output.txt --provider local --model llama3.1
# Use with custom description
cursorifier --repomix-file ./output.txt --description "React component guidelines"
This is useful when:
cursorifier supports all options supported by repomix. For example, select specific files:
cursorifier --include "src/**/*.ts" --compress
After generating your rules file, you'll need to install it in Cursor:
<filename>.rules.mdc fileFor more detailed instructions, see the official Cursor documentation.
The generated .rules.mdc file will contain structured guidelines for Cursor AI when working with your codebase:
# .cursorrules for my-project
## Project Overview
This project is a TypeScript application that...
## Coding Standards
- Follow TypeScript best practices with strict typing
- Use async/await for asynchronous operations
...
## File Structure Guidelines
- Place core logic in the `src/` directory
...
If you encounter rate limits or high costs, try to minimize the context length using the following ways:
--chunk-size to process smaller chunks (e.g., --chunk-size 50000)--chunk-delay to add delays between chunks (e.g., --chunk-delay 10000)--repomix-file to reuse existing repository analysisrepomix --include to include only the files you need with globsrepomix --exclude to exclude the files you don't need with globs--chunk-size option. (default is --chunk-size 100000)Cursorifier is a fork of the original rulefy project by niklub, enhanced with additional features:
This project is based on the excellent work of niklub and their original rulefy project. We're grateful for their foundational work that made this enhanced version possible.
We love contributions! Here's how you can help:
git clone https://github.com/rainmana/cursorifier.git
cd cursorifier
npm install
npm run build
npm link
This project is inspired by and builds upon the work of:
We're grateful to these projects for their contributions to the developer tooling ecosystem.
GitHub checked 231h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.