Svelte 5 (vs Svelte 4)
FreeTeaches Cursor the Svelte 5 changes: runes, snippets and the new event handlers.
Purpose
Install the original Svelte 5 (vs Svelte 4) rule from PatrickJS/awesome-cursorrules and use it in Cursor.
Procedure
--- name: cursor-svelte5 description: Teaches Cursor the Svelte 5 changes: runes, snippets and the new event handlers. ---
Svelte 5 (vs Svelte 4)
Purpose
Install the original Svelte 5 (vs Svelte 4) rule from PatrickJS/awesome-cursorrules and use it in Cursor.
Procedure
Source: https://github.com/PatrickJS/awesome-cursorrules/blob/main/rules/svelte-5-vs-svelte-4-cursorrules-prompt-file.mdc Maintainer: Community (PatrickJS/awesome-cursorrules). Skilling lists this rule; the original lives in that repository.
Install
mkdir -p .cursor/rules curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/svelte-5-vs-svelte-4-cursorrules-prompt-file.mdc -o .cursor/rules/svelte5.mdc
Run this in the root of your project. Cursor loads .mdc files from .cursor/rules and applies them to the files matched by the globs line. Check Cursor Settings > Rules to see it listed.
What it does
- Runes instead of old reactivity
- Snippets and render tags
- New event handler syntax
How to use it
Cursor applies it to your project files.
Example requests
1. Use Svelte 5 (vs Svelte 4)
Request: Cursor applies it to your project files. Expected: Runes instead of old reactivity.
Dependencies
Cursor, and curl.
Compatibility
This document follows the Agent Skills layout (a folder named cursor-svelte5 containing SKILL.md). Claude Code, Cursor, Codex, and Gemini CLI can load that file from the paths in the Skilling installation guide. GitHub Copilot does not load SKILL.md. Use the Copilot instructions copy, and narrow applyTo before you commit it. Last verified 2026-11-15.
Example prompts
Use Svelte 5 (vs Svelte 4)
Cursor applies it to your project files.
Expected: Runes instead of old reactivity.
Choose the agent
Pick the agent you use.
Related
- Next.js 15 + React 19 + Vercel AI
Rules for Next.js 15 App Router, React 19, the Vercel AI SDK and Tailwind CSS, with a plan-first process.
- Next.js App Router
Next.js App Router practices: server components by default, client components only when needed.
- React Best Practices
Modern React patterns: small function components, custom hooks, composition and typed props.
Reviews
No reviews yet.
Sign in to review.
Report a problem
Inaccurate steps, an unsafe instruction, or a licensing concern.
Sign in to report.