AcademyRulesDevelopment

Svelte 5 and SvelteKit rules for Cursor

Web development teams building SvelteKit apps who want Cursor to follow Svelte conventions and keep pages light.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/web-app-optimization-cursorrules-prompt-file.mdc -o .cursor/rules/web-app-optimization.mdc
web-app-optimization.mdc

Loading the file...

What it does

A Cursor rules file that sets the editor up as a Svelte 5 and SvelteKit expert. It covers concise TypeScript code, file naming, server-side rendering and static generation, keeping client JavaScript minimal, and how to declare state with runes.

Use cases

  1. 01Declare reactive state with Svelte runes
  2. 02Organise routes with SvelteKit file-based routing
  3. 03Keep client-side JavaScript small on public pages

Questions about
Svelte 5 and SvelteKit rules for Cursor.

What is Svelte 5 and SvelteKit rules for Cursor used for?

Web development teams building SvelteKit apps who want Cursor to follow Svelte conventions and keep pages light. A Cursor rules file that sets the editor up as a Svelte 5 and SvelteKit expert. It covers concise TypeScript code, file naming, server-side rendering and static generation, keeping client JavaScript minimal, and how to declare state with runes.

How do I install Svelte 5 and SvelteKit rules for Cursor?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/web-app-optimization-cursorrules-prompt-file.mdc -o .cursor/rules/web-app-optimization.mdc

Is Svelte 5 and SvelteKit rules for Cursor open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is Svelte 5 and SvelteKit rules for Cursor safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.