Rule
0 installs · 0 said it worked
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 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.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
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.
Related rules
- Claude api: reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming,…
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any fo
Coding · @anthropic
- Cursor rules enforcing clean, readable, maintainable code practices
A Cursor .mdc rule file that guides the assistant toward clean code: named constants, meaningful names, sparing comments, single-purpose functions, DRY, language style standards, extracted conditionals, continuous refactoring, and version control.
Coding · @patrickjs
- Match new code to a project's existing style and conventions
A Cursor rules prompt that makes the model analyze existing codebase patterns (naming, formatting, architecture, testing) and adapt new code to fit the established style.
Coding · @patrickjs
- Explain, test, and harden a Python regular expression
Explains a Python regex token by token, tests it against must-match and must-not-match samples, flags risky patterns like catastrophic backtracking, and returns a safer rewrite with a test table.
Coding · @f
- Python docstring coverage and drift checker for code review
A skill-style system prompt that makes the assistant measure Python docstring coverage via AST analysis, flag stale or missing docstrings, and plan a CI-gated documentation fix.
Coding · @f
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.