FREE TOOL

.cursorrules Generator

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

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

Cursor Rules vs Moxie Docs

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.

Cursor Rules are static - Moxie keeps context living and queryable Export free above · connect a repo when you want Moxie to keep it accurate

Cursor-optimized structure

Runnable build/test command blocks, explicit conventions, file structure notes, and security directives specifically for Cursor agent mode.

Live preview

View the rendered .cursorrules 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 .cursorrules

Agent Persona

Instruct the agent to act as an expert on your specific framework, styling library, and architectural patterns.

Codebase Conventions

Map folder layouts and explicit naming rules so the agent writes files in the correct directories using standard patterns.

Runnable Commands

Provide verified build, lint, and test scripts so Cursor's terminal agent can safely test code after changes.

Security Safeguards

Set boundaries for private environment variables, database modifications, and payments integrations.

Built for the AI-agent era

Cursor Rules are static - Moxie keeps context living and queryable

Draft and export your .cursorrules here. Read why queryable context beats static files, then connect GitHub when you want Moxie to serve dynamic codebase context via MCP on demand.

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