Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/elizaos/eliza/cursorrulesgit clone --depth 1 https://github.com/elizaOS/elizaWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00632 | $0.00632 |
| Opus 5 | $0.00316 | $0.00316 |
| Sonnet 5 | $0.00126 | $0.00126 |
| Haiku 4.5 | $0.00063 | $0.00063 |
Grade A, and why
cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cursor Rules for cloud
Package Management
- Always use
bunfor package management operations (install, add, remove, run scripts) - Never use
npm,yarn, orpnpmcommands - Use
bun installinstead ofnpm install - Use
bun addinstead ofnpm install <package> - Use
bun removeinstead ofnpm uninstall - Use
bun runinstead ofnpm run
Git Operations
- For git operations and links use GitHub CLI (
gh) - Never make comments on PR
TypeScript
- Never use
anyorunknowntypes, always look for the actual types - Always use explicit type definitions, search for existing shared types before creating new ones
AI/ML Libraries
- Prefer to use Vercel AI SDK wherever possible for AI-related functionality
- Use AI SDK elements for AI-related UI elements whenever possible (e.g., message components, reasoning displays, artifacts, etc.)
Documentation
- Use Context7 MCP for library documentation whenever needed
Do not use try { } catch { } blocks unless they are absolutely necessary or handling user supplied data. Avoid defensive programming and implement clean code with fail-fast patterns.
IMPORTANT: After you have finished a task, go through again and review for slop, unnecessary comments, fallbacks and overly complex state management
It is very important that you ALWAYS review your work after you've completed it to make sure that it is as clean, tight, compact as possible, with strong types and fail fast where it makes sense
If you are expecting something, you can use an expect/throw pattern. Always aim to catch errors and throw instead of hiding errors and falling back.
Database Migrations
CRITICAL: Never use db:push - it bypasses migration tracking and breaks production deployments.
Schema Changes Workflow
- Modify TypeScript schema in
db/schemas/ - Generate migration:
bun run db:generate - Review generated SQL in
db/migrations/ - Test locally:
bun run db:migrate - Commit both schema and migration files
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 66 lines · 632 tokens per session scan A d27d20747ab7
cursorrules is a cursor rule published in the GitHub repository elizaOS/eliza (19,210 stars, last pushed 3d ago), licensed MIT. It adds 632 tokens to every session, about $0.0032 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
workflow
Compatibility shell — routes tasks to skill-based-architecture's self-hosted SKILL.md at repo root.
frontend
Demo Shop frontend guidance.
frontend-theme-guidelines
Cursor rule "frontend-theme-guidelines" from KroMiose/nekro-agent, covering 前端主题系统开发指南, 主题系统架构, 核心文件结构, 基本原则 and 主题使用指南.
global
Cursor rule "global" from KroMiose/nekro-agent, covering 项目背景(简要), 开发规范, 文档, 开发指南 and 功能/页面开发完整流程.
use-bun-instead-of-node-vite-npm-pnpm
../../CLAUDE.md.
frontend-rules
前端 React 服务开发指南.