Logo Sveltekit Security Stinger

Sveltekit Security Stinger

Tổ chức
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.

Tổng quan

Nhà phát hànhlegioncodeinc
Kho mãvibe-coding-tools
Tên kỹ năngsveltekit-security-stinger
Sao
94
Bản fork
44
Tệp đi kèm
16
Giấy phépAGPL-3.0-or-later
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 16 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được legioncodeinc công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Sveltekit Security Stinger trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/sveltekit-security-stinger
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Sveltekit Security Stinger trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Sveltekit Security Stinger ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Sveltekit Security Stinger không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Sveltekit Security Stinger làm được gì?

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.

Vì sao nên dùng Sveltekit Security Stinger trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Sveltekit Security Stinger là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Sveltekit Security Stinger trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/legioncodeinc/vibe-coding-tools/tree/main/plugins/code-audit-tools/skills/sveltekit-security-stinger. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Sveltekit Security Stinger?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Sveltekit Security Stinger với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Sveltekit Security Stinger với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Sveltekit Security Stinger có miễn phí không?

Có. Kỹ năng này được legioncodeinc phát hành trên GitHub theo giấy phép AGPL-3.0-or-later. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇