sveltekit-restful-api-tailwind-css-cursorrules-pro

sveltekit-restful-api-tailwind-css-cursorrules-pro is a cursor rule for Cursor from PatrickJS/awesome-cursorrules. It costs 793 tokens per session, scanned A, original, CC0-1.0.

A set of Cursor instructions for building SvelteKit web applications with REST APIs, Tailwind CSS, PostgreSQL through Supabase, and Vercel deployment.

In plain words
What is it for?
Use it when creating or editing SvelteKit pages, API endpoints, database-backed features, and Tailwind-styled interfaces.
Why use it?
It keeps the coding assistant aligned with the project's tools, file-path rules, and test-driven development approach.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

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,728 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-restful-api-tailwind-css-cursorrules-pro
Clone the repo
git clone --depth 1 https://github.com/PatrickJS/awesome-cursorrules

Made for: Cursor.

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-restful-api-tailwind-css-cursorrules-pro

README.md
[![agentmods](https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/sveltekit-restful-api-tailwind-css-cursorrules-pro.svg)](https://agentmods.dev/rules/patrickjs/awesome-cursorrules/sveltekit-restful-api-tailwind-css-cursorrules-pro)
Your own site
<a href="https://agentmods.dev/rules/patrickjs/awesome-cursorrules/sveltekit-restful-api-tailwind-css-cursorrules-pro"><img src="https://agentmods.dev/badge/rules/patrickjs/awesome-cursorrules/sveltekit-restful-api-tailwind-css-cursorrules-pro.svg" alt="Measured on agentmods" height="20"></a>
Per session 793 This file is loaded in full into every session.
When invoked 793 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.1 $0.00793 $0.00793
Opus 5 $0.00396 $0.00396
Sonnet 5 $0.00159 $0.00159
Haiku 4.5 $0.00079 $0.00079

Measured 2d ago against content hash 39fe0d69fc89, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sveltekit-restful-api-tailwind-css-cursorrules-pro 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 2d ago.

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-restful-api-tailwind-css-cursorrules-pro.mdc · 94 lines

How it starts

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

File Path Usage

IMPORTANT: Always use full file paths when referencing, editing, or creating files.

Example: E:\Stojanovic-One\src\routes\Home.svelte

This rule applies to all file operations and must be followed consistently.

You are an AI assistant for the Stojanovic-One web application project. Adhere to these guidelines:

Please this is utterly important provide full file paths for each file you edit, create or delete. Always provide it in a format like this: edit this file now: E:\Stojanovic-One\src\routes\Home.svelte or create this file in this path: E:\Stojanovic-One\src\routes\Home.svelte Also always provide file paths as outlined in @AI.MD like if you say lets update this file or lets create this file always provide the paths.

  1. Tech Stack:
  • Frontend & Backend: SvelteKit
  • Database: PostgreSQL (via Supabase)
  • UI Styling: Tailwind CSS
  • Deployment: Vercel
  • Authentication: Supabase Auth
  1. Follow Elon Musk's Algorithm for Efficiency: a. Question every requirement critically b. Delete unnecessary parts c. Simplify and optimize remaining components d. Accelerate cycle time e. Automate as the final step

  2. Practice Test-Driven Development (TDD):

  • Write failing tests first
  • Implement minimum code to pass tests
  • Refactor while maintaining passing tests
  1. File Management:
  • Include full file path as a comment at the start of each file
  • Update project structure in AI.MD when adding new files/directories
  • Maintain up-to-date package.json
  1. Testing:
  • Use Vitest for unit and integration tests
  • Aim for high test coverage (80% or higher)
  1. Code Quality:
  • Prioritize readability and maintainability
  • Implement comprehensive error handling
  • Use TypeScript for type safety
  1. Documentation:
  • Write clear comments and use JSDoc when appropriate
  • Keep README.md and AI.MD updated
  • Maintain CHANGELOG.md for significant changes
  1. Truthfulness and Clarity:
  • Provide accurate, thoughtful answers
  • Admit when you don't know something
  • Be concise while ensuring clarity

Read the full file on GitHub · 94 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. 2d ago First seen · 94 lines · 793 tokens per session scan A 39fe0d69fc89

Subscribe to this mod's changes

sveltekit-restful-api-tailwind-css-cursorrules-pro is a cursor rule published in the GitHub repository PatrickJS/awesome-cursorrules (40,728 stars, last pushed 3mo ago), licensed CC0-1.0. It adds 793 tokens to every session, about $0.0040 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.