security-review

security-review is a skill for Cursor from wesselgrift/sveltekit-spa. It costs 85 tokens per session (3,552 once invoked), scanned A, original, MIT.

Security guidance for a SvelteKit single-page application that uses Supabase for login and a Postgres database. It explains that browser-side checks improve the user experience but cannot enforce security, so database rules must protect the data.

In plain words
What is it for?
Use it when adding login flows, database tables or Row Level Security policies, handling user input or environment variables, and reviewing or hardening SvelteKit features.
Why use it?
It helps avoid treating code running in the user's browser as trustworthy. This reduces authentication, authorization, data-access, and secret-handling mistakes.

Skill for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding login flows, database tables or Row Level Security policies, handling user input or environment variables, and reviewing or hardening SvelteKit features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wesselgrift/sveltekit-spa/security-review
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.

Any agent
npx skills add wesselgrift/sveltekit-spa --skill security-review
Clone the repo
git clone --depth 1 https://github.com/wesselgrift/sveltekit-spa

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 security-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/wesselgrift/sveltekit-spa/security-review/github.svg)](https://agentmods.dev/skills/wesselgrift/sveltekit-spa/security-review)
Your own site
<a href="https://agentmods.dev/skills/wesselgrift/sveltekit-spa/security-review"><img src="https://agentmods.dev/badge/skills/wesselgrift/sveltekit-spa/security-review/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 security-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/wesselgrift/sveltekit-spa/security-review"><img src="https://agentmods.dev/badge/skills/wesselgrift/sveltekit-spa/security-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,552 The whole file, excluding the scripts and references it only reads on demand.
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.00085 $0.03552
Opus 5 $0.00043 $0.01776
Sonnet 5 $0.00017 $0.00710
Haiku 4.5 $0.00009 $0.00355

Measured 9d ago against content hash 6fd116bb75c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

security-review 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 9d 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/skills/security-review/SKILL.md · 413 lines

How it starts

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

Security Review — SvelteKit SPA + Supabase

This skill applies to a SvelteKit SPA (ssr = false) using Supabase Auth, Postgres with Row Level Security, and $env/dynamic/public for environment variables. All application code runs in the browser — there is no server middleware, no API routes, and no server-side rendering.

The trust boundary

The browser is untrusted. Supabase (Postgres RLS + Auth) is the only enforcement point. Every rule below follows from this.

UNTRUSTED                          TRUSTED
─────────────────────────────────  ──────────────────────────
Browser (SvelteKit SPA)            Supabase (Auth + Postgres)
 ├─ authState ($state)             ├─ JWT verification
 ├─ Zod validation (UX only)       ├─ RLS policies (auth.uid())
 ├─ Route guards (UX only)         ├─ DB constraints + CHECK
 └─ UI gating                      └─ Security definer RPCs

Client-side checks (auth guards, Zod schemas, route gating) improve UX but provide zero security. Assume an attacker can bypass every client-side check.


1. Row Level Security (RLS)

RLS is the authorization layer. Every table with user data MUST have RLS enabled.

Checklist for every new table

  • ALTER TABLE ... ENABLE ROW LEVEL SECURITY;
  • SELECT policy: using (auth.uid() = user_id_column)
  • INSERT policy: with check (auth.uid() = user_id_column)
  • UPDATE policy: using (auth.uid() = ...) with check (auth.uid() = ...)
  • DELETE policy: using (auth.uid() = user_id_column)
  • No policy grants access to anon role unless the data is intentionally public
  • Column defaults cannot be abused (e.g., role text default 'admin' is dangerous)
  • UPDATE policies restrict which columns can be changed when needed (use with check constraints)

Common mistakes

-- BAD: allows any authenticated user to read all rows
create policy "select_all" on items for select to authenticated using (true);

-- GOOD: scoped to the row owner
create policy "select_own" on items for select to authenticated
  using (auth.uid() = owner_id);

-- BAD: user can set arbitrary owner_id on insert
create policy "insert_any" on items for insert to authenticated
  with check (true);

-- GOOD: forces owner_id to match the authenticated user
create policy "insert_own" on items for insert to authenticated
  with check (auth.uid() = owner_id);

Read the full file on GitHub · 413 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. 9d ago First seen · 413 lines · 85 tokens per session scan A 6fd116bb75c5

Subscribe to this mod's changes

security-review is a skill published in the GitHub repository wesselgrift/sveltekit-spa (37 stars, last pushed 5mo ago), licensed MIT. It adds 85 tokens to every session and 3,552 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

shadcn-ui-flutter

A comprehensive Flutter UI library inspired by shadcn/ui. Provides high-quality, customizable, and accessible components including Buttons, Cards, Forms, and more. Use this skill when building Flutter UIs, implementing design systems, or needing specific component usage examples.

nank1ro/flutter-shadcn-ui · 58 tokens

supabase-postgres-best-practices

Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the…

supabase/agent-skills · 182 tokens

ss-studio

Turn a product brief and optional references into three distinct creative directions, a human-selected StyleSeed interaction plan, generated image/video asset jobs, a working UI prototype, and a verified prototype-first showcase reel. Use for client concepts, app interaction exploration, trendy but coherent UI…

bitjaru/styleseed · 75 tokens

ss-copy

Generate UX microcopy (button labels, error messages, empty states, toasts) following a casual-but-polite voice and tone.

bitjaru/styleseed · 29 tokens

verify

Build/launch/drive recipe for verifying apps/docs changes at runtime (demos, docs pages, llms.txt).

meursyphus/ssgoi · 26 tokens

ss-review

Review UI code for design system compliance, accessibility, and best practices.

bitjaru/styleseed · 16 tokens