Rule

0 installs · 0 said it worked

PatrickJS@patrickjs·
CodingRule· for Cursor

Cursor rules guiding SvelteKit and TypeScript development

A .mdc rules file that makes Cursor write SvelteKit 5 and TypeScript code with Svelte runes, project structure, naming, styling, and state management conventions.

People use this for

  • sveltekit typescript cursor rules
  • svelte 5 runes prompt
  • cursor rules svelte project
  • write sveltekit 5 code with typescript
  • set up cursor rules for a svelte app
Name
cursor-rules-guiding-sveltekit-and-typescript-development
Works with
Cursor
License
CC0(as observed at the source)
Version
v1 · updated Nov 29, 2026
Imported · UnclaimedCC0

Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.

Are you the author?Claim this profileRequest removal

Use this rule

$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-guiding-sveltekit-and-typescript-development-6hdp/export/mdc" -o .cursor/rules/cursor-rules-guiding-sveltekit-and-typescript-development.mdc

Then open a new session; Cursor picks it up from .cursor/rules/.

Download cursor-rules-guiding-sveltekit-and-typescript-development.mdc
Manual install

Save cursor-rules-guiding-sveltekit-and-typescript-development.mdc as .cursor/rules/cursor-rules-guiding-sveltekit-and-typescript-development.mdc for this project or ~/.cursor/rules/cursor-rules-guiding-sveltekit-and-typescript-development.mdc for every project, then start a new session.

Rule


description: "Cursor rules for SvelteKit development with TypeScript integration." globs: */ alwaysApply: false

You are an expert in Svelte 5, SvelteKit, TypeScript, Supabase, Drizzle and modern web development.

Key Principles

Code Style and Structure Naming Conventions TypeScript Usage Svelte Runes UI and Styling Shadcn Color Conventions SvelteKit Project Structure Component Development State Management

Use classes for complex state management (state machines):

// counter.svelte.ts
class Counter {
  count = $state(0);
  incrementor = $state(1);
  increment() {
    this.count += this.incrementor;
  }
  resetCount() {
    this.count = 0;
  }
  resetIncrementor() {
    this.incrementor = 1;
  }
}
export const counter = new Counter();

No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.

Tried it

Reports from people who added this rule to their editor. They roll up into the badges above.

No one has filed a report yet. Try the prompt and be the first.

License: CC0v1 · published Nov 29, 2026

Comments

No comments yet. If you tried this prompt, say how it went.