Skip to content

fix: Add .cursor/rules/echo_rules.mdc to echo-start templates#764

Open
ledgerpilot wants to merge 6 commits intoMerit-Systems:masterfrom
ledgerpilot:ledgerpilot/fix-636
Open

fix: Add .cursor/rules/echo_rules.mdc to echo-start templates#764
ledgerpilot wants to merge 6 commits intoMerit-Systems:masterfrom
ledgerpilot:ledgerpilot/fix-636

Conversation

@ledgerpilot
Copy link
Copy Markdown

@ledgerpilot ledgerpilot commented Apr 9, 2026

Closes #636

What changed

Added a tailored .cursor/rules/echo_rules.mdc to all 11 echo-start templates. Each file is specific to that template's use case — which is what #636 asked for.

Template Rules focus
assistant-ui Multi-provider AI (OpenAI/Anthropic/Google), tool calling
authjs Next-Auth session validation, auth-protected routes
next-chat Streaming chat, useChat hook, conversation history
next Minimal catch-all route setup, basic AI route
nextjs-api-key-template API key auth, Bearer header validation
echo-cli Commander.js CLI, Node.js streaming, clack/prompts
react Vite + EchoProvider, EchoTokens
react-chat EchoChatProvider, useEchoModelProviders, streaming
next-image DALL-E image generation, next/image display
next-video-template Gemini multimodal video analysis
react-image Vite image generation hook

Also fixed globs front-matter — the original files used templates/**/... paths that would never match inside a template. Each file now uses **/*.ts,**/*.tsx relative to its own root.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 9, 2026

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

A member of the Team first needs to authorize it.

Comment thread templates/next/.cursor/rules/echo_rules.mdc Outdated
Comment thread templates/assistant-ui/.cursor/rules/echo_rules.mdc Outdated
Comment thread templates/nextjs-api-key-template/.cursor/rules/echo_rules.mdc Outdated
Comment thread templates/authjs/.cursor/rules/echo_rules.mdc Outdated
Comment thread templates/next-chat/.cursor/rules/echo_rules.mdc Outdated
Each template now has a unique .cursor/rules/echo_rules.mdc file that
reflects its specific use case:

- assistant-ui: multi-provider AI (OpenAI/Anthropic/Google), tool calling
- authjs: Next-Auth session validation, auth-protected chat routes
- next-chat: streaming chat, useChat hook, conversation context
- next: minimal Next.js, catch-all route setup, basic AI route pattern
- nextjs-api-key-template: API key auth, Bearer header validation
- echo-cli: Commander.js CLI, Node.js streaming, clack/prompts guidance
- react: Vite/React with EchoProvider and EchoTokens
- react-chat: EchoChatProvider, useEchoModelProviders, streaming in SPA
- next-image: DALL-E image generation, next/image display
- next-video-template: Gemini multimodal video analysis and captions
- react-image: Vite image generation hook

Fixed incorrect globs (previously pointed to templates/**/ instead of
**/ relative to each template root).

Closes Merit-Systems#636
@ledgerpilot
Copy link
Copy Markdown
Author

Updated this PR: expanded from 5 templates to all 11, and rewrote each echo_rules.mdc to be specific to its template (assistant-ui covers multi-provider tool calling, authjs covers Next-Auth session protection, echo-cli covers Commander.js CLI patterns, react/react-chat use EchoProvider from the React SDK, etc.). Also fixed the globs which previously pointed to templates/**/... instead of paths relative to each template root. Happy to adjust anything.

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