svelte-docs

svelte-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 34 tokens per session (5,276 once invoked), scanned A, original, MIT.

Reference guidance for building web interfaces with Svelte 5 and SvelteKit 2. Svelte is a tool that turns component code into browser JavaScript, while SvelteKit adds app features such as pages, server rendering, data loading, and deployment setup.

In plain words
What is it for?
Use it when creating or updating Svelte components, managing reactive data, adding routes, loading data, handling forms, or configuring server-rendered TypeScript applications.
Why use it?
It helps you find the right way to write Svelte components and SvelteKit applications without relying on outdated patterns or scattered documentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Good fit Use it when creating or updating Svelte components, managing reactive data, adding routes, loading data, handling forms, or configuring server-rendered TypeScript applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/svelte
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 pledgeandgrow/pledge-skills --skill svelte
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

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 svelte-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/svelte/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/svelte)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/svelte"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/svelte/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 svelte-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/svelte"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/svelte.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,276 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.00034 $0.05276
Opus 5 $0.00017 $0.02638
Sonnet 5 $0.00007 $0.01055
Haiku 4.5 $0.00003 $0.00528

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

Security

Grade A, and why

svelte-docs 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 12d 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.

skills/svelte/SKILL.md · 321 lines

How it starts

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

Svelte 5 + SvelteKit — Skill Documentation

Source: svelte.dev/docs | svelte.dev/docs/kit Version: Svelte 5.x, SvelteKit 2.x, sv CLI

What is Svelte?

Svelte is a UI framework that uses a compiler to turn declarative components (HTML, CSS, JS) into lean, optimized JavaScript. Unlike React/Vue which use a virtual DOM, Svelte compiles away at build time — no runtime framework overhead.

What is SvelteKit?

SvelteKit is the official application framework for Svelte, powered by Vite. It provides routing, SSR/SSG, data loading, form actions, adapters for deployment, and more. Similar to Next.js (React) or Nuxt (Vue).

Quick Start

npx sv create myapp
cd myapp
npm install
npm run dev

Core Concepts

  • Runes: Compiler keywords ($state, $derived, $effect, $props, $bindable, $inspect, $host) that control reactivity
  • Single-File Components: .svelte files with <script>, <template> (markup), <style>
  • Reactive State: $state() for reactive variables, $derived() for computed values
  • Effects: $effect() for side-effects that track dependencies
  • Props: $props() rune for component inputs
  • Snippets: Reusable markup chunks (replaced slots from Svelte 4)
  • Stores: svelte/store for reactive state across components (writable, readable, derived)
  • Context: createContext() / setContext() / getContext() for parent-child data sharing
  • Filesystem Routing: src/routes/ directory defines routes with +page.svelte, +layout.svelte, etc.
  • Load Functions: +page.js / +page.server.js for data loading
  • Form Actions: +page.server.js exports for POST handling with progressive enhancement
  • Adapters: Deploy to Node, static, Cloudflare, Netlify, Vercel, and more

File Index

File Topics Lines
getting-started.md Overview, .svelte files, runes ($state/$derived/$effect/$props/$bindable/$inspect/$host), basic markup, control flow, snippets, @render, @html, @attach, @const/@debug, declaration tags, bind:, use:, transition:, animate:, style:, class:, await expressions, styling (scoped/global/custom properties), special elements ~650
components.md svelte:boundary, svelte:window/document/body/head/element/options, stores (writable/readable/derived/readonly/get/store contract), context (createContext/setContext/getContext), lifecycle (onMount/onDestroy/tick/beforeUpdate/afterUpdate), imperative API (mount/unmount/render/hydrate), hydratable data, best practices, testing (Vitest/Storybook/Playwright), TypeScript, custom elements, browser support, Svelte 4 migration, Svelte 5 migration, FAQ ~600
api-reference.md svelte (SvelteComponent/mount/unmount/onMount/onDestroy/createContext/createEventDispatcher/flushSync/fork/getAbortSignal/tick/untrack/Component/Snippet), svelte/action, svelte/animate (flip), svelte/attachments, svelte/compiler (compile/parse/preprocess/migrate/walk), svelte/easing (30 functions), svelte/events (on), svelte/legacy, svelte/motion (spring/tweened/prefersReducedMotion), svelte/reactivity (MediaQuery/SvelteDate/SvelteMap/SvelteSet/SvelteURL/createSubscriber), svelte/server (render), svelte/store (writable/readable/derived/readonly/get/fromStore/toStore), svelte/transition (fade/fly/slide/blur/draw/scale/crossfade), compiler errors, compiler warnings, runtime errors, runtime warnings ~550
sveltekit.md Introduction, creating a project, project types, project structure, web standards, routing (+page/+layout/+error/+server), loading data (universal vs server/load events/cookies/streaming/parallel), form actions (default/named/progressive enhancement), page options (prerender/ssr/csr/trailingSlash), state management, remote functions (query/form/command), environment variables, building, adapters (Node/SSG/SPA/Cloudflare/Netlify/Vercel), advanced routing (rest params/matching/sorting/group layouts), hooks (handle/handleFetch/handleError/init/reroute/transport), errors, link options, service workers, server-only modules, snapshots, shallow routing, observability, packaging, auth, performance, images, accessibility, SEO, FAQ, integrations, breakpoint debugging, migration (SvelteKit v2/Sapper), glossary ~700
sveltekit-api.md @sveltejs/kit (Server/error/fail/redirect/json/text/isHttpError/isRedirect/isActionFailure/VERSION), @sveltejs/kit/hooks (sequence/defineEnvVars), @sveltejs/kit/node (getRequest/setResponse/createReadableStream), @sveltejs/kit/node/polyfills (installPolyfills), @sveltejs/kit/vite (sveltekit), $app/environment (browser/building/dev/version), $app/forms (applyAction/deserialize/enhance), $app/navigation (goto/invalidate/invalidateAll/preloadCode/preloadData/pushState/replaceState/afterNavigate/beforeNavigate/onNavigate/disableScrollHandling/refreshAll), $app/paths (base/assets/asset/match/resolve/resolveRoute), $app/server (command/form/query/prerender/read/requested/getRequestEvent), $app/state (navigating/page/updated), $app/stores (page/navigating/updated/getStores), $app/types, $env/dynamic/private, $env/dynamic/public, $env/static/private, $env/static/public, $lib, $service-worker, configuration (Config/KitConfig), CLI (svelte-kit sync), types (app.d.ts/Generated types/$lib), sv CLI (create/add/check/migrate), add-ons (better-auth/drizzle/eslint/experimental/mcp/mdsvex/paraglide/playwright/prettier/storybook/sveltekit-adapter/tailwindcss/vitest), create your own add-on, sv-utils, MCP server, AI tools ~600

Read the full file on GitHub · 321 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 321 lines · 34 tokens per session scan A 6e03723b2f03

Subscribe to this mod's changes

svelte-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 5,276 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

svelte

Svelte 5 - Reactive UI framework with compiler magic, Runes API, SvelteKit full-stack framework, SSR/SSG, minimal JavaScript.

bobmatnyc/claude-mpm-skills · 34 tokens

svelte

Svelte 5 - Reactive UI framework with compiler magic, Runes API, SvelteKit full-stack framework, SSR/SSG, minimal JavaScript.

bobmatnyc/claude-mpm · 34 tokens

shadcn-svelte

Manages shadcn-svelte components and projects — adding, updating, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn-svelte, the CLI, design-system presets, or any project with a components.json file. Also triggers for…

huntabyte/shadcn-svelte · 87 tokens

shadcn-sveltekit-design

Use when building, redesigning, beautifying, or refactoring SvelteKit pages and reusable components with shadcn-svelte, Bits UI, or the shadcn-svelte MCP. Trigger on landing pages, dashboards, marketing sites, app shells, forms, navbars, tables, dialogs, responsive layouts, theming, icon selection, and requests to…

Michael-Obele/shadcn-svelte-mcp · 99 tokens

svelte-expert

Expert knowledge in Svelte framework, SvelteKit, reactivity system, compiled approach, and building performant web applications. Use when the user mentions SvelteKit, reactivity, compiler, frontend, performance, or JavaScript, or when the task involves Svelte Fundamentals, Reactivity System, Installation and Setup, or…

personamanagmentlayer/pcl · 74 tokens

svelte5-runes-static

Svelte 5 runes + SvelteKit adapter-static (SSG/SSR) patterns for hydration-safe state, store bridges, and reactivity that survives prerendering.

bobmatnyc/claude-mpm-skills · 42 tokens