notes

Windsurf

Prompt Best Practices

  1. Define Clear Objectives
    • Specify the task type (refactor, generate, explain, debug)
    • Describe the expected outcome
    • Include success criteria when applicable
  2. 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
  3. Establish Constraints
    • Specify technical requirements or framework to follow
    • Mention libraries or patterns to use or avoid
    • Include performance considerations when relevant

Shortcuts

  1. Ctrl + I [terminal] - start chat to generate CLI command