Creating and Modifying Rules | Windsurf University



AI Summary

This video explains how rules work in Windsurf (Cascade) to enforce consistent code style and project conventions. It covers how to access the customization panel where users can create global and workspace-specific rules, which are stored as markdown files under 6,000 characters. Four activation modes for rules are presented: Manual (triggered by typing the rule’s name), Always On (applies to every action), Model Decision (cascade decides relevance), and Glob (activates based on file path matching a regex pattern).

The video emphasizes creating short, specific, easy-to-scan rules rather than generic advice and shows how rules can be grouped using simple XML-style text. Limitations on rule length and total rule set size are also explained. Since rules are plain markdown files, they can be managed with version control and shared or deleted among teams.

The tutorial provides a practical understanding of how to define guidelines for Cascade using rules and mentions there’s a further video about workflows for advanced usage.