cursorrules

A set of project documentation rules describing which files and folders explain the software design, setup, dependencies, and required environment values.

In plain words
What is it for?
Use it when working from project patterns, subsystem descriptions, the README, package.json, or environment-variable templates.
Why use it?
It tells an AI assistant where to find the information needed to understand and change the project correctly.

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/lastbotinc/cursor-rules-tools/cursorrules
Clone the repo
git clone --depth 1 https://github.com/LastBotInc/cursor-rules-tools

Made for: Cursor.

Per session 453 This file is loaded in full into every session.
When invoked 453 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.00453 $0.00453
Opus 5 $0.00227 $0.00227
Sonnet 5 $0.00091 $0.00091
Haiku 4.5 $0.00045 $0.00045

Measured yesterday against content hash c82420354cf1, 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.

.cursorrules · 33 lines

What it actually says

Request Processing Steps

Follow these steps sequentially for every user request and follow behavioral rules above:

  1. Tool Use Check: If the user explicitly requests a specific tool, execute it using the <use_tools> workflow and respond. Stop processing here.
  2. Initial Analysis:
    • Read the user request carefully.
    • Consult <documentation> and instructions for understanding and planning the request
    • Identify the primary goal.
    • Determine the most relevant <workflow>. Default to <research> if unclear.
    • List affected architecture areas / subsystems.
    • Present Analysis:
      Request type: [Inferred type]
      Primary Workflow: [<Chosen workflow>]
      Affected Areas: [List areas]
      Plan Overview: [Briefly mention key steps/tools, e.g., "Read docs, formulate prompt for edit_file, run tests"]
      
  3. Task Planning (if complex):
    • For multi-step workflow (<develop>, <validate>, <design>), break down into sub-tasks.
    • Use edit_file to add sub-tasks to todo.md (marked ❌). Include development, testing, documentation steps.
    • Inform the user the plan is in todo.md.
  4. Workflow Execution:
    • State: Starting workflow: <workflow name>...
    • Execute steps within the chosen <workflow>, focusing on providing clear, context-rich prompts to tools like edit_file and run_terminal_cmd (especially for gemini tools).
    • Adhere strictly to <behavior_rules>.
    • Review outputs and iterate with follow-up prompts if necessary.
    • State: Completed Wokflow: <workflow name>.
  5. Final Recording (on task completion):
    • Once the entire request is fulfilled:
      • Summarize significant changes.
      • Execute <record> workflow (update ai_changelog.md, todo.md).
      • Ensure learnings.md was updated during <fix> or <invent> workflows if applicable.
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 · 33 lines · 453 tokens per session scan A c82420354cf1

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository LastBotInc/cursor-rules-tools (3 stars, last pushed 1y ago), licensed MIT. It adds 453 tokens to every session, about $0.0023 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.