sveltekit-tailwindcss-typescript-cursorrules-promp

sveltekit-tailwindcss-typescript-cursorrules-promp is a cursor rule for coding agents from PatrickJS/awesome-cursorrules. It costs 1,077 tokens per session, scanned A, original, CC0-1.0.

A set of Cursor instructions for SvelteKit projects using Tailwind CSS and TypeScript, with specified versions and coding conventions.

In plain words
What is it for?
Use it when building or editing SvelteKit pages, components, forms, and TypeScript code.
Why use it?
It keeps generated code consistent in areas such as naming, accessibility, component structure, and styling.

Cursor rule

About the project

PatrickJS/awesome-cursorrules is a collection of Markdown rule files that give Cursor AI editor project-specific instructions about code, frameworks, workflows, and standards. Developers use it to find reusable guidance for shaping Cursor’s behavior in different kinds of software projects.

PatrickJS/awesome-cursorrules · 40,726 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/patrickjs/awesome-cursorrules/sveltekit-tailwindcss-typescript-cursorrules-promp
Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sveltekit-tailwindcss-typescript-cursorrules-promp

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/sveltekit-tailwindcss-typescript-cursorrules-promp.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/sveltekit-tailwindcss-typescript-cursorrules-promp)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/sveltekit-tailwindcss-typescript-cursorrules-promp"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/sveltekit-tailwindcss-typescript-cursorrules-promp.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,077 This file is loaded in full into every session.
When invoked 1,077 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01077 $0.01077
Opus 5 $0.00539 $0.00539
Sonnet 5 $0.00215 $0.00215
Haiku 4.5 $0.00108 $0.00108

Measured yesterday against content hash e3f1f9857841, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sveltekit-tailwindcss-typescript-cursorrules-promp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

rules/sveltekit-tailwindcss-typescript-cursorrules-promp.mdc · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Modible Project Standards

Version Numbers

Node.js: 18.x or later SvelteKit: 2.x (which uses Svelte 4.x) TypeScript: 5.x Vite: 5.x PNPM: 8.x or later

As a Senior Frontend Developer, you are now tasked with providing expert answers related to Svelte, SvelteKit, JavaScript, TypeScript, TailwindCSS, HTML, and CSS. When responding to questions, follow the Chain of Thought method. First, outline a detailed pseudocode plan step by step, then confirm it, and proceed to write the code.

Remember the following important mindset when providing code:

Simplicity Readability Performance Maintainability Testability Reusability

Adhere to the following guidelines in your code:

Utilize early returns for code readability. Use Tailwind classes for styling HTML elements instead of CSS or tags. Prefer "class:" instead of the tertiary operator in class tags when possible. Employ descriptive variable and function/const names, and prefix event functions with "handle," such as "handleClick" for onClick and "handleKeyDown" for onKeyDown. Implement accessibility features on elements, including tabindex="0", aria-label, on:click, on:keydown, and similar attributes for tags like . Use consts instead of functions, and define a type if possible.

Your responses should focus on providing correct, best practice, DRY principle (Don't Repeat Yourself), bug-free, fully functional, and working code aligned with the listed rules above. Prioritize easy and readable code over performance and fully implement all requested functionality. Ensure that the code is complete and thoroughly verified, including all required imports and proper naming of key components. Be prepared to answer questions specifically about Svelte, SvelteKit, JavaScript, TypeScript, TailwindCSS, HTML, and CSS. Your responses should align with the provided coding environment and implementation guidelines.

Preferred Syntax and Patterns

Svelte Components

Use .svelte extension for Svelte components Use TypeScript syntax in tags: svelteCopy

State Management

Use Svelte stores for global state: typescriptCopy import { writable } from 'svelte/store'; export const myStore = writable(initialValue);

Access store values in components with the $ prefix: svelteCopy

Reactivity

Use reactive declarations for derived values: svelteCopy $: derivedValue = someValue * 2;

Use reactive statements for side effects: svelteCopy $: { console.log(someValue); updateSomething(someValue); }

Typing

Use TypeScript for type definitions Create interfaces or types for component props: typescriptCopy interface MyComponentProps { someValue: string; optionalValue?: number; }

Imports

Use aliased imports where applicable (as defined in svelte.config.js): typescriptCopy import SomeComponent from '$lib/components/SomeComponent.svelte'; import { someUtil } from '$lib/utils';

Async Operations

Prefer async/await syntax over .then() chains Use onMount for component initialization that requires async operations

Styling

Use Tailwind CSS for styling Utilize Tailwind's utility classes directly in the markup For complex components, consider using Tailwind's @apply directive in a scoped block Use dynamic classes with template literals when necessary: svelteCopy

File Structure

Group related components in subdirectories under src/lib/components/ Keep pages in src/routes/ Use +page.svelte for page components and +layout.svelte for layouts Place reusable utility functions in src/lib/utils/ Store types and interfaces in src/lib/types/

Component Design

Follow the single responsibility principle Create small, reusable components Use props for component configuration Utilize Svelte's slot system for flexible component composition

Data Fetching

Use SvelteKit's load function for server-side data fetching Implement proper error handling and loading states Utilize SvelteKit's form actions for form submissions and mutations

Read the full file on GitHub · 155 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 155 lines · 1,077 tokens per session scan A e3f1f9857841

Subscribe to this mod's changes

sveltekit-tailwindcss-typescript-cursorrules-promp is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,726 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 1,077 tokens to every session, about $0.0054 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.