How to Create a Skill
Using the UI (easiest)
- Open the Cascade panel
- Click the three dots in the top right of the panel to open up the customizations menu
- Click on the
Skillssection - Click
+ Workspaceto create a workspace (project-specific) skill, or+ Globalto create a global skill - Name the skill (lowercase letters, numbers, and hyphens only)
Manual Creation
Workspace Skill (project-specific):- Create a directory:
.windsurf/skills/<skill-name>/ - Add a
SKILL.mdfile with YAML frontmatter
- Create a directory:
~/.codeium/windsurf/skills/<skill-name>/ - Add a
SKILL.mdfile with YAML frontmatter
SKILL.md File Format
Each skill requires aSKILL.md file with YAML frontmatter containing the skill’s metadata:
Example skill
Required Frontmatter Fields
- name: Unique identifier for the skill (displayed in UI and used for @-mentions)
- description: Brief explanation shown to the model to help it decide when to invoke the skill
deploy-to-staging, code-review, setup-dev-environment
Adding Supporting Resources
Place any supporting files in the skill folder alongsideSKILL.md. These files become available to Cascade when the skill is invoked:
Invoking Skills
Automatic Invocation
When your request matches a skill’s description, Cascade automatically invokes the skill and uses its instructions and resources to complete the task. This is the most common way skills are used—you simply describe what you want to do, and Cascade determines which skills are relevant. Thedescription field in your skill’s frontmatter is key: it helps Cascade understand when to invoke the skill. Write descriptions that clearly explain what the skill does and when it should be used.
Manual Invocation
You can always explicitly activate a skill by typing@skill-name in the Cascade input. This is useful when you want to ensure a specific skill is used, or when you want to invoke a skill that might not be automatically triggered by your request.
Skill Scopes
| Scope | Location | Availability |
|---|---|---|
| Workspace | .windsurf/skills/ | Current workspace/project only |
| Global | ~/.codeium/windsurf/skills/ | All workspaces/projects |
Example Use Cases
Deployment Workflow
Create a skill with deployment scripts, environment configs, and rollback procedures:Code Review Guidelines
Include style guides, security checklists, and review templates:Testing Procedures
Bundle test templates, coverage requirements, and CI/CD configs:Best Practices
- Write clear descriptions: The description helps Cascade decide when to invoke the skill. Be specific about what the skill does and when it should be used.
- Include relevant resources: Templates, checklists, and examples make skills more useful. Think about what files would help someone complete the task.
-
Use descriptive names:
deploy-to-stagingis better thandeploy1. Names should clearly indicate what the skill does.
Skills vs Rules
Skills and Rules are both ways to customize Cascade’s behavior, but they serve different purposes:| Feature | Skills | Rules |
|---|---|---|
| Purpose | Complex tasks with supporting resources | Behavioral guidelines and preferences |
| Structure | Folder with SKILL.md + resource files | Single .md file |
| Invocation | Automatic (progressive disclosure) or @-mention | Trigger-based (always-on, glob patterns, or manual) |
| Best for | Multi-step workflows, deployment procedures, code review processes | Coding style preferences, project conventions, response formatting |
Related Documentation
If Skills aren’t what you’re looking for, check out these other Cascade features:- Workflows - Automate repetitive tasks with reusable markdown workflows invoked via slash commands
- AGENTS.md - Provide directory-scoped instructions that automatically apply based on file location
- Memories & Rules - Persist context across conversations with auto-generated memories and user-defined rules