Skip to content

feat: add .cursor/rules/echo_rules.mdc to all echo-start templates#753

Open
PurdueDM wants to merge 1 commit intoMerit-Systems:masterfrom
PurdueDM:feat/add-cursor-rules-to-templates
Open

feat: add .cursor/rules/echo_rules.mdc to all echo-start templates#753
PurdueDM wants to merge 1 commit intoMerit-Systems:masterfrom
PurdueDM:feat/add-cursor-rules-to-templates

Conversation

@PurdueDM
Copy link
Copy Markdown

@PurdueDM PurdueDM commented Apr 2, 2026

Fixes #636

What

Adds .cursor/rules/echo_rules.mdc to all 9 echo-start templates, each tailored to the template's framework and SDK usage patterns.

Templates covered

Template Framework Key Topics
next Next.js 15 App Router EchoProvider, server/client SDK split, API route handler
next-chat Next.js + AI SDK useChat hook, streaming, streamText
next-image Next.js + Image Gen generateImage, gallery components
next-video-template Next.js + Video Gen Video generation, player UI
nextjs-api-key-template Next.js + Prisma PostgreSQL, API key management, Prisma singleton
react React + Vite Client-side EchoProvider, VITE_ env vars
react-chat React + AI SDK useChat hook, message components
react-image React + Image Gen Image generation gallery
echo-cli Node.js CLI Commander.js, wallet auth, @clack/prompts
assistant-ui Next.js + assistant-ui AssistantRuntimeProvider, @assistant-ui/react
authjs Next.js + Auth.js NextAuth v5, Echo auth provider

What each rules file covers

  • Echo SDK initialization patterns (correct imports, provider wrapping)
  • AI integration with the right import paths (Echo-proxied models vs direct)
  • Environment variable conventions (ECHO_APP_ID vs NEXT_PUBLIC_ vs VITE_)
  • Project structure guidance
  • Build and development commands

Format

Each file follows the Cursor .mdc format with YAML frontmatter:

---
description: ...
globs: **/*.ts,**/*.tsx,**/*.js,**/*.jsx
---

Adds tailored Cursor IDE rules to all 9 echo-start templates:

Next.js templates (5):
- next: App Router, EchoProvider, server/client SDK split
- next-chat: AI SDK useChat, streaming, shadcn/ui
- next-image: AI image generation, gallery components
- next-video-template: Video generation, player components
- nextjs-api-key-template: Prisma, PostgreSQL, API key management

React templates (3):
- react: Vite, EchoProvider, client-side only
- react-chat: useChat hook, message components
- react-image: Image generation, gallery

CLI template (1):
- echo-cli: Commander.js, wallet auth, clack prompts

Each rules file is framework-specific and covers:
- Echo SDK initialization patterns
- AI integration with correct imports
- Environment variable conventions
- Project structure guidance

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

vercel bot commented Apr 2, 2026

@bboutwellAWC 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

2 participants