cursorrules

A short set of coding rules for the PraisonAI project, including keeping changes small, choosing clear names, and avoiding unnecessary edits.

In plain words
What is it for?
It guides small code improvements, new functions, naming decisions, and additions that fit into the existing codebase.
Why use it?
It helps prevent overly large or complicated changes when maintaining existing code.

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/mervinpraison/praisonai/cursorrules
Clone the repo
git clone --depth 1 https://github.com/MervinPraison/PraisonAI

Made for: Cursor.

Per session 153 This file is loaded in full into every session.
When invoked 153 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.00153 $0.00153
Opus 5 $0.00077 $0.00077
Sonnet 5 $0.00031 $0.00031
Haiku 4.5 $0.00015 $0.00015

Measured 3d ago against content hash 5f071e81832a, 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 3d 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.

src/praisonai-agents/.cursorrules ยท 8 lines

What it actually says

  1. Make minimal code changes as possible
  2. if you are creating function, make sure to name it in more easy, user friendly , optimised manner.
  3. Never copy the exact code if presented with a code from other location or file or codebase, just make it optimised
  4. Always Follow the principle LESS IS MORE
  5. Make it minimal change as possible
  6. Firstly try not to make any modification to the existing code as possible
  7. Only modify the existing code if its highly required, without that if it cant be done, then add new code section.
  8. If you are adding new code, make sure to add it in a way that it can be easily integrated with the existing codebase.
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. 3d ago First seen ยท 8 lines ยท 153 tokens per session scan A 5f071e81832a

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository MervinPraison/PraisonAI (9,001 stars, last pushed 2d ago), licensed MIT. It adds 153 tokens to every session, about $0.0008 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.

Related

Other cursor rules, from other repositories

path-traversal-prevention

Path traversal attacks occur when user-controlled input is used to construct file paths, allowing attackers to access files outside the intended directory. This can lead to unauthorized file access, data leakage, or system compromise.

matank001/cursor-security-rules ยท 2,694 tokens

secure-dev-c-sharp

These rules apply to all C#/.NET code in the repository and aim to prevent common security risks through disciplined use of input validation and deserialization, output encoding, and safe APIs.

matank001/cursor-security-rules ยท 0 tokens

secure-dev-java

These rules apply to all Java code in the repository (including Spring, Jakarta EE, and standalone apps) and aim to prevent common security risks through disciplined use of input validation, safe APIs, and secure coding patterns.

matank001/cursor-security-rules ยท 0 tokens

secure-sql-usage

These rules apply to all code that interacts with SQL databases, regardless of language or framework, including generated code.

matank001/cursor-security-rules ยท 586 tokens

secure-dev-ruby

These rules apply to all Ruby code in the repository (including Rails apps, scripts, and gems) and aim to prevent common security vulnerabilities through safe coding patterns, input validation, and proper use of the Ruby standard library.

matank001/cursor-security-rules ยท 0 tokens

xxe-prevention

These rules apply to all code that parses or processes XML, regardless of language or framework, including AI-generated code.

matank001/cursor-security-rules ยท 0 tokens