sveltekit

sveltekit is a cursor rule for Cursor from localrivet/gomcp. It costs 2,651 tokens per session, scanned A, original, MIT.

Project rules for a SvelteKit frontend with a Go backend. They specify Tailwind CSS, DaisyUI, static-file output, and API endpoints generated by Soul AST.

In plain words
What is it for?
Use them when building or editing SvelteKit pages, Tailwind and DaisyUI components, generated API clients, or the static files served by the Go application.
Why use it?
They give an agent the project conventions it must follow when changing the frontend or its connection to the backend.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import '../app.css';.

Good fit Use them when building or editing SvelteKit pages, Tailwind and DaisyUI components, generated API clients, or the static files served by the Go application.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/localrivet/gomcp
agentmods
npx agentmods add rules/localrivet/gomcp/sveltekit

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

README.md
[![agentmods](https://agentmods.dev/badge/rules/localrivet/gomcp/sveltekit/github.svg)](https://agentmods.dev/rules/localrivet/gomcp/sveltekit)
Your own site
<a href="https://agentmods.dev/rules/localrivet/gomcp/sveltekit"><img src="https://agentmods.dev/badge/rules/localrivet/gomcp/sveltekit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sveltekit

Your own site · 80×15
<a href="https://agentmods.dev/rules/localrivet/gomcp/sveltekit"><img src="https://agentmods.dev/badge/rules/localrivet/gomcp/sveltekit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,651 This file is loaded in full into every session.
When invoked 2,651 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.02651 $0.02651
Opus 5.5 $0.01060 $0.01060
Sonnet 5.5 $0.00530 $0.00530
Haiku 4.5 $0.00265 $0.00265

Measured 1mo ago against content hash db797ac6c615, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sveltekit 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 1mo 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.

.cursor/rules/sveltekit.mdc · 326 lines

How it starts

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

SvelteKit with Go Backend and Adapter-Static

In this project, we use Tailwind CSS for utility-first styling and DaisyUI as a component library built on top of Tailwind CSS, providing a lightweight and customizable UI framework. The frontend is built with SvelteKit and paired with a Go backend using the Soul AST system, which generates API endpoints found in ./src/lib/api. The adapter-static package is used to generate static files, served by the Go backend alongside the dynamic API routes.

Go Backend Integration with Soul AST

The Go backend is powered by the Soul AST system, which generates API endpoints automatically. These endpoints are exposed via TypeScript clients in ./src/lib/api, including functions like RegisterPost, LoginPost, and others, as defined in endpoints.ts. The SvelteKit frontend is configured with adapter-static to produce static files, which the Go server delivers alongside the Soul-generated API.

Setup Instructions

  1. Install dependencies using pnpm: Initialize your SvelteKit project and install required packages:

    pnpm init
    pnpm create svelte@latest my-svelte-go-app
    cd my-svelte-go-app
    pnpm install
    pnpm add -D @sveltejs/adapter-static tailwindcss postcss autoprefixer daisyui
    
  2. Set up Tailwind CSS and DaisyUI:

    • Generate Tailwind configuration:
      pnpm dlx tailwindcss init -p
      
    • Update tailwind.config.js:
      /** @type {import('tailwindcss').Config} */
      export default {
        content: ['./src/**/*.{html,js,svelte,ts}'],
        theme: {
          extend: {},
        },
        plugins: [require('daisyui')],
        daisyui: {
          themes: ["light", "dark", "cupcake"], // Customize as needed
        },
      };
      
    • Create src/app.css:
      @tailwind base;
      @tailwind components;
      @tailwind utilities;
      
    • Import it in src/routes/+layout.svelte:
      <script>
        import '../app.css';
      </script>
      <slot />
      

Read the full file on GitHub · 326 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. 1mo ago First seen · 326 lines · 2,651 tokens per session scan A db797ac6c615

Subscribe to this mod's changes

sveltekit is a cursor rule published in the GitHub repository localrivet/gomcp (51 stars, last pushed 1y ago), licensed MIT. It adds 2,651 tokens to every session, about $0.0106 per session on Opus 5.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-08-30.