auto_awesome
Windsurf (.windsurfrules)
Windsurf reads .windsurfrules from the repo root. Plain markdown — Windsurf treats it as a system-prompt prefix appended to every Cascade interaction.
File path
.windsurfrulesLength cap (recommended)
~500 lines
Frontmatter
No
File globs
No
Format quirks
- check_circleWindsurf merges .windsurfrules with global_rules.md from the user profile
- check_circlePer-workspace rules live in .windsurf/rules/*.md (newer format)
- check_circlePlain markdown — no frontmatter
Browse stack examples
Every stack page in the library has a one-click copy button for Windsurf (.windsurfrules). Open any of these and pick "Windsurf (.windsurfrules)" from the format dropdown.
descriptiondescriptiondescriptiondescriptiondescriptiondescriptiondescriptiondescriptiondescriptiondescriptiondescriptiondescription
See all 20 stacksarrow_forwardNext.js (App Router) + TypeScript
Next.js App Router (TypeScript, Server Components)
Next.js + Supabase (Auth, Postgres, RLS)
Next.js + Prisma + Postgres
React 19 + TypeScript (Vite)
React Native + Expo (managed workflow)
Python + FastAPI + SQLAlchemy + Alembic
Python + Django + DRF
Python + pandas + numpy + scikit-learn (Jupyter)
PyTorch + Hugging Face + W&B
Node.js + Express + TypeScript
Turborepo + pnpm + TypeScript
Official docs: https://docs.codeium.com/windsurf/cascade/rules