Windsurf
Prompt Best Practices
- Define Clear Objectives
- Specify the task type (refactor, generate, explain, debug)
- Describe the expected outcome
- Include success criteria when applicable
- Provide Relevant Context
- Point to specific files, functions or code
- Mention related components that might be affected
- Direct cascade to use tools like
mcp or @web when additional context is needed
- Establish Constraints
- Specify technical requirements or framework to follow
- Mention libraries or patterns to use or avoid
- Include performance considerations when relevant
Shortcuts
Ctrl + I [terminal] - start chat to generate CLI command