Retext
Free Tool

Windsurf Prompt Enhancer

Get better results from Windsurf's Cascade agent by writing clearer prompts. Optimize for multi-file editing and complex refactoring tasks.

0/5000 characters

Tips for Windsurf Prompts

  • Describe the end goal, let Cascade figure out the steps
  • Reference related files and modules
  • Specify testing requirements
  • Mention patterns you want to follow
  • Use Flows for multi-step workflows

Example Enhancement

Before

Refactor the authentication system

After

Refactor the authentication system from session-based to JWT tokens. **Current state:** - Express.js backend with session-based auth - Sessions stored in Redis - Auth middleware in /middleware/auth.js **Target state:** 1. Replace sessions with JWT access + refresh tokens 2. Access token: 15min expiry, stored in memory 3. Refresh token: 7 days, stored in httpOnly cookie 4. Add token refresh endpoint at POST /api/auth/refresh 5. Update auth middleware to verify JWTs **Requirements:** - Maintain backward compatibility during migration - Add proper error handling for token expiration - Update all protected routes to use new middleware - Add tests for the new auth flow **Please update:** middleware, auth routes, and any files importing the auth middleware.

Frequently Asked Questions

What is Cascade in Windsurf?

Cascade is Windsurf's agentic AI that can autonomously make multi-file changes. Our enhancer writes prompts that give Cascade clear goals while letting it determine the implementation.

Save Your Enhanced Prompts

Turn your best Windsurf prompts into reusable snippets with Retext. Type a short trigger and instantly expand.