This project is a fork of awesome-cursorrules, specifically adapted for Windsurf. The main difference is the support for global rules in Windsurf, which is reflected in the modified directory structure. While workspace rules are forked from the original project, the global rules feature is unique to this implementation.
A curated list of awesome global_rules
and .windsurfrules
files for enhancing your Windsurf experience.
Windsurf is an AI-powered code editor. global_rules
or .windsurfrules
files define custom rules for Windsurf to follow when generating code, allowing you to tailor its behavior to your specific needs and preferences.
Windsurf offers two powerful types of rules - global rules that apply across all projects, and workspace rules for project-specific customization.
-
Consistent Communication: Global language rules ensure all interactions follow the same communication standards across projects.
-
Standardized Practices: Define organization-wide conventions for commit messages, code style, and documentation that apply uniformly.
-
Security Baseline: Establish common security practices and data handling rules that protect all projects.
-
Performance Standards: Set universal performance optimization guidelines that benefit every project.
-
Project-Specific Customization: Tailor the AI's behavior to your specific project's needs and requirements.
-
Framework Alignment: Ensure generated code follows the conventions of your chosen framework or technology stack.
-
Context Awareness: Provide project-specific context about architecture, libraries, and common patterns.
-
Team Collaboration: Share project-specific guidelines that keep the entire team aligned with local conventions.
-
Dependency Management: Define project-specific dependencies and version requirements.
By combining both global and workspace rules, you create a comprehensive set of guidelines that ensure consistency across your organization while maintaining the flexibility to address project-specific needs.
Global rules are a unique feature in Windsurf that apply across all projects. They are organized in the following structure:
- ./rules/global_rules/ - Root directory for global rules
- global-en-language-global_rules-prompt-file/
- English-only responses
- Localization preferences
- commit-message-short-global_rules-prompt-file/
- Standard prefixes (feat, fix, docs, etc.)
- Short commit Message structure guidelines
- commit-message-long-global_rules-prompt-file/
- Standard prefixes (feat, fix, docs, etc.)
- Long commit Message structure guidelines
- global-en-language-global_rules-prompt-file/
Workspace rules are specific to each project and are organized in the following structure:
- ./rules/windsurfrules/ - Root directory for workspace rules
- ./rules/windsurfrules/blueprint-windsurfrules-prompt-file
- Blueprint
- ./rules/windsurfrules/nextjs-vercel-supabase-windsurfrules-prompt-file
- Next JS, Vercel, Supabase using Blueprint
- ./rules/windsurfrules/blueprint-windsurfrules-prompt-file
- Install Windsurf if you haven't already.
- Browse the rules above to find a
global_rules
or.windsurfrules
file that suits your needs. - Copy the chosen
global_rules
or.windsurfrules
file to your project's root directory or Windsurf'sGlobal Rules
file. - Customize the rules as needed for your specific project requirements.
Contributions are welcome! If you have a great .windsurfrules
file to share:
- Fork this repository.
- Create a new folder in the
global_rules
or.windsurfrules
directory. The folder name should follow this pattern:technology-focus-windsurfrules-prompt-file
For example:react-typescript-windsurfrules-prompt-file
- Add your
global_rules.md
or.windsurfrules
file to the new folder. - Optionally, include a README.md in the folder to provide credit and a brief description.
- Update the main README.md file, adding your contribution to the appropriate category.
- Ensure your contribution follows the guidelines in the
.windsurfrules
file at the root of this repository. - Submit a pull request.
Please ensure your contribution is original or properly credited if based on existing work. Refer to the global_rules.md
or .windsurfrules
file in the root of this repository for detailed guidelines on formatting, naming conventions, and best practices for contributions.