# svelte-deployment

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 253 installs · ★ 96 repo stars
- Author: spences10
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/spences10/svelte-skills-kit/tree/HEAD/plugins/svelte-skills/skills/svelte-deployment/SKILL.md
- Updated: 2026-10-12
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/svelte-deployment

## What it 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'`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/svelte-deployment/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/svelte-deployment/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/svelte-deployment/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/svelte-deployment/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install spences10/svelte-skills-kit plugins/svelte-skills/skills/svelte-deployment
```

2. **Manually: put the files in place**
- File: `.github/skills/svelte-deployment/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/spences10/svelte-skills-kit --path plugins/svelte-skills/skills/svelte-deployment
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/svelte-deployment/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add spences10/svelte-skills-kit --skill svelte-deployment -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/spences10/svelte-skills-kit/tree/HEAD/plugins/svelte-skills/skills/svelte-deployment/SKILL.md

## When to use it
- add a `prepare` script running `svelte-kit sync` for 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
- 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`

## Similar
- [svelte-development](https://affpapa.org/en/nevibecode/skills/travisjneuman-svelte-development.md) — skill · 139 installs
- [svelte](https://affpapa.org/en/nevibecode/rules/patrickjs-svelte.md) — rule · ★ 41178 repo stars
- [sentry-svelte-sdk](https://affpapa.org/en/nevibecode/skills/sentry-svelte-sdk.md) — skill · 2300 installs
- [svelte-code-writer](https://affpapa.org/en/nevibecode/skills/svelte-code-writer.md) — skill · 14200 installs
- [pwa-development](https://affpapa.org/en/nevibecode/skills/jwynia-pwa-development.md) — skill · 456 installs
- [svelte-mcp-feedback](https://affpapa.org/en/nevibecode/skills/svelte-mcp-feedback.md) — skill · 102 installs

From the same set: [spences10/svelte-skills-kit](https://affpapa.org/en/nevibecode/by/spences10/svelte-skills-kit.md) — 10 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
