cursorrules

A Cursor rules file that directs the agent to read the repository’s AGENTS.md instructions and load only the project guidance needed for the task.

In plain words
What is it for?
Use it in a SmartStack repository to guide task scope, protect secrets, investigate known errors, and run required checks before committing.
Why use it?
It keeps Cursor aligned with the repository’s security, frontend, performance, testing, debugging, and commit rules.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/oreum-ai/smartstack/cursorrules
Clone the repo
git clone --depth 1 https://github.com/oreum-ai/smartstack

Made for: Cursor.

Per session 249 This file is loaded in full into every session.
When invoked 249 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00249 $0.00249
Opus 5 $0.00125 $0.00125
Sonnet 5 $0.00050 $0.00050
Haiku 4.5 $0.00025 $0.00025

Measured yesterday against content hash 3c706a95ddca, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 yesterday.

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.

adapters/.cursorrules · 17 lines

What it actually says

SmartStack adapter for Cursor (.cursorrules)

Cursor reads this file automatically. It points you at the portable brain.

You are working in a repo that uses SmartStack. Read AGENTS.md at the repo root — it is the full brain — and follow its session protocol and golden rules. Load only what the task needs from ai-rules/ (see the context-budget skill); do not rescan the whole repo.

Always:

  • Never expose secrets; prevent injection; scope every query to its owner (ai-rules/rules/security.md).
  • Optimistic UI + graceful degradation + skeleton loading (ai-rules/rules/frontend.md).
  • Move heavy work to background jobs; index hot paths (ai-rules/rules/performance.md, database.md).
  • When something breaks, check ai-rules/memory/errors/ by index BEFORE inventing a fix (debug-fix skill).
  • Test risky logic first (ai-rules/rules/testing.md). Smallest change that works (code-quality.md).
  • Before committing: run ai-rules/scripts/secret-scan.sh and the pre-commit hook.

Project facts live in ai-rules/context/project.md. Keep tasks to 3–5 per session.

Changes

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.

  1. yesterday First seen · 17 lines · 249 tokens per session scan A 3c706a95ddca

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository oreum-ai/smartstack (5 stars, last pushed 3mo ago), licensed MIT. It adds 249 tokens to every session, about $0.0012 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-31.