_project

_project is a cursor rule for Cursor from kensaurus/cursor-kenji. It costs 698 tokens per session, scanned A, original, MIT.

Project-wide rules for a React Native monorepo, which is one repository containing several related applications or packages. They describe the Android, iOS, shared code, and web areas, plus the Linux or Windows development limits.

In plain words
What is it for?
They guide changes that affect multiple platforms, local Android development, shared JavaScript code, and the CI process for iOS verification.
Why use it?
They prevent developers from using the wrong platform tools or folder, and explain how iOS work must be checked through GitHub Actions and TestFlight when no Mac is available.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit They guide changes that affect multiple platforms, local Android development, shared JavaScript code, and the CI process for iOS verification.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kensaurus/cursor-kenji/_project
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.

Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

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 _project

README.md
[![agentmods](https://agentmods.dev/badge/rules/kensaurus/cursor-kenji/_project/github.svg)](https://agentmods.dev/rules/kensaurus/cursor-kenji/_project)
Your own site
<a href="https://agentmods.dev/rules/kensaurus/cursor-kenji/_project"><img src="https://agentmods.dev/badge/rules/kensaurus/cursor-kenji/_project/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 _project

Your own site · 80×15
<a href="https://agentmods.dev/rules/kensaurus/cursor-kenji/_project"><img src="https://agentmods.dev/badge/rules/kensaurus/cursor-kenji/_project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 698 This file is loaded in full into every session.
When invoked 698 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.00698 $0.00698
Opus 5.5 $0.00279 $0.00279
Sonnet 5.5 $0.00140 $0.00140
Haiku 4.5 $0.00070 $0.00070

Measured 1mo ago against content hash 2da1760b8ade, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

_project 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 1mo 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.

rules/native-rn-monorepo/_project.mdc · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project conventions

Targets

  • android/ — native Android (Kotlin/Java/Gradle)
  • ios/ — native iOS (Swift/Obj-C/Xcode)
  • src/ — shared React Native JS/TS
  • web/ — web build (separate target)

Adjust these paths if your monorepo uses a different layout (e.g. apps/mobile/{android,ios,src}/ or packages/web/).

Developer environment (no Mac)

The developer works on Linux/Windows; there is no Mac. This means:

  • iOS cannot be built or tested locally, so xcodebuild, pod install, xcrun simctl, and Xcode are not options to hand the developer; iOS work routes through CI.
  • iOS verification happens entirely on GitHub Actions CI with macOS runners.
  • iOS distribution happens via TestFlight — the developer installs builds on a real iPhone from TestFlight after CI uploads them.
  • Android local dev uses ADB + Android emulator + Metro for hot reload.
  • For iOS-affecting changes, the loop is: edit → verify TS / lint / Android compile locally → push → CI builds iOS → TestFlight → install on device.

When the developer reports an iOS issue, look in shared JS first — most "iOS bugs" also reproduce on Android, the only place they can be verified locally. If it is genuinely iOS-specific (native bridge, Podfile, iOS-only code), edit the file and trigger CI instead of asking the developer to run pod install or open Xcode; /ios-ci-logs reads the failure.

Hard rules

  • Identify the target before editing. The path tells you which.
  • Each target's patterns stay in its own tree:
    • No JSX/React in android/ or ios/
    • No native bridge code in src/
    • No react-native imports in web/ (unless react-native-web is configured)
    • No browser APIs (window, document, localStorage) in src/
  • Never declare a task complete without running the verification command for the affected target.
  • For iOS-affecting changes: declare "ready to ship to CI" — never claim "iOS verified" since you cannot.
  • TypeScript strict; do not introduce any without an inline justification comment.
  • Never disable a lint rule inline without an explanatory comment.
  • Never commit secrets, signing keys, local.properties, .env, or *.keystore.

Read the full file on GitHub · 70 lines

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. 1mo ago Changed · -5 tokens per session 2da1760b8ade
  2. 1mo ago First seen · 70 lines · 703 tokens per session scan A 50b503307fe3

Subscribe to this mod's changes

_project is a cursor rule published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 26d ago), licensed MIT. It adds 698 tokens to every session, about $0.0028 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-09-03.