svelte

svelte is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (551 once invoked), scanned A, original, MIT.

A set of conventions for Svelte 5 and SvelteKit, tools for building web interfaces and full web applications. It covers reactive state, routing, data loading, forms, and error handling.

In plain words
What is it for?
Use it when building components, declaring state and effects, defining routes and layouts, loading server or client data, and handling form actions and validation errors.
Why use it?
It keeps Svelte code aligned with the newer Svelte 5 approach and places each SvelteKit feature in the expected file or module.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building components, declaring state and effects, defining routes and layouts, loading server or client data, and handling form actions and validation errors.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/svelte"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/svelte.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 551 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.00000 $0.00551
Opus 5 $0.00000 $0.00275
Sonnet 5 $0.00000 $0.00110
Haiku 4.5 $0.00000 $0.00055

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

Security

Grade A, and why

svelte 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 10d 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.

packages/catalog/skills/svelte/SKILL.md · 43 lines

How it starts

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

Svelte / SvelteKit Skill

You are working on a Svelte 5 / SvelteKit project. Apply these conventions.

Svelte 5 Runes

  • Declare reactive state with let count = $state(0) — replaces let count = 0 with $:.
  • Derive values with let doubled = $derived(count * 2) — replaces $: doubled = count * 2.
  • Run side effects with $effect(() => { … }) — replaces $: { … } blocks and onMount.
  • Clean up effects by returning a function from $effect.
  • Use $props() to declare component props: let { title, count = 0 }: Props = $props().

SvelteKit Routing

  • Pages are +page.svelte, layouts are +layout.svelte, route groups use (group)/.
  • Load server-side data in +page.server.ts by exporting a load function.
  • Load universal data (runs on both server and client) in +page.ts.
  • Form actions live in +page.server.ts under export const actions = { default: async (event) => { … } }.
  • Use fail(400, { error: '…' }) from @sveltejs/kit to return validation errors from form actions.

Data Loading

  • Export export const load: PageServerLoad = async ({ params, fetch, locals }) => { … }.
  • Always type the return value — SvelteKit infers the prop type on the page automatically.
  • Use error(404, 'Not found') and redirect(302, '/login') from @sveltejs/kit.

Stores (Svelte 4 compatibility)

  • Use writable, readable, derived from svelte/store for module-level reactive state.
  • In Svelte 5, prefer $state at module scope using .svelte.ts files.

Forms & Progressive Enhancement

  • Use use:enhance from $app/forms for progressive form enhancement with SvelteKit actions.
  • use:enhance handles client-side submission and updates without full page reload.
  • Access form results via $page.form after a form action.

TypeScript

  • Set strict: true in tsconfig.json.
  • SvelteKit generates types in .svelte-kit/types/; run vite build or vite dev to regenerate.
  • Use PageData, PageServerLoad, Actions types from ./$types (generated per-route).

Read the full file on GitHub · 43 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. 10d ago First seen · 43 lines · 0 tokens per session scan A da8184ef3a44

Subscribe to this mod's changes

svelte is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 551 tokens. 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.