Skip to content

feat(templates): add comprehensive Cursor rules for Echo projects (closes #636)#806

Open
D3CC wants to merge 1 commit into
Merit-Systems:masterfrom
D3CC:feat/cursor-rules-1778676175
Open

feat(templates): add comprehensive Cursor rules for Echo projects (closes #636)#806
D3CC wants to merge 1 commit into
Merit-Systems:masterfrom
D3CC:feat/cursor-rules-1778676175

Conversation

@D3CC
Copy link
Copy Markdown

@D3CC D3CC commented May 13, 2026

Description

Add comprehensive .cursor/rules/echo_rules.mdc to echo-start templates as requested in #636.

What's included:

SDK Initialization Patterns:

  • Server-side Echo SDK setup in src/echo/index.ts
  • Client-side EchoProvider wrapper patterns
  • Environment variable requirements table

Server/Client Boundaries:

  • 'use client' directive usage
  • Next.js App Router API route patterns with Echo-billed providers
  • Auth checking with isSignedIn() in server components

React Component Patterns:

  • Functional components with TypeScript props
  • Named exports convention
  • Absolute import paths vs relative imports

TypeScript Configuration:

  • Strict mode usage
  • Interface vs type conventions
  • Kebab-case filename convention

CLI Patterns:

  • Echo TS SDK client initialization
  • generateText() and streamText() usage

Additional Coverage:

  • Testing patterns with Vitest
  • Error handling for async operations
  • Tailwind CSS styling conventions
  • Dark mode theming

File

  • templates/.cursor/rules/echo_rules.mdc — Cursor AI rules tailored for Echo Next.js, React, and CLI projects

References

  • Modeled after the Convex example format shown in #636
  • Based on actual Echo SDK patterns from templates/next-chat/src/echo/index.ts and templates/next-chat/src/providers.tsx

Closes #636

Add .cursor/rules/echo_rules.mdc covering:
- Echo SDK server/client initialization patterns
- Next.js API routes with Echo-billed AI providers
- React component patterns and auth flows
- TypeScript configuration and import conventions
- CLI patterns for Echo TS SDK
- Error handling and styling guidelines
- Environment variable requirements

Closes Merit-Systems#636
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 13, 2026

@D3CC is attempting to deploy a commit to the Merit Systems Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add .cursor/rules/echo_rules.mdc to echo-start templates

1 participant