Skip to content

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

Open
Halo11112222 wants to merge 3 commits intoMerit-Systems:masterfrom
Halo11112222:feat/add-cursor-rules-echo-template
Open

Add .cursor/rules/echo_rules.mdc to echo-start templates#766
Halo11112222 wants to merge 3 commits intoMerit-Systems:masterfrom
Halo11112222:feat/add-cursor-rules-echo-template

Conversation

@Halo11112222
Copy link
Copy Markdown

Hey! Saw the issue about adding Cursor rules to the templates — figured I'd put together something useful.

I added .cursor/rules/echo_rules.mdc files to the three main template types:

  • Next.js (templates/next/) — covers server/client setup, model provider usage, EchoProvider wrapping, and the API route pattern
  • React (templates/react/) — covers Vite-specific setup, the useEchoModelProviders hook, and EchoTokens component
  • CLI (templates/echo-cli/) — covers auth flow, wallet management, and prompt patterns

Each file is tailored to its framework so Cursor will give relevant suggestions based on the template you're working in. The rules follow the same format as the Convex example in the issue.

Would love feedback on the approach! Happy to adjust if you'd prefer a different structure or want to cover more of the templates.

Fixes #636

Added .cursor/rules/echo_rules.mdc with guidelines for using the
Echo SDK in Next.js projects. Covers server/client setup, model
provider usage, UI components, and API route configuration.

Helps developers get started with Echo faster by providing
tailored Cursor AI suggestions for the Next.js integration.

Fixes Merit-Systems#636
Added .cursor/rules/echo_rules.mdc with guidelines for using the
Echo SDK in React (Vite) projects. Covers provider setup, model
provider hooks, and UI components.

Fixes Merit-Systems#636
Added .cursor/rules/echo_rules.mdc with guidelines for building
CLI tools with Echo. Covers authentication flow, wallet management,
and interactive prompt patterns.

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

vercel bot commented Apr 15, 2026

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

A member of the Team first needs to authorize it.

Use Echo's auth functions for CLI login flow:

```typescript
import { loginWithEcho, logout, isAuthenticated } from '@/auth';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { loginWithEcho, logout, isAuthenticated } from '@/auth';
import { loginWithEcho, logout } from '@/auth';
import { isAuthenticated } from '@/utils';

Cursor rules documentation shows incorrect import path for isAuthenticated - it should be from @/utils, not @/auth.

Fix on Vercel

Comment on lines +32 to +34
import {
initLocalWallet,
loginWithWallet,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import {
initLocalWallet,
loginWithWallet,
import { initLocalWallet, loginWithWallet } from '@/auth';
import {

Cursor rules documentation shows incorrect import path for wallet authentication functions initLocalWallet and loginWithWallet.

Fix on Vercel

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