| name | windsurf-core-workflow-b |
| description | Execute Windsurf's secondary workflow: Workflows, Memories, and reusable automation.
Use when creating reusable Cascade workflows, managing persistent memories,
or automating repetitive development tasks.
Trigger with phrases like "windsurf workflow", "windsurf automation",
"windsurf memories", "cascade workflow", "windsurf slash command".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Grep |
| version | 1.11.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","windsurf","workflows","memories","automation"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Windsurf Core Workflow B — Workflows & Memories
Overview
Windsurf Workflows are reusable, multi-step automation sequences saved as markdown files and invoked via slash commands in Cascade. Memories are persistent facts that survive across sessions. Together they eliminate repetitive prompting and maintain project context.
Prerequisites
- Windsurf with Cascade enabled
- Understanding of
windsurf-core-workflow-a (Write mode)
.windsurfrules configured
Instructions
Step 1: Create a Workflow File
Workflows live in .windsurf/workflows/ as markdown files. Each becomes a slash command.
<!-- .windsurf/workflows/new-feature.md -->
---
name: new-feature
description: Scaffold a new feature with service, route, and tests
---
## Steps
1. Ask the user for: feature name, description, and which database tables are involved
2. Create `src/services/${feature-name}.ts` with:
- CRUD methods using Result<T,E> pattern
- Input validation with zod schemas
- JSDoc comments on all public methods
3. Create `src/routes/${feature-name}.ts` with:
- GET, POST, PUT, DELETE route handlers
- Request validation middleware
- Consistent error response format
4. Create `tests/services/${feature-name}.test.ts` with:
- Unit tests for all service methods
- Both success and error paths
5. Run `npx vitest run tests/services/${feature-name}.test.ts`
6. If tests pass, report success. If not, fix and re-run.
Invoke in Cascade: /new-feature
Step 2: Build a Deployment Workflow
<!-- .windsurf/workflows/deploy.md -->
---
name: deploy
description: Deploy to staging with pre-flight checks
---
Run — stop if errors
Run — stop if failures
Run — stop if errors
Check — stop if uncommitted changes
Run
Run
Run
Run
Report deploy status with health check result