typescript-nextjs-react-cursorrules-prompt-file: Cursor rule
Configures Cursor for TypeScript, Next.js 14 App Router, React, and Tailwind. Useful when building frontend interfaces with Vercel AI SDK streaming.
.cursor/rules/typescript-nextjs-react-cursorrules-prompt-file.mdcWhat typescript-nextjs-react-cursorrules-prompt-file does
This rule instructs Cursor to operate as a developer focused on TypeScript, React, Tailwind, and Next.js 14 App Router. It tells the editor to follow the Next.js 14 documentation when handling routing, rendering, and data fetching.
Streaming and model interactions are delegated to the Vercel AI SDK. Because alwaysApply is set to false, Cursor does not attach these directives to every single prompt by default, even though the file pattern is **/*.
What it helps with
- structure Next.js 14 App Router pages and data fetching
- integrate Vercel AI SDK for streaming responses
- style React components using Tailwind CSS
Example prompts for the agent
- Create a Next.js 14 App Router page with data fetching and Tailwind styling.
- Add a streaming chat endpoint using Vercel AI SDK.
How to install typescript-nextjs-react-cursorrules-prompt-file
Manually: put the files in place
.cursor/rules/typescript-nextjs-react-cursorrules-prompt-file.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/typescript-nextjs-react-cursorrules-prompt-file.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/typescript-nextjs-react-cursorrules-prompt-file.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/typescript-nextjs-react-cursorrules-prompt-file.mdManually: put the files in place
.clinerules/typescript-nextjs-react-cursorrules-prompt-file.mdStep by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules
Questions about typescript-nextjs-react-cursorrules-prompt-file
How do I install typescript-nextjs-react-cursorrules-prompt-file in Cursor?
Place the rule file at .cursor/rules/typescript-nextjs-react-cursorrules-prompt-file.mdc in your project root.
What does typescript-nextjs-react-cursorrules-prompt-file do?
It instructs Cursor to write code using TypeScript, Next.js 14 App Router conventions, React, Tailwind, and the Vercel AI SDK.
Does this rule run on every query automatically?
The rule specifies alwaysApply: false, so Cursor will not activate it on every prompt automatically despite the **/* glob.
Source text
typescript-nextjs-react-cursorrules-prompt-file.mdc · CC0-1.0
--- description: "Cursor rules for TypeScript development with Next.js and React integration." globs: **/* alwaysApply: false --- You are an expert in TypeScript, Next.js App Router, React, and Tailwind. Follow @Next.js 14 App Router docs for Data Fetching, Rendering, and Routing. Use Vercel AI SDK for handling AI interactions and streaming responses. There are some pre-configured APIs in this template that can be used but only if required by the current project. These have already been created:
© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules