Skip to content

Concise Svelte deployment guide covering adapters, Vite, pnpm, and common production pitfalls.

CCM score
53 of 100
skills.sh installs
260
GitHub stars
96
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers pnpm 10 setup with a prepare script, plus pairing Vite 7 with the matching vite-plugin-svelte 6 release
  • Includes install commands for the static, Node, and Cloudflare adapters and links to reference files for libraries, PWA, and Cloudflare
  • Notes that Cloudflare may strip Transfer-Encoding: chunked, which breaks streaming responses
  • Designed for Svelte developers shipping production builds, library packages, or offline-first PWAs

Install

$ npx -y skills add spences10/svelte-skills-kit --skill svelte-deployment -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Svelte Deployment

Quick Start

pnpm 10+: Add prepare script (postinstall disabled by default):

{
	"scripts": {
		"prepare": "svelte-kit sync"
	}
}

Vite 7: Update both packages together:

pnpm add -D vite@7 @sveltejs/vite-plugin-svelte@6

Adapters

# Static site
pnpm add -D @sveltejs/adapter-static

# Node server
pnpm add -D @sveltejs/adapter-node

# Cloudflare
pnpm add -D @sveltejs/adapter-cloudflare

Reference Files

Notes

  • Cloudflare may strip Transfer-Encoding: chunked (breaks streaming)
  • Library authors: include svelte in keywords AND peerDependencies
  • Single-file bundle: kit.output.bundleStrategy: 'single'
  • Last verified: 2025-01-14

Details

Repository
github.com/spences10/svelte-skills-kit
Categories
Frontend & UI Code, DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the svelte-deployment skill cover?

The svelte-deployment skill gives guidance on adapters, Vite config, pnpm setup, library authoring, PWA setup and production builds for Svelte projects. It points to reference files for publishing Svelte packages, offline-first PWA setup with workbox, and Cloudflare streaming issues.

How do I install the svelte-deployment skill?

Run npx -y skills add spences10/svelte-skills-kit --skill svelte-deployment -y in a project to install it. Once installed, the agent gets Svelte deployment guidance for adapters, Vite, pnpm and PWA builds.

Which skills lead the Frontend & UI Code category next to svelte-deployment?

Other top skills in the Frontend & UI Code category include vercel-react-best-practices, web-design-guidelines, design-taste-frontend, vercel-composition-patterns and lark-apps. The svelte-deployment skill sits alongside them with a focus on Svelte build and deployment setup.

Does svelte-deployment need pnpm or Vite?

The svelte-deployment skill covers pnpm 10 and later setup, where postinstall is disabled by default, and Vite 7 with the Svelte Vite plugin. Its guidance tells you to add a prepare script running svelte-kit sync and to update vite and the vite plugin together.

More from spences10/svelte-skills-kit

All 7

Similar to Svelte Deployment

More Frontend & UI Code