betting-brain-v3 / rules
Cursor rule8 starsChanged 14 months agoMITView on GitHub
File and directory naming conventions
In this repository27 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/99-floor.mdcCursor rule
- .cursor/rules/ai-friendly-testing.mdcCursor rule
- .cursor/rules/analytics-stub-api.mdcCursor rule
- .cursor/rules/analytics-testing.mdcCursor rule
- .cursor/rules/api-patterns.mdcCursor rule
- .cursor/rules/browser-extension.mdcCursor rule
- .cursor/rules/bun-runtime.mdcCursor rule
- .cursor/rules/cache-optimization.mdcCursor rule
- .cursor/rules/ci-integration.mdcCursor rule
- .cursor/rules/ci-patterns.mdcCursor rule
- .cursor/rules/cloudflare-infrastructure.mdcCursor rule
- .cursor/rules/cloudflare-workers.mdcCursor rule
- .cursor/rules/code-searchability.mdcCursor rule
- .cursor/rules/coverage-thresholds.mdcCursor rule
- .cursor/rules/database-patterns.mdcCursor rule
- .cursor/rules/documentation.mdcCursor rule
- .cursor/rules/endpoint-routing.mdcCursor rule
- .cursor/rules/mcp-integration.mdcCursor rule
- .cursor/rules/process-management.mdcCursor rule
- .cursor/rules/production-security.mdcCursor rule
- .cursor/rules/quality-standards.mdcCursor rule
- .cursor/rules/root-organization.mdcCursor rule
- .cursor/rules/security-patterns.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- .cursor/rules/testing-patterns.mdcCursor rule
- .cursor/rules/test-setup-patterns.mdcCursor rule
The file
Files
---
version: "5.0.0"
scope: ["*"]
alwaysApply: true
description: "File and directory naming conventions"
lastUpdated: "2025-10-08"
dependencies: ["root-organization", "quality-standards"]
---
# File Naming Conventions
## General Rules
**Use lowercase kebab-case** for all files and directories:
- ✅ `betting-analytics.ts`
- ✅ `mcp-integration.md`
- ✅ `test-helpers.ts`
- ❌ `BettingAnalytics.ts`
- ❌ `MCP_Integration.md`
- ❌ `testHelpers.ts`
**No spaces or mixed case in filenames.**
## TypeScript Files
### Source Files
```
src/
├── index.ts # Entry point
├── mcp/
│ ├── server.ts # Single word or kebab-case
│ ├── tool-registry.ts
│ └── handlers/
│ ├── steam-moves.ts
│ └── risk-concentration.ts
```
### Test Files
```
tests/
├── unit/
│ ├── clv.test.ts # Preferred: feature.test.ts
│ ├── sharp-score.test.ts
│ └── bet-ticker-sniffer.test.ts
├── integration/
│ ├── queue-integration.test.ts
│ └── trigger-implementation.test.ts
```
**Patterns:**
- `*.test.ts` (preferred)
- `*_test.ts` (alternative)
- `*.spec.ts` (alternative)
## Configuration Files
**Standard names (keep as-is):**
- ✅ `package.json`
- ✅ `tsconfig.json`
- ✅ `wrangler.toml`
- ✅ `bunfig.toml`
**Environment configs:**
- ✅ `wrangler.staging.toml`
- ✅ `wrangler.production.toml`
## Documentation Files
**Uppercase for major docs:**
- ✅ `README.md`
- ✅ `LICENSE`
- ✅ `CLAUDE.md`
- ✅ `CHANGELOG.md`
- ✅ `CONTRIBUTING.md`
**Uppercase for status/important docs:**
- ✅ `TESTING_STATUS.md`
- ✅ `MCP_INTEGRATION_STATUS.md`
- ✅ `AUTOMATION_GUIDE.md`
**Kebab-case for guides:**
- ✅ `quick-start.md`
- ✅ `debugging-guide.md`
- ✅ `api-reference.md`
## Script Files
```
scripts/
├── test-mcp.ts # Kebab-case
├── test-handlers-direct.ts
├── format.ts
├── lint.ts
└── automation/
└── build-and-test.ts
```
## HTML Files
```
tools/
├── extension-checker.html # Kebab-case
├── system-health-monitor.html
└── troubleshooting-guide.html
dashboards/
├── dashboard-enhanced.html # Kebab-case
├── dashboard-pro.html
└── dashboard-positions.html
```
## Directories
**Always lowercase, kebab-case:**
- ✅ `browser-extension/`
- ✅ `node_modules/`
- ✅ `test-results/`
- ❌ `BrowserExtension/`
- ❌ `Node_Modules/`
## Database Migrations
```
migrations/
├── 0001_initial_schema.sql # Number_description
├── 0002_add_ttl.sql
├── 0003_mcp_tables.sql
└── 0004_test_data.sql
```
**Pattern:** `NNNN_description.sql`
## Special Cases
### MCP Handlers
```
src/mcp/handlers/
├── steamMoves.ts # camelCase (matches tool names)
├── riskConcentration.ts
├── sharpActivity.ts
├── timeSeriesCLV.ts
└── enhancedSharpScore.ts
```
**Why camelCase?** These match the MCP tool names exactly (`getSteamMoves` → `steamMoves.ts`)
### Tool Files
```
src/tools/intelligence/
├── getBettingExposure.ts # camelCase (matches API endpoints)
├── getSharpScore.ts
├── getHoldPercentage.ts
└── getCLV.ts
```
## What NOT to Create
**Never create:**
- ❌ Backup files: `*.backup`, `*.old`, `*.bak`
- ❌ Temp files: `*.tmp`, `*.temp`
- ❌ System files: `.DS_Store` (gitignored)
- ❌ Tilde files: `~`, `~/`
## File Extensions
**Standardized extensions:**
- TypeScript: `.ts` (not `.tsx` unless React)
- Markdown: `.md` (not `.markdown`)
- HTML: `.html` (not `.htm`)
- SQL: `.sql`
- Config: `.json`, `.toml`, `.yaml`
**Cursor rules:**
- Rule files: `.mdc` (in `.cursor/rules/`)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

