Skip to content

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

Open
tarai-dl wants to merge 1 commit intoMerit-Systems:masterfrom
tarai-dl:rn/add-cursor-rules-echo-636
Open

feat: add .cursor/rules/echo_rules.mdc to echo-start templates#771
tarai-dl wants to merge 1 commit intoMerit-Systems:masterfrom
tarai-dl:rn/add-cursor-rules-echo-636

Conversation

@tarai-dl
Copy link
Copy Markdown

Summary

Adds .cursor/rules/echo_rules.mdc files to all echo-start templates, tailored to each template's framework type.

Closes #636

Changes

Next.js Templates (7 templates)

  • next, next-image, next-chat, next-video-template, nextjs-api-key-template, assistant-ui, authjs
  • Rules cover: EchoProvider setup with @merit-systems/echo-next-sdk/client, AI provider integration via useEchoModelProviders(), authentication patterns, environment variables (NEXT_PUBLIC_ECHO_APP_ID), API routes with @merit-systems/echo-typescript-sdk, and error handling

React/Vite Templates (3 templates)

  • react, react-chat, react-image
  • Rules cover: EchoProvider setup with @merit-systems/echo-react-sdk, Vite environment variables (VITE_ECHO_APP_ID), AI provider integration, authentication, token management, and component patterns

CLI Template (1 template)

  • echo-cli
  • Rules cover: commander command structure, @clack/prompts interactive prompts, Echo TypeScript SDK initialization, authentication (OAuth + wallet), model selection, chat sessions, wallet operations, and output formatting

Example (Convex-style format)

Each file follows the .mdc format shown in the issue:

---
description: Guidelines and best practices for building Echo-powered Next.js applications
globs: **/*.ts,**/*.tsx,**/*.js,**/*.jsx
---

# Echo Next.js Guidelines
...

Closes Merit-Systems#636

Add tailored Cursor AI rules files for each template type:
- Next.js templates (7): echo-next-sdk setup, AI provider integration, auth patterns
- React/Vite templates (3): echo-react-sdk setup, Vite env vars, component patterns
- CLI template (1): commander + clack prompts, wallet operations, chat sessions

Each rules file provides framework-specific guidance for Echo SDK usage.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 19, 2026

@tarai-dl 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