betting-brain-v3: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from brendadeeznuts1111/betting-brain-v3. It costs 0 tokens per session (2,026 once invoked), scanned A, original, MIT.

A set of project rules that tells Cursor, an AI coding editor, how generated code must be written and organized. The rules specify the Bun runtime, testing tools, file layout, and naming style.

In plain words
What is it for?
Use them when asking Cursor to modify the Betting Brain Platform, especially for commands, tests, file placement, process handling, and naming.
Why use it?
They give AI-generated code one shared standard and reduce inconsistent tools, file locations, and coding patterns.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions CLAUDE.md.

This is brendadeeznuts1111/betting-brain-v3's own configuration. It tells Cursor how to work on betting-brain-v3 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 betting-brain-v3 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to brendadeeznuts1111/betting-brain-v3. 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/brendadeeznuts1111/betting-brain-v3/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/brendadeeznuts1111/betting-brain-v3

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/brendadeeznuts1111/betting-brain-v3/cursorrules.svg)](https://agentmods.dev/rules/brendadeeznuts1111/betting-brain-v3/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/brendadeeznuts1111/betting-brain-v3/cursorrules"><img src="https://agentmods.dev/badge/rules/brendadeeznuts1111/betting-brain-v3/cursorrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,026 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.02026
Opus 5 $0.00000 $0.01013
Sonnet 5 $0.00000 $0.00405
Haiku 4.5 $0.00000 $0.00203

Measured 7d ago against content hash 42d31a67bb9a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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 · 245 lines

How it starts

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

Cursor AI Rules for Betting Brain Platform

https://github.com/nolarose1968/ffffff/blob/main/.cursorrules

One File to Rule Them All

This .cursorrules file is the single source of truth for all AI-generated code.

Benefits:

  • ✅ No confusion - everyone follows the same patterns
  • ✅ Version control - every change is tracked
  • ✅ Automatic application - Cursor applies rules to matching files
  • ✅ Machine readable - front-matter enables tooling integration

Alternative: Cursor ≥ 0.45 also supports .cursor/rules/ folder for larger projects.

Core Development Rules

Bun Runtime (CRITICAL)

  • Use bun commands exclusively (not npm/yarn/node)
  • Use Bun Test (not Vitest/Jest)
  • Use Bun file APIs (not Node.js fs)
  • Use processManager for all process spawning
  • Leverage Bun native APIs (crypto, compression, etc.)

File Organization

  • Root directory: Only 9 essential files allowed
  • Documentation: All docs in docs/ (except README.md, LICENSE, CLAUDE.md)
  • Scripts: All in scripts/
  • Tools: All in tools/
  • Status files: All in docs/

File Naming

  • Use lowercase kebab-case for all files/directories
  • Test files: *.test.ts (preferred)
  • Special cases: MCP handlers use camelCase to match tool names
  • Never create backup files (*.backup, *.old, *.bak)

API & Endpoint Patterns

Request Handling

  • Always generate requestId: Date.now().toString(36)
  • Always include CORS headers for dashboard access
  • Always handle OPTIONS preflight requests
  • Always log with requestId prefix: [${requestId}] ...

Error Handling

  • Use standardized error classes from src/utils/error-handler.ts
  • Always use try-catch or asyncHandler wrapper
  • Always return structured error responses
  • Never expose internal details in error messages

Database Queries

  • Always use parameterized queries (.bind())
  • Never use string interpolation in SQL
  • Always cast D1 results with as unknown as
  • Always handle database errors

Security Patterns

Input Validation

  • Always validate all inputs before processing
  • Use Zod schemas for request validation
  • Never trust user input
  • Always sanitize output to prevent XSS

Read the full file on GitHub · 245 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. 7d ago First seen · 245 lines · 0 tokens per session scan A 42d31a67bb9a

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository brendadeeznuts1111/betting-brain-v3 (8 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,026 tokens. 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.

Related

Other cursor rules, from other repositories