svelte-deployment — Claude Code skill: what it does, how to install
The svelte-deployment skill for Claude Code provides notes for shipping SvelteKit apps: choosing an adapter, fixing pnpm and Vite versions, publishing a library, and adding PWA support.
no license 253 installs ★ 96 updated 2026-10-12
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a claude-codeWhat svelte-deployment does
The skill is a short SKILL.md cheat sheet for SvelteKit projects. It opens with pnpm and Vite upgrade notes. pnpm 10+ ships with postinstall switched off, so package.json needs "prepare": "svelte-kit sync". With Vite 7, vite@7 and @sveltejs/vite-plugin-svelte@6 have to be upgraded together.
For deployment targets it gives install lines for @sveltejs/adapter-static (static site), @sveltejs/adapter-node (Node server) and @sveltejs/adapter-cloudflare. Longer notes live in files under references/: publishing libraries, offline PWA with workbox, and Cloudflare streaming problems.
Streaming can break on Cloudflare, because it can drop the Transfer-Encoding: chunked header. A published library needs svelte listed under keywords and also under peerDependencies. A single-file build is switched on with kit.output.bundleStrategy: 'single'.
What it helps with
- add a
preparescript runningsvelte-kit syncfor pnpm 10+ - upgrade Vite to 7 together with its Svelte plugin
- pick an adapter for a static site, Node server or Cloudflare
- get a Svelte library ready to publish
- find out why streaming fails on Cloudflare
Example prompts for the agent
- Set up my SvelteKit app for Cloudflare and install the right adapter
- Bump the project to Vite 7 together with
@sveltejs/vite-plugin-svelte - I'm publishing a Svelte library, check the keywords and peerDependencies in
package.json
How to install svelte-deployment
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a claude-code2Manually: put the files in place
~/.claude/skills/svelte-deployment/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/svelte-deployment/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a codex2Manually: put the files in place
.agents/skills/svelte-deployment/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a cursor2Manually: put the files in place
.cursor/skills/svelte-deployment/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install spences10/svelte-skills-kit plugins/svelte-skills/skills/svelte-deployment2Manually: put the files in place
.github/skills/svelte-deployment/SKILL.md1Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a gemini-cli2Platform CLI
gemini skills install https://github.com/spences10/svelte-skills-kit --path plugins/svelte-skills/skills/svelte-deploymentManually: put the files in place
.devin/skills/svelte-deployment/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about svelte-deployment
How do I install svelte-deployment in Claude Code?
Run npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a claude-code. The skill ends up in ~/.claude/skills/svelte-deployment/SKILL.md.
What does svelte-deployment do?
It gives the agent deployment notes for SvelteKit: adapter install commands, pnpm and Vite setup, library publishing rules, PWA and Cloudflare pitfalls.
What should I change for pnpm 10+ in a SvelteKit project?
pnpm 10+ has postinstall disabled by default. Add "prepare": "svelte-kit sync" to scripts in package.json.