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.
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.
npx agentmods add rules/patrickjs/awesome-cursorrules/sveltekit-tailwindcss-typescript-cursorrules-prompgit clone --depth 1 https://github.com/PatrickJS/awesome-cursorrulesWrote 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.
[](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/sveltekit-tailwindcss-typescript-cursorrules-promp)<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>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.
| Model | Per session | Once 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 |
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.
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
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.
- yesterday First seen · 155 lines · 1,077 tokens per session scan A e3f1f9857841
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.
Other cursor rules, from other repositories
vue3-typescript-auto
Vue 3 with TypeScript Standards.
typescript-type-safety
Use when encountering TypeScript any types, type errors, or lax type checking - eliminates type holes and enforces strict type safety through proper interfaces, type guards, and module augmentation.
typescript-type-specialist
Enforce strict TypeScript type safety - eliminate all 'any' types, use proper type guards, and maintain zero tolerance for type safety violations.
rule-01
This is test rule number in the large package scalability test.
typescript-standards
TypeScript development standards and type safety.
angular
Angular: signals, standalone components, RxJS patterns.