Skip to main content
Windsurf pairs the Cursor editing experience with Anthropic’s models. Configure workspace rules so the assistant understands Horizon conventions.

Workspace rules

Create .windsurf/rules.md:
# Horizon workspace guide

## Docs
- MDX with YAML frontmatter.
- Prefer sentence-case headings.
- Provide context, steps, and verification.

## APIs
- Keep examples aligned with `api-reference/openapi.json`.
- Document Coinbase x402 replay behaviour when endpoints return 402.
- Include job polling or webhook guidance whenever responses are asynchronous.

## Tone
- Confident, friendly, technically precise.
- Avoid fluff—lead with outcomes.

Useful Cascade prompts

  1. “Review this diff and suggest missing job polling coverage.”
  2. “Rewrite this prompt to emphasise consent tracking, max 80 words.”
  3. “Draft release notes for the new webhook secret rotation endpoint.”

Snippets

Windsurf supports reusable snippets that you can expand while typing. Add .windsurf/snippets.json:
{
  "verifyJobFlow": [
    "Document 402 replay",
    "Confirm webhook signature steps",
    "List statusUrl polling guidance"
  ]
}
Trigger verifyJobFlow after editing an endpoint doc to remind yourself of the validation steps.