doc-component

Installation
SKILL.md

Document Svelte Component

ALWAYS respect frontend:editing skill 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.

Process

  1. Read the component file: understand what it does, its props, its reactive dependencies, its key functions.
  2. Read direct dependencies: imports, models, utilities, to understand the full interface.
  3. Write the @component block: structured, tab-indented, at the very top of the file (before <script>).

Format

<!--
	@component
	One-line summary of what this component does.
Installs
2
GitHub Stars
10
First Seen
Jul 11, 2026
doc-component — fubits1/svelte-skills