Windsurf · AI Coding Assets

Windsurf Rules, Skills and Workflows for AI Coding

Browse copy-ready AI coding assets for Windsurf. Find practical rules, skills, hooks and workflows for Cascade-powered development, debugging, code review, refactoring, testing and deployment.

How to use Windsurf rules, skills and workflows

Persistent instructions for Windsurf / Devin Desktop Cascade. Save Windsurf rules as Markdown under .devin/rules/*.md preferred, or legacy .windsurf/rules/*.md. Use Windsurf skills and AI coding hooks as short Cascade prompts, and Cascade workflows for multi-step tasks. Legacy .windsurfrules files are still read. You can also manage rules from Cascade → Customizations → Rules.

These AI coding rules and AI coding skills work alongside your stack-specific standards for faster, more consistent AI-assisted development.

Find Windsurf Assets by Category and Framework

Narrow Windsurf assets by development category and framework.

Framework

WINDSURF RULES BACKEND / API

Python Web Scraping Rules

Ethical, robust, and maintainable Python data collection and parsing.

WINDSURF RULES BACKEND / API

Go Microservice API Rules

RESTful design, error handling, and high-performance Go backend patterns.

WINDSURF RULES BACKEND / API

FastAPI Backend Rules

Async routes, Pydantic validation, and OpenAPI documentation for Python APIs.

WINDSURF RULES TESTING / QA

Vitest Unit Testing Rules

Fast unit and component tests with Vitest, mocks, and coverage targets.

WINDSURF RULES BACKEND / API

Node.js Express API Rules

REST APIs with Express — middleware, validation, error handling, and structure.

WINDSURF RULES CODE QUALITY / SECURITY

Zod Schema Validation Rules

Runtime validation, inferred types, and API boundary schemas with Zod.

WINDSURF RULES DATABASE / ORM

PostgreSQL Database Rules

Schema design, indexing, queries, migrations, and Postgres-specific features.

WINDSURF RULES CODE QUALITY / SECURITY

ESLint & Prettier Rules

Lint and format setup — flat config, CI integration, and team conventions.

WINDSURF RULES AI AGENT / RAG

Prompt Engineering Rules

Effective system prompts, few-shot examples, and structured outputs for LLMs.

WINDSURF RULES FRONTEND / UI

Tailwind CSS + shadcn/ui Rules

Rules for building modern UI using Tailwind CSS and shadcn/ui while keeping components clean, accessible, and consistent.

WINDSURF RULES DEVOPS / DEPLOYMENT

Cloudflare Workers + Pages Rules

Rules for building and deploying lightweight apps on Cloudflare Workers and Pages with edge-first architecture.

WINDSURF RULES BACKEND / API

Python FastAPI Backend Rules

Rules for building clean FastAPI backends with typed routes, Pydantic models, validation, services, and error handling.

About Windsurf Assets

What are Windsurf rules, skills and workflows?

Windsurf (Devin Desktop) assets are copy-ready instructions for Cascade. Rules are persistent workspace standards saved under .devin/rules/. Skills and workflows are paste-ready prompts for multi-step Cascade tasks.

Where should Windsurf rules be stored?

Save workspace rules as Markdown files at your repo root:

You can also create and edit rules from Cascade Customizations → Rules without touching the filesystem.

Rules vs Memories vs AGENTS.md

Best Windsurf rules by stack

FAQ

Where do Windsurf / Devin Desktop rules go?

Create Markdown files as .devin/rules/*.md (preferred) or legacy .windsurf/rules/*.md at your repo root. Legacy .windsurfrules files are still read. You can also manage rules from Cascade Customizations → Rules.

What are Windsurf rule triggers?

Windsurf / Devin Desktop rules support activation triggers that control when a rule is applied: always_on (active in every session), glob (active when working with matching file paths), model_decision (Cascade decides based on context), and manual (you invoke the rule on demand). Set triggers in the rule file frontmatter or via Cascade Customizations → Rules.

What is the difference between Rules, Memories, and AGENTS.md?

Rules are explicit instructions you write and commit (coding standards, stack patterns). Memories are facts Cascade retains from past conversations. AGENTS.md is a project brief describing architecture and workflow — use it alongside rules for broader context. See the guide above for details.

How do I use an asset from AI Agent Dock?

Browse the Windsurf Assets Directory, open an asset detail page, and click the copy button for that asset type. For rules, save as a .md file under .devin/rules/; for skills, paste into Cascade Chat. Each asset has a permanent URL (e.g. /rules/fastapi-backend).

Can I edit assets after copying?

Yes. Assets are starting templates — remove sections you do not need, add project-specific conventions, and keep total length reasonable so you do not overrun the AI context window.

Are these assets free to use?

Yes. Most assets on this site are MIT-licensed unless noted otherwise on the detail page. Check the License line on each card or detail page.

How do I submit my own asset?

Visit Submit an AI Coding Asset for guidelines, then send your asset by email.

Looking for Cursor assets instead?

Cursor rules live in .cursor/rules/ as .mdc or Markdown files. Browse the Cursor Assets Directory or see Also explore in the sidebar.