30 - 45 minutes | Understanding "context" structure
You're not writing the brain today - you're understanding how it's architected.
We've prepared a complete set of context files for the 4-player Simon game.
Your job:
Traditional Development:
Context-Driven Development:
The .cursorrules folder = The Brain
What's inside:
A folder called .cursorrules containing multiple markdown files.
Each file handles a different aspect of the product:
Together, they form the complete specification.
When you prompt Cursor:
"Build the lobby feature.
Use .cursorrules-product.md for requirements."
What happens:
The brain is persistent memory.
We're going to walk through each file:
Follow along - we'll explain each part.
File: .cursorrules-product.md
What's in it:
Why it exists:
Example rule: "Players join via shareable link - no login system, no passwords"
Result: Cursor will never build a login form
File: .cursorrules-mobile-ui.md
What's in it:
Why it exists:
Example rule: "4 buttons in 2×2 grid: Each button = 160px × 160px with 8px gap"
Result: Cursor knows exact pixel values
File: .cursorrules-architecture.md
What's in it:
Why it exists:
Example rule: "Use Socket.io for real-time multiplayer sync, not polling"
Result: Cursor always uses WebSockets
File: .cursorrules-tdd.md
What's in it:
Why it exists:
Example rule: "You MUST write a failing test before any code. No exceptions."
Result: Cursor refuses to code without tests
Examples:
.cursorrules-game-logic.md (Simon game rules).cursorrules-realtime.md (multiplayer sync)What's in them:
Why they exist:
The brain is interconnected:
Product file says: "Players join with nicknames" → UI file specifies: "Nickname input: 2-12 characters" → Game logic validates: "Check length before joining lobby" → TDD file enforces: "Test this validation first"
Each file reinforces the others.
Cursor reads across files to build coherently.
Now let's set up your project:
Step 1: Create the folder
In your project, create a folder called .cursorrules
Step 2: Copy the files
From the shared directory, copy all the .cursorrules files into your folder
Step 3: Verify Ask Cursor: "What context files do you see in .cursorrules?"
You should see the complete list.
What you now have:
✅ Complete product specification
✅ Exact design constraints
✅ Technical architecture defined
✅ Quality rules enforced
✅ Game logic documented
What you DON'T have:
But Cursor now knows exactly what to build.
Next session:
The brain does the remembering.
You do the directing.
Cursor does the building.
Before lunch, any questions about: