Index of every page on this site: llms.txt
All skills
spences10 avatar

/svelte-deployment

@5fe4989
Run it yourself

Svelte deployment guidance. Use for adapters, Vite config, pnpm setup, library authoring, PWA, or production builds.

Use this Skill: https://skilld.dev/gh/spences10/svelte-skills-kit/svelte-deployment

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referenceslibrary-authoring.md

≈415 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Library Authoring

Package.json Setup

{
	"name": "my-svelte-library",
	"version": "1.0.0",
	"svelte": "./dist/index.js",
	"types": "./dist/index.d.ts",
	"exports": {
		".": {
			"types": "./dist/index.d.ts",
			"svelte": "./dist/index.js"
		}
	},
	"files": ["dist"],
	"keywords": ["svelte"],
	"peerDependencies": {
		"svelte": "^5.0.0"
	}
}

Critical: Include BOTH:

  1. svelte in keywords array
  2. svelte in peerDependencies or dependencies

Using svelte-package

pnpm add -D @sveltejs/package
{
	"scripts": {
		"package": "svelte-kit sync && svelte-package"
	}
}
// svelte.config.js
import adapter from '@sveltejs/adapter-auto';

export default {
	kit: {
		adapter: adapter(),
	},
	package: {
		source: './src/lib',
		dir: 'dist',
	},
};

Directory Structure

my-library/
├── src/
│   └── lib/
│       ├── index.ts          # Main export
│       ├── Button.svelte
│       └── utils.ts
├── package.json
└── svelte.config.js

Exports Pattern

// src/lib/index.ts
export { default as Button } from './Button.svelte';
export { default as Input } from './Input.svelte';
export * from './utils.js';

TypeScript Support

// tsconfig.json
{
	"extends": "./.svelte-kit/tsconfig.json",
	"compilerOptions": {
		"declaration": true,
		"declarationDir": "./dist"
	}
}

Publishing Checklist

  1. ✅ svelte in keywords
  2. ✅ svelte in peerDependencies
  3. ✅ Exports field configured
  4. ✅ Types exported
  5. ✅ files array includes dist/
  6. ✅ Test with pnpm pack before publishing

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning25d4 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides legitimate deployment guidance for SvelteKit projects, including configuration for various adapters (Cloudflare, Node, Static), PWA setup, and library authoring. It uses official Svelte ecosystem packages and follows standard practices for environment variable access and project configuration.

  • Socket25d

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    4/4 files flagged

Signed by skilld at 5fe4989. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 7 months ago

README badge

README badge for spences10/svelte-skills-kit/svelte-deployment