FREE TOOL

.windsurfrules Generator

Structured Windsurf guidelines. Live preview. Clean Markdown export. Shareable links.

Draft the instructions file Windsurf's AI agent parses before editing your code. No signup required.

Learn how Moxie keeps rules living

Live preview

Cursor Rules for Acme Payments API

TypeScript monorepo for billing, subscriptions, and Stripe webhooks. Prefer small, reviewable PRs with tests for payment and auth paths.

Build commands#

Shell
npm install
npm run build

Test commands#

Shell
npm run test
npm run lint

Code style#

  • Use TypeScript strict mode.
  • Prefer explicit return types on exported functions.
  • Keep modules focused - one domain per folder under src/lib/.

Conventions#

  • Stripe webhook handlers live in src/lib/billing/.
  • Never log secrets or full card numbers.
  • All billing mutations go through subscription-items.ts helpers.

Repository layout#

  • apps/web - Next.js dashboard and API routes
  • packages/shared - shared types
  • supabase/migrations - database schema

PR & commit guidelines#

  • Run the full test suite before opening a PR.
  • Keep PRs to one logical change; billing and auth changes need a test.
  • Title format: [area] Short imperative summary.

Security notes#

  • Do not commit .env files.
  • Webhook routes must verify Stripe signatures before dispatching events.

Windsurf Rules go stale - Moxie keeps instructions evergreen Export free above · connect a repo when you want Moxie to keep it accurate

Windsurf-optimized structure

Runnable build/test command blocks, explicit conventions, file structure notes, and security directives specifically for the Windsurf AI agent.

Live preview

View the rendered .windsurfrules Markdown output in real-time as you fill out the fields.

Shareable drafts

The full editor state is persisted in the URL. Bookmark the page or share links directly with teammates.

Completely private

Runs entirely client-side. Your private codebase configurations and conventions never touch our servers.

What to include in .windsurfrules

Agent Instructions

Instruct the agent on how to approach refactors, write clean modules, and verify compilation status.

Repository Layout

Outline where components, styles, helper scripts, and tests belong so files are created in the right spots.

Build & Verify Scripts

List standard CLI commands for building, linting, and testing so the agent can self-repair broken changes.

Security Guardrails

Define explicit rules around secrets handling, API key exposure, and database mutations.

Built for the AI-agent era

Windsurf Rules go stale - Moxie keeps instructions evergreen

Draft and export your .windsurfrules here. Connect GitHub when you want Moxie to automatically detect doc gaps, catch drift, and serve fresh repo context via MCP.

Export free above · connect a repo when you want Moxie to keep it accurate