svelte

svelte is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 111 tokens per session (1,122 once invoked), scanned A, original, Apache-2.0.

A set of coding rules for SvelteKit applications, covering pages, layouts, components, data loading, stores, and server endpoints.

In plain words
What is it for?
Use it to build or change SvelteKit routes, TypeScript components, shared state, server endpoints, and page data loading.
Why use it?
It prevents browser code from handling server-only data and keeps page rendering, data fetching, and reusable interface parts in the right places.

Skill for Claude CodeCodex

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

Good fit Use it to build or change SvelteKit routes, TypeScript components, shared state, server endpoints, and page data loading.

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

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/kouroshez/coding-os/svelte/github.svg)](https://agentmods.dev/skills/kouroshez/coding-os/svelte)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/svelte"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/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/kouroshez/coding-os/svelte"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/svelte.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 111 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,122 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.00111 $0.01122
Opus 5 $0.00056 $0.00561
Sonnet 5 $0.00022 $0.00224
Haiku 4.5 $0.00011 $0.00112

Measured 5d ago against content hash b888686b24da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 5d 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.

src/templates/svelte-sveltekit/skills/svelte/SKILL.md · 91 lines

How it starts

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

REQUIRED BACKGROUND: You MUST also follow the core frontend-fundamentals and clean-code skills. This skill adds SvelteKit-specific conventions on top.

svelte

Layer contract (matches structure.tree)

Layer May import Never
+page.svelte / components $lib components + stores, load data via props fetch in setup, server-only modules, secrets
+page.ts / +layout.ts (universal) the injected fetch, public env $env/static/private, db clients, secrets
+page.server.ts / +server.ts (server) db clients, private env, secrets DOM, browser-only APIs
$lib/stores/*.ts svelte/store primitives route modules, load results
hooks.server.ts private env, the logger per-route business logic

Components stay presentational — data arrives as props from a load function — so a fetch swap is a load-layer-only change and the component is unit-testable without a network.

Routing & layout

  • File-based routing only — a route is a directory under routes/ with a +page.svelte; never hand-wire a client router. Dynamic segments: routes/users/[id]/+page.svelte.
  • +layout.svelte owns shared shell (nav, error boundary) and renders the page via {@render children()}; keep it a shell, not a logic host.

Load functions (data ownership)

  • +page.ts / +layout.ts (universal) run on server then client — use the injected fetch, never the bare global (it double-fetches on hydration and skips SvelteKit's relative-URL + cookie handling).
  • +page.server.ts / +layout.server.ts run server-only — the place for db clients, $env/static/private, and any secret. Their return value is serialized to the client, so never return a secret from a server load.
  • A component never fetches in its <script> body; data flows in through the load result as data props.

Stores & state

  • Local component state first ($state / plain let); cross-component state in $lib/stores as writable/derived, one store per file, per the state-management skill hierarchy — no module-level mutable singletons.
  • Subscribe with the $store auto-subscription in components; never manually .subscribe() without unsubscribing.
  • Do not mutate a store from inside a load function — load returns data, stores hold client state.

Read the full file on GitHub · 91 lines

Files

What ships with it

1 file 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. 5d ago First seen · 91 lines · 111 tokens per session scan A b888686b24da

Subscribe to this mod's changes

svelte is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 111 tokens to every session and 1,122 once invoked, about $0.0006 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-09-03.

Related

Other skills, from other repositories

micro-frontend-architect

Expert guide for designing Micro-Frontend architectures using Webpack Module Federation, Vite Federation, and Single-SPA for large scale Vue and React applications.

roedyrustam/vibes-plug · 36 tokens

vue-frontend-expert

Expert guide for Vue 3 (Composition API), Nuxt 3, and Pinia. Covers advanced reactive state management, syntax, Vue Router, VueUse, and SPA/SSR architectural patterns in English and Indonesian.

roedyrustam/vibes-plug · 54 tokens

web-3d-graphics-expert

Expert guide for WebGL and 3D graphics in the browser using Three.js, Babylon.js, React Three Fiber (R3F), and TresJS. Covers scene optimization, shaders, lighting, 3D model loading (GLTF/GLB), and performance tuning.

roedyrustam/vibes-plug · 65 tokens

svelte-sveltekit-expert

Expert guide for Svelte 5 (Runes) and SvelteKit 2+ — fine-grained reactivity, server-first architecture, form actions, and SSR/SSG / Panduan ahli Svelte 5 (Runes) dan SvelteKit 2+ — reaktivitas fine-grained, arsitektur server-first, form actions, dan SSR/SSG.

roedyrustam/vibes-plug · 87 tokens

component-forge

Build production-grade components for React, Vue 3, and Svelte 5 with all states (loading, empty, error, success, idle), TypeScript strict, WCAG 2.2 accessibility, server components (RSC), and compound component patterns. Includes scaffold script, reference patterns, and template files for React and Vue. Use when user…

EliasOulkadi/shokunin · 112 tokens

mastermind-component-research

Ground a UI change in the codegraph before writing it — find whether the component already exists, who renders it, and what its props contract is. Use before creating or changing any React or Vue component; triggers "add a component", "change these props", "build this screen", or a Figma frame handed over for…

xcrft/mastermind · 73 tokens