skills/svelte-skills/svelte/SKILL.md
Guides Svelte and SvelteKit development including reactive components, stores, transitions, lifecycle hooks, SSR, file-based routing, and deployment. Use when the user needs to build Svelte components, create SvelteKit applications, implement reactivity patterns, or configure Svelte with Vite.
npx skillsauth add partme-ai/full-stack-skills svelteInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill whenever the user wants to:
npm create svelte@latest my-app for SvelteKit or Vite+Svelte.svelte files with script, markup, and style blocks$: reactive declarations and Svelte storesnpm run build with adapter-auto, adapter-node, or adapter-static<script>
let count = 0;
$: doubled = count * 2;
$: if (count > 10) console.log('Count is high!');
function increment() {
count += 1;
}
</script>
<button on:click={increment}>
Clicked {count} {count === 1 ? 'time' : 'times'}
</button>
<p>Doubled: {doubled}</p>
<style>
button {
padding: 0.5rem 1rem;
border-radius: 4px;
background: #ff3e00;
color: white;
border: none;
cursor: pointer;
}
</style>
// stores.js
import { writable, derived } from 'svelte/store';
export const todos = writable([]);
export const completedCount = derived(todos, $todos =>
$todos.filter(t => t.done).length
);
<script>
import { todos, completedCount } from './stores.js';
let newTodo = '';
function addTodo() {
todos.update(t => [...t, { text: newTodo, done: false }]);
newTodo = '';
}
</script>
<input bind:value={newTodo} />
<button on:click={addTodo}>Add</button>
<p>Completed: {$completedCount}</p>
$: blocks; use them for derived values.svelte file should handle one concern<script lang="ts"> for type safety in components+page.server.ts for server-side data loading, form actions for mutationssvelte, SvelteKit, reactive, component, store, transition, SSR, Vite, 响应式, 编译时, file-based routing
development
Provides per-component and per-API examples with cross-platform compatibility details for uni-app, covering built-in components, uni-ui components, and APIs (network, storage, device, UI, navigation, media). Use when the user needs official uni-app components or APIs, wants per-component examples with doc links, or needs platform compatibility checks.
tools
Creates new uni-app projects via the official CLI or HBuilderX with Vue 2/Vue 3 template selection, manifest.json and pages.json configuration, and directory structure setup. Use when the user wants to scaffold a new uni-app project, initialize project files with a single command, or set up the development environment.
tools
Browses, installs, configures, and manages plugins from the uni-app plugin market (ext.dcloud.net.cn) including component plugins, API plugins, and template plugins with dependency handling. Use when the user needs to find and install uni-app plugins, configure plugin settings, manage plugin dependencies, or integrate third-party components.
tools
Develops native Android and iOS plugins for uni-app including module creation, JavaScript-to-native communication, and plugin packaging for distribution. Use when the user needs to build custom native modules, extend uni-app with native capabilities (camera, Bluetooth, sensors), or create publishable native plugins.