sveltekit

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

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/localrivet/gomcp/sveltekit
Clone the repo
git clone --depth 1 https://github.com/localrivet/gomcp

Made for: Cursor.

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. 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.02651 $0.02651
Opus 5 $0.01326 $0.01326
Sonnet 5 $0.00530 $0.00530
Haiku 4.5 $0.00265 $0.00265

Measured 2d ago against content hash db797ac6c615, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

.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. 2d 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.0133 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-08-30.