ClawAI: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from ihabkhaled/ClawAI. It costs 363 tokens per session, scanned A, original, Apache-2.0.

A compact set of Cursor rules for a software repository. Cursor is an AI coding editor, and these rules tell it what project information to read, what practices are forbidden and how to validate changes.

In plain words
What is it for?
Use it before editing code in the repository and when validating a change. It directs the agent to load current project context, follow the rule hierarchy and run the required checks on affected areas.
Why use it?
It reduces the risk of an AI agent inventing repository facts, bypassing checks or making changes that conflict with the project's architecture and security rules.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents; mentions AGENTS.md; mentions Cursor.

This is ihabkhaled/ClawAI's own configuration. It tells Cursor how to work on ClawAI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ClawAI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ihabkhaled/ClawAI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ihabkhaled/ClawAI/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/ihabkhaled/ClawAI

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/ihabkhaled/clawai/cursorrules/github.svg)](https://agentmods.dev/rules/ihabkhaled/clawai/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/ihabkhaled/clawai/cursorrules"><img src="https://agentmods.dev/badge/rules/ihabkhaled/clawai/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/ihabkhaled/clawai/cursorrules"><img src="https://agentmods.dev/badge/rules/ihabkhaled/clawai/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 363 This file is loaded in full into every session.
When invoked 363 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00363 $0.00363
Opus 5.5 $0.00145 $0.00145
Sonnet 5.5 $0.00073 $0.00073
Haiku 4.5 $0.00036 $0.00036

Measured 5d ago against content hash fc2560068b75, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 5d 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.

.cursorrules · 30 lines

What it actually says

ClawAI — Cursor rules (pointer)

Read AGENTS.md first: it is the canonical router for every agent (identity, authority order, first command, landing a change, prohibitions, where everything lives). Cursor-specific notes: cursor.md.

Before editing, run: npm run knowledge:context -- --task="" and read .ai/local/current-context.md.

Before you finish any change, update every doc it makes stale (rule 63). The hooks will reject it otherwise.

Akinator runs on EVERY change with no command typed: ask, resolve, audit, plan, implement, document, skillify, rule, contextify, memoize, index+sync, verify. Read skills/akinator/SKILL.md (rules/65). A new flagship, core or big feature ships its public marketing page in the same change (rules/66, skills/ship-a-feature-marketing-page.md).

Land a change through the hooks — never bypass them: git add -> git commit (Docs: trailer) -> git push What each hook runs: rules/23-git-commits-hooks-and-release-gates.md (gate matrix).

Blockers: rules/00-non-negotiable-rules.md. Testing is 15 QA lanes with a docs/qa-evidence record (QA-WORKFLOW.md, rules/60). User-facing text needs i18n in all 13 locales (rules/20).

Delegated agents and models (rule 64): smallest fast model only for read-only audit/context agents; strong model for code and QA; never a flagship or max effort; ask the owner when unsure. See rules/64-subagent-model-selection.md.

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. 5d ago Changed · +9 lines · +143 tokens per session fc2560068b75
  2. 23d ago Changed · -47 lines · -736 tokens per session 35962e649ef5
  3. 1mo ago Changed · +87 tokens per session 5a85204a428c
  4. 1mo ago Changed · +3 lines · +43 tokens per session 9dd6ed9ff8b6
  5. 1mo ago Changed · +6 lines · +118 tokens per session 27472f3349c1
  6. 2mo ago First seen · 59 lines · 708 tokens per session scan A 987a5d4fa7a9

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository ihabkhaled/ClawAI (24 stars, last pushed 3d ago), licensed Apache-2.0. It adds 363 tokens to every session, about $0.0015 per session on Opus 5.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

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesihabkhaled/ClawAICursor rule243d agoApache-2.0A363Cursor
continuumshyftlabs/continuumCursor rule841mo agoApache-2.0A2,659Cursor
ponytailDietrichGebert/ponytailCursor rule185k8d agoMITA604Cursor
angular-20angular/angularCursor rule101kyesterdayMITA0Cursor
dev-standardapache/supersetCursor rule75ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48kyesterdayApache-2.0A0Cursor