From 9arm-skills
Svelte 5 core best practices. Use when creating, editing, or reviewing .svelte, .svelte.ts, or .svelte.js files. Routes to deeper Svelte skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/9arm-skills:svelte-core-bestpracticesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- Inspired by the official Svelte AI `svelte-core-bestpractices` skill: https://svelte.dev/docs/ai/skills -->
Use this as the baseline for any Svelte 5 component/module work, then load the focused skill for details.
$state, $derived, $effect, $props, $bindable.$state for values that affect template output, $derived, or $effect.$state.raw for large objects/arrays that are replaced wholesale, especially API payloads.$derived/$derived.by over writing state inside $effect.$derived.onclick={...} and other event properties, not legacy event directives.{@render ...} for component content.{let ...} / {const ...} declaration tags for local markup variables; {@const ...} is legacy syntax.{#each} blocks; never use array indexes as keys.style: for dynamic styling.class={...} for conditional classes.createContext for typed context instead of module-level shared state.{@attach ...} for DOM/third-party integrations tied to an element.svelte-runes{@attach}, global events, each blocks → svelte-template-directivessvelte-stylingsvelte-componentssveltekit-data-flow, sveltekit-structuresveltekit-remote-functionssvelte-deploymentif (browser).$inspect.trace(label) to debug unexpected reactivity.npx claudepluginhub bossoq/bossoq-skillsGuides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Implements work from a spec or tickets using TDD at agreed seams, with regular typechecking and test runs, followed by code review.