Logo vun Sveltekit Security Stinger

Sveltekit Security Stinger

Organisatioun
legioncodeinc
sveltekit-security-stinger

Evidence-backed, read-only security audit of Svelte 4/5 and SvelteKit 2 apps, any stack. Versions vs advisories, load leaks, actions, remote functions, hooks, XSS, CSRF, adapters.

Iwwersiicht

Editeurlegioncodeinc
Repositoryvibe-coding-tools
Skill-Nummsveltekit-security-stinger
Stären
94
Forks
44
Matgeliwwert Fichieren
16
LizenzAGPL-3.0-or-later
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 16 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum legioncodeinc op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Sveltekit Security Stinger an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/sveltekit-security-stinger
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/legioncodeinc/vibe-coding-tools.git /tmp/vibe-coding-tools
mkdir -p .claude/skills
cp -r /tmp/vibe-coding-tools/plugins/code-audit-tools/skills/sveltekit-security-stinger .claude/skills/sveltekit-security-stinger
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Sveltekit Security Stinger an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Sveltekit Security Stinger automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Sveltekit Security Stinger net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

SvelteKit Security Stinger

Designed and built by Legion Code Inc.

Where this skill's files are

Every path below (guides/, references/, scripts/) is relative to the folder that contains this SKILL.md. In Claude Code that folder is ${CLAUDE_SKILL_DIR}. If that text was not replaced with a real path, find the folder yourself (Glob for **/sveltekit-security-stinger/SKILL.md) and use it as the skill directory in every command.

Purpose

Audit a Svelte or SvelteKit codebase for security problems the way an attacker would approach it, and report each one with evidence a founder can act on. The skill is framework-deep and stack-agnostic: it works on any SvelteKit 2 app (any database, auth library, or host) and on plain Svelte + Vite SPAs. It produces contract-shaped findings for the Audit My Code run: installed versions matched against every published advisory for svelte, @sveltejs/kit, devalue and the official adapters, plus manual-review findings across the server and client boundary, form actions, +server endpoints, remote functions, hooks and the authorization model, XSS sinks, CSP, cookies, adapters, prerendering, and patterns common in AI-written Svelte code. It never changes the audited repository.

When to use

  • The Audit My Code orchestrator dispatches sveltekit-security-wasp-drone because intake.json.stacks lists svelte or sveltekit
  • "Security audit this SvelteKit app", "are my form actions protected", "do my remote functions check auth", "is my load function leaking data"
  • "Which SvelteKit or Svelte advisories affect us", "is our devalue version safe"
  • Reviewing a Svelte + Vite SPA for secrets in the bundle and XSS sinks

When not to use

  • The repository's own stack-specific gate (SvelteKit with Neon, WorkOS, Stripe, Vercel, Doppler, GoHighLevel) before a commit: security-stinger, which also remediates
  • Secrets in git history, generic dependency triage, webhook signature checks, database row-level security: security-wasp-drone generic pass (security-stinger, armed report-only)
  • React or Next.js code: react-security-stinger or nextjs-security-stinger; back ends in other languages: polyglot-security-stinger
  • Fixing the findings: this skill is report-only; remediation planning belongs to the mario tier
  • A live, external scan of a deployed site with no source: web-security-posture-stinger

Procedure

  1. Read the run contract (audit-my-code-stinger/references/audit-contract.md) and intake.json. Your scope is the stack paths for svelte and sveltekit.
  2. Follow guides/00-scoping-and-version-check.md: classify each path, check advisory freshness, run scripts/sveltekit_audit_scan.py, review its version findings, and build the reading list.
  3. Follow guides/01-server-client-boundary-and-load-exposure.md: public env names, universal loads, server load returns, remote queries, shared state.
  4. Follow guides/02-actions-endpoints-remote-functions.md: build the endpoint table and check authorization, object ownership, validation, and CSRF for every surface.
  5. Follow guides/03-hooks-and-authorization-model.md: write the auth model, check identity, handle coverage (including remote functions), layout-only and client-only guards, server fetch, errors, redirects.
  6. Follow guides/04-xss-csp-and-cookies.md: every HTML sink, markdown pipeline, template-pattern advisory input, CSP, cookies, token storage.
  7. Follow guides/05-config-adapters-and-prerender.md: adapter and host, prerender, adapter-node headers, Vercel ISR, platform env, service worker.
  8. Follow guides/06-writing-findings.md: write findings-sveltekit-security-wasp-drone.jsonl, metrics-sveltekit-security-wasp-drone.json, and the notes file in 02-security/, validate them, and return the verdict, counts by severity, and every coverage cap.

Throughout: no finding without evidence; possible never above medium; redact secrets to the first 4 characters plus ****; never run installs, builds, or servers in the audited repository.

References map

PathLoad when
references/REFERENCE.mdStart of every run: file map, scanner interface and outputs, finding example
references/check-catalog.mdGuides 01 to 05: each check's detection, confirmation, severity, code pair, refs
references/detection-patterns.mdBefore each guide's manual read: tested ripgrep commands
references/advisory-table.mdGuide 00, and explaining a version finding
references/severity-guide.mdAssigning severity and confidence; guide 06
references/research/distilled-sveltekit-security.mdVerifying a claim, resolving a conflict, checking a thin spot
Source research archive (not shipped with the plugin)Source-repository only; the shipped distillation summarizes it, do not require it
scripts/sveltekit_audit_scan.pyOnce per run in guide 00
scripts/advisories.jsonData for the scanner; refresh when older than 30 days

Related drones and stingers

  • sveltekit-security-wasp-drone - The paired agent in this pack; the orchestrator dispatches it with this skill.
  • audit-my-code-stinger - The run orchestrator and the contract this skill writes against.
  • security-stinger (core) - Stack-specific Ship Gate security pass for SvelteKit with Neon, WorkOS, Stripe, Vercel, Doppler; the generic security pass in Audit My Code runs it report-only beside this skill.
  • react-security-stinger, nextjs-security-stinger, polyglot-security-stinger (this pack) - Framework-deep passes for other stacks in a monorepo.
  • svelte-stinger in web-development-tools (confirm installed) - Svelte 5 and SvelteKit 2 language and runtime details when a finding's fix needs them.
  • dependency-audit-stinger (core) - Lockfile and supply-chain work beyond framework advisories.

Critical Directive

  • You must read all files and context contained within your skill.
  • In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.
  • Additional related skills can be found here:
    • audit-my-code-stinger - Audit My Code orchestrator, tiers, routing, and the shared output contract.
    • security-stinger - Generic and stack-specific security pass; first gate of the Ship Gate in development work.
    • svelte-stinger - Svelte 5 runes, SvelteKit 2 load functions, form actions, and remote functions.

Designed and built by Legion Code Inc. Licensed under AGPL-3.0-or-later.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Sveltekit Security Stinger?

Evidence-backed, read-only security audit of Svelte 4/5 and SvelteKit 2 apps, any stack. Versions vs advisories, load leaks, actions, remote functions, hooks, XSS, CSRF, adapters.

Firwat Sveltekit Security Stinger op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Sveltekit Security Stinger besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Sveltekit Security Stinger an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/sveltekit-security-stinger an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Sveltekit Security Stinger benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Sveltekit Security Stinger benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Sveltekit Security Stinger domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Sveltekit Security Stinger gratis?

Jo. De Skill gëtt vum legioncodeinc ënner der Lizenz AGPL-3.0-or-later op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇