Personal collection of Cursor AI rules optimized for token efficiency and anti-hallucination.
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
Add these manually in Cursor Settings → Rules:
- Copy content from
user-rules/*.txt - Paste into Cursor Settings → Rules → "+ New" → "User Rule"
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"- 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
Update rules based on:
- Token usage patterns (check Cursor Settings → Billing)
- Common hallucination patterns observed
- New framework/library adoptions
- Team feedback