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 skills add wesselgrift/sveltekit-spa --skill security-reviewgit clone --depth 1 https://github.com/wesselgrift/sveltekit-spaWrote 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/skills/wesselgrift/sveltekit-spa/security-review)<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.
<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>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.1 | $0.00085 | $0.03552 |
| Opus 5 | $0.00043 | $0.01776 |
| Sonnet 5 | $0.00017 | $0.00710 |
| Haiku 4.5 | $0.00009 | $0.00355 |
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.
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
anonrole 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 checkconstraints)
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);
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.
- 9d ago First seen · 413 lines · 85 tokens per session scan A 6fd116bb75c5
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.
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.
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…
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…
ss-copy
Generate UX microcopy (button labels, error messages, empty states, toasts) following a casual-but-polite voice and tone.
verify
Build/launch/drive recipe for verifying apps/docs changes at runtime (demos, docs pages, llms.txt).
ss-review
Review UI code for design system compliance, accessibility, and best practices.