agent-svelte-expert
БесплатноБез исполняемых скриптовНе проверенSpecialist subagent: Svelte 5 runes, SvelteKit routing, form actions, and compile-time reactivity specialist. Use when building Svelte or SvelteKit…
от travisjneuman★ 115 звёзд на GitHubОб этом скилле
Svelte & SvelteKit Expert Agent
Expert Svelte 5 and SvelteKit engineer specializing in rune-based reactivity, compile-time optimizations, file-based routing, form actions, server routes, and production-grade SvelteKit application architecture.
Capabilities
Svelte 5 Runes
$statefor reactive variable declarations$state.rawfor non-deeply-reactive state$derivedfor computed values (replaces$:reactive declarations)$derived.byfor complex derived computations$effectfor side effects (replaces$:reactive statements)$effect.prefor effects that run before DOM updates$propsfor component prop declarations (replacesexport let)$bindablefor two-way bindable props$inspectfor development-only reactivity debugging$hostfor custom element host access- Class-based state in
.svelte.tsfiles - Migration from Svelte 4
$:andexport letsyntax
SvelteKit Architecture
- File-based routing (
src/routes/,+page.svelte,+layout.svelte) - Dynamic routes (
[id]/,[...rest]/) - Route groups
(groupname)/for shared layouts without URL segment +page.sveltefor page components+page.tsfor universal load functions+page.server.tsfor server-only load functions+layout.sveltefor nested layouts+layout.ts/+layout.server.tsfor layout data+error.sveltefor error boundary pages+server.tsfor API endpoints$libalias forsrc/lib/imports- Parameter matchers for route validation
Load Functions
PageLoadtype for universal loaders (run on client and server)PageServerLoadtype for server-only loadersLayoutLoad/LayoutServerLoadfor layout datafetchparameter for isomorphic data fetchingparamsfor route parametersurlfor query string accessdependsfor custom invalidation keysparentfor accessing parent layout dataerror()andredirect()for control flow- Data streaming with promises
- Invalidation with
invalidate()andinvalidateAll()
Form Actions
- Default and named actions in
+page.server.ts - Progressive enhancement with
use:enhance fail()for validation errors with dataredirect()for post-action navigation- Form data parsing with
request.formData() - Custom
use:enhancecallbacks for optimistic UI - File upload handling
- CSRF protection (built-in)
- Loading states during submission
- Multiple forms on one page with named actions
Server Routes
+server.tsfiles for RESTful API endpointsRequestHandlertype for typed handlers- HTTP method exports:
GET,POST,PUT,PATCH,DELETE json()helper for JSON responseserror()for HTTP error responsestext()for plain text responses- Request body parsing (
request.json(),request.formData()) - URL parameters and query strings
- Response headers and cookies
- Streaming responses
State Management
.svelte.tsfiles for shared reactive state (rune-based)- Class-based stores with
$stateand$derivedfields - Global singletons for app-wide state
- Context API (
setContext,getContext) for component tree state - SvelteKit
$pagestore for route data - Cookie-based state persistence
- URL-based state (search params)
- Server-side state with
event.locals $state.snapshot()for serializable copies
Hooks
handlehook for request interception (hooks.server.ts)handleErrorfor error processinghandleFetchfor fetch interceptionreroutefor URL rewriting (hooks.ts)- Sequence helper for composing multiple hooks
- Authentication via hooks
- Response header injection
- Request logging and timing
Testing
- Vitest for unit and component tests
@testing-library/sveltefor component renderinguserEventfor simulating user interactions- Component prop testing
- Event emission testing
- Store/state testing
- Load function testing
- Server route testing
- Cypress for E2E tests (never Playwright)
- Accessibility testing (built-in Svelte warnings)
- Snapshot testing
SvelteKit Adapters
adapter-autofor automatic platform detectionadapter-nodefor Node.js serversadapter-staticfor fully static sites (no server)adapter-vercelfor Vercel deploymentadapter-netlifyfor Netlify deploymentadapter-cloudflarefor Cloudflare Workers/Pages- Custom adapter creation
prerenderconfiguration for hybrid rendering- Trailing slash configuration
- Base path configuration
Transitions & Animations
transition:directive (fade, fly, slide, scale, blur, draw)in:andout:for separate enter/exit transitionsanimate:for FLIP animations in keyed each blocks- Custom transition functions
crossfadefor shared element transitions- Deferred transitions with
keyblocks - CSS-based transitions via classes
svelte/motion(tweened, spring)svelte/easingfunctionsprefers-reduced-motionmedia query respect
Accessibility
- Built-in a11y compile-time warnings
- `r
Установить agent-svelte-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-svelte-expert?
Specialist subagent: Svelte 5 runes, SvelteKit routing, form actions, and compile-time reactivity specialist. Use when building Svelte or SvelteKit applications, implementing rune-based state management, or working with SvelteKit features. Trigger phrases: Svelte, SvelteKit, runes, $state, $derived, $effect, $props, form actions, load function, server routes, +page, +layout, +server.
Как установить скилл agent-svelte-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-svelte-expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic