agentleFS
brendadeeznuts1111brendadeeznuts1111/betting-brain-v3/.cursor/rules/root-organization.mdc

betting-brain-v3 / rules

Cursor rule8 starsChanged 14 months agoMITView on GitHub

Root directory organization and file placement rules

The file

We split this root-organization.mdc into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only these files are permitted in the project root:

    line 17
  2. Distinctive:

    Test results or CI artifacts

    line 37
  3. Distinctive:

    If NO to both → It belongs in a subdirectory, NOT root!

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
root-organization.mdc
---
version: "5.0.0"
scope: ["*"]
alwaysApply: true
description: "Root directory organization and file placement rules"
lastUpdated: "2025-10-08"
dependencies: ["quality-standards", "file-naming"]
---

# Root Directory Organization Rules

## CRITICAL: Root Directory Policy

**The root directory MUST remain clean and minimal.**

### ✅ ALLOWED in Root
Only these files are permitted in the project root:
- `README.md` - Main project documentation
- `LICENSE` - Project license
- `CLAUDE.md` - AI assistant guidance (like CONTRIBUTING.md)
- `package.json` - Dependencies
- `package-lock.json` - NPM lock file (auto-generated)
- `bun.lock` - Bun lock file (auto-generated)
- `tsconfig.json` - TypeScript configuration
- `wrangler.toml` - Cloudflare Workers base config
- `wrangler.staging.toml` - Staging environment config
- `wrangler.production.toml` - Production environment config

### ❌ FORBIDDEN in Root
**NEVER create these in root:**
- Markdown files (except README.md, LICENSE, CLAUDE.md)
- Status files (MCP_INTEGRATION_STATUS.md, TESTING_STATUS.md, etc.)
- Documentation files
- Session summaries or reports
- Cleanup plans or reviews
- Temporary files
- Test results or CI artifacts
- Backup files (*.backup)
- Build outputs
- Coverage reports
- Tilde directories (~, ~/)

## File Placement Rules

### Where Files Must Go
```
Documentation → docs/
Status files → docs/
Testing guides → docs/testing/ or docs/guides/
Deployment guides → docs/deployment/
Scripts → scripts/
Tools → tools/
Additional configs → config/
Archives → docs/archive/
Session reports → docs/
Reviews → docs/
```

### Examples
```
❌ BAD: /TESTING_STATUS.md
✅ GOOD: /docs/TESTING_STATUS.md

❌ BAD: /MCP_INTEGRATION_STATUS.md
✅ GOOD: /docs/MCP_INTEGRATION_STATUS.md

❌ BAD: /CLEANUP_SUMMARY.md
✅ GOOD: /docs/CLEANUP_SUMMARY.md

❌ BAD: /setup-guide.md
✅ GOOD: /docs/guides/setup-guide.md
```

## Before Creating ANY File

**Ask yourself:**
1. Is this a standard project file? (package.json, README.md, LICENSE)
2. Is this a required configuration? (tsconfig.json, wrangler.toml)
3. If NO to both → **It belongs in a subdirectory, NOT root!**

## Enforcement

See [docs/ROOT_STRUCTURE.md](mdc:docs/ROOT_STRUCTURE.md) for complete root directory reference.

**Violation of these rules will require immediate cleanup and file relocation.**

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.