Skip to content

kmurugulla/cursor-rules-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cursor Rules Library

Personal collection of Cursor AI rules optimized for token efficiency and anti-hallucination.

Structure

cursor-rules-library/
├── user-rules/                          # Global rules (apply to all projects)
│   ├── core-engineering-principles.txt  # Anti-hallucination + token optimization
│   └── context7-integration.txt         # Context7 MCP integration
│
└── project-rules/                       # Project-specific rules
    ├── aem-live/                        # Adobe AEM.live projects
    │   └── .cursor/rules/
    │       └── aem-live-development.mdc
    └── python-ai-ml/                    # Python AI/ML projects
        └── .cursor/rules/
            └── python-ai-ml-development.mdc

Usage

User Rules (Global)

Add these manually in Cursor Settings → Rules:

  1. Copy content from user-rules/*.txt
  2. Paste into Cursor Settings → Rules → "+ New" → "User Rule"

Project Rules (Per-Project)

For new AEM.live projects:

cd my-new-aem-project
cp -r /path/to/cursor-rules-library/project-rules/aem-live/.cursor .
git add .cursor
git commit -m "Add Cursor rules"

For new Python AI/ML projects:

cd my-new-python-project
cp -r /path/to/cursor-rules-library/project-rules/python-ai-ml/.cursor .
git add .cursor
git commit -m "Add Cursor rules"

Benefits

  • 90% token reduction: From ~2,400 tokens to ~150-250 tokens per request
  • Anti-hallucination: Forces verification before coding
  • Stack-specific: Optimized for AEM.live vanilla JS and Python AI/ML
  • Team-ready: Version controlled and shareable

Maintenance

Update rules based on:

  • Token usage patterns (check Cursor Settings → Billing)
  • Common hallucination patterns observed
  • New framework/library adoptions
  • Team feedback

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages