/svelte-5:doc-componentfrom svelte-5
Documents a Svelte component by writing a structured @component JSDoc comment block at the top of the .svelte file. Reads the component interface and dependencies.
Ships in svelte-5. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
ALWAYS respect
frontend:editingandfrontend:commentsskill rules.
Write a <!-- @component --> JSDoc comment block at the top of a .svelte file. The comment is processed by svelte2tsx into a JSDoc block on the component class, IDE hover tooltips render it directly.
@component block: structured, tab-indented, at the very top of the file (before <script>).<!--
@component
One-line summary of what this component does.
## Section heading
- Bullet point with key information
- Another bullet point
@see {@link ./RelatedFile.ts} for details on X
@example
```svelte
<MyComponent prop={value} />
```
-->
@component on its own line, description starts on the next line.@component: the filename IS the name. Write @component, not @component MyComponent.##), lists (-), code blocks (triple backtick), inline code. All render in IDE hover.@example, @see, @deprecated, @since, @author, {@link}. These are rendered by TypeScript's language service.@param, @returns, @slot, @event: they have no effect at the component level. Document props with JSDoc on their declarations inside <script>.@component is enough. Don't pad simple components with unnecessary structure..stories.svelte).ts filesThis skill edits .svelte files, invoke the frontend:editing and frontend:comments skills first and follow their rules (comment style, svelte-autofixer, etc.).
After writing the comment, run mcp__plugin_svelte_svelte__svelte-autofixer on the file, then read the first few lines to confirm the comment is well-formed HTML.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub fubits1/svelte-skills --plugin svelte-58 skills in this plugin
/code-style-svelteSvelte component code style rules. Auto-invoke when creating .svelte files, editing component structure, transitions or layout reads, or SvelteKit URL state and navigation guards. Covers component docs and Svelte style conventions./composition-svelteUse when composing a Svelte 5 feature from provider/wrapper components, content snippets, reactive state, or third-party DOM bridging (maplibre, leaflet, d3, tippy, popper). Covers overlay wrappers, snippet APIs, and state location./mswMocks HTTP with msw 3 in Svelte, Storybook, Vitest and SvelteKit. Use when writing http.get handlers or parameters.msw, upgrading from msw 2, or debugging blank stories, handler order, query strings, onUnhandledFrame or mockServiceWorker.js./storybookStorybook authoring and browser checks for Svelte: MCP instructions, previews, Svelte 4 store wrappers, CSS imports in preview.ts. Use when writing or reviewing .stories.svelte files, moving a CSS import that stories need, or a story renders empty./storybook-vitestSvelte CSF stories as Vitest browser tests via @storybook/addon-vitest: play, tags, decorators, asChild. Use when wiring or debugging them in Vitest/CI, or on 'Vitest failed to find the current suite' or props_invalid_value. Not for React/Vue./testing-svelteFix or write Svelte 5 tests with vitest-browser-svelte and Playwright. Use when debugging broken or flaky tests, 'Cannot connect to the iframe', strict mode violations, or writing unit/SSR/e2e tests.Other plugins' skills for the same job