46 public Windsurf rules in the HyperPrompt directory
Windsurf's rules documentation (docs.windsurf.com/windsurf/cascade/memories) now redirects to Devin documentation, which describes rules for the Devin Local agent in Devin Desktop. Current rules live in .devin/rules/*.md with a trigger setting, and the legacy Windsurf files (.windsurf/rules/*.md, .windsurf/global_rules.md and .windsurfrules) are still imported by default. AGENTS.md files are read as always-on rules.
Setup details below were checked against the official Windsurf / Devin documentation on 2026-11-05. Vendor tools change often; confirm with the linked sources if something behaves differently in your version.
| File or location | Scope | Status |
|---|---|---|
.devin/rules/*.md | Workspace rules with a trigger front matter field. | current |
.devin/global_rules.md and ~/.devin/ | Global rules for every project. | optional |
AGENTS.md, AGENTS.local.md, AGENT.md | Read as always-on rules, including in subdirectories. | current |
.windsurf/rules/*.md, .windsurf/global_rules.md, .windsurfrules | Legacy Windsurf rule files.Imported by default according to the current docs. | legacy |
.devin/rules/tests.mdIllustrative example using the documented glob trigger.
--- trigger: glob globs: "**/*.test.ts" --- - Use Vitest; do not introduce Jest. - Cover the failure path for every new branch of logic. - Never delete an existing test to make a suite pass.
The current docs say AGENTS.md, AGENTS.local.md and AGENT.md are read as always-on rules, including files in subdirectories. Use .devin/rules/ when you need glob, model-decision or manual triggers.
Earlier versions of this page only described a .windsurfrules file. That file still loads as a legacy import, but the current documentation centers on .devin/rules/*.md. The documentation URL redirect suggests product naming is changing; check the official docs for the edition you use.
Collections with at least one matching public rule.
Add performance monitoring and analytics
Generate React forms with react-hook-form and Zod: shared schemas, labelled field components, accessible error messages, async validation, submission state and tests.
Generate strictly typed TypeScript: strict plus chosen extra checks, explicit return types on exported APIs, no any, derived types, sound guards, typed errors, small generic utilities and TSDoc.
Generate Angular components and services
Generate Zustand state management
Generate Prisma schemas and clients
Windsurf rules for React with TypeScript: typed function components, correct form submission handling, state ownership by kind, and measured memoization.
Generate file upload components and handlers
Implement authentication flows securely
Generate Supabase client and queries
Generate React components that stay fast and accessible: typed props, memoization only where it pays (or React Compiler), naming conventions, error boundaries and real behaviour tests.
Generate NestJS modules and controllers
Generate type-safe APIs with tRPC
Windsurf rules for Next.js 15/16 App Router: Server Components by default, async params, file conventions including proxy, and validated Server Functions with revalidation.
Generate Electron desktop applications
Generate Auth0 authentication
Generate search functionality with filtering
Generate Playwright E2E tests
Windsurf rules for React apps styled with Tailwind: pure components and hooks, theme tokens and dark mode, state by kind (server, URL, form, global) and practical performance work.
Windsurf rules for strict TypeScript: strict plus extra index and optional-property checks, interfaces and unions, keyof generics, sound type guards and branded IDs.
According to the current docs (checked 2026-11-05), .windsurfrules and the .windsurf/rules files are legacy files that are imported by default. New rules belong in .devin/rules/*.md.
always_on, glob (with a globs pattern), model_decision and manual, set in the rule's front matter.
docs.windsurf.com/windsurf/cascade/memories redirects to docs.devin.ai, which documents rules for the Devin Local agent in Devin Desktop. Check the official docs for the product edition you use.
Generate a Cursor project rule or a cross-tool AGENTS.md from your stack, then adapt it with the file locations above.