/extend-ui-svelte:add-component <component-name>from extend-ui-svelte
Install one extend-ui-svelte component into the current Svelte 5 project, with its engine dependencies, SSR-safe setup, and a minimal usage example. Invoked as /extend-ui-svelte:add-component <component-name>.
Ships in extend-ui-svelte. 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.
Install the component named in $ARGUMENTS into the user's project. Load the extend-ui-svelte hub skill's references/installation.md if any step below is unclear.
pdf-viewer, docx-viewer, xlsx-viewer, pptx-viewer, csv-tsv-viewer, document-viewer-sidebar, pdf-editor, docx-editor, xlsx-editor, e-signature, file-upload, file-thumbnail, file-system, group, color-picker, toggle, schema-builder, document-splits, layout-blocks, bounding-box-citations.
Shared items (install only as dependencies, or on explicit request): dark-mode, utils, virtual-list, engines.
Normalize $ARGUMENTS to kebab-case lowercase. Accept the obvious aliases: PdfViewer/PDFViewer means pdf-viewer, CsvViewer means csv-tsv-viewer, ButtonGroup means group, ESignatureBlock means e-signature, HumanReviewPanel means bounding-box-citations, OcrBlocksPanel means layout-blocks, SchemaBuilderPanel means schema-builder. If the name is empty or still not in the list, print the valid names and stop.
Run these checks and keep the results:
package.json has svelte at ^5 or higher. If not, stop and say the library needs Svelte 5.@sveltejs/kit in package.json and a svelte.config.* file. This decides whether $lib imports work.vite in devDependencies. Without Vite, warn that the PDF engine's pdfjs-dist/build/pdf.worker.mjs?url import needs a Vite-style ?url loader (affects any component that uses the engines).tailwindcss at ^4 and @tailwindcss/vite. Find the main CSS file (usually src/app.css, the one imported in the root +layout.svelte).bun.lock/bun.lockb is bun, pnpm-lock.yaml is pnpm, yarn.lock is yarn, package-lock.json is npm. Fall back to npm.extend-ui-svelte already in dependencies? Is there already a src/lib/extend-ui/ (or another folder containing components/<name>/index.ts with the extend-hq/ui MIT header)? Reuse whichever path is already in use.<pm> add extend-ui-svelte (or npm i extend-ui-svelte). All engines come with it as regular dependencies.extend-ui-svelte/components/<name>.curl -sf https://extend-ui-svelte.linehaul.ai/r/<name>.json. If it returns JSON, run npx shadcn-svelte@latest add https://extend-ui-svelte.linehaul.ai/r/<name>.json and check that the written files keep the components/, engines/, virtual-list/ layout relative to each other. If it 404s (the state on 2026-10-18), copy manually:https://raw.githubusercontent.com/fakebizprez/extend-ui-svelte/main/registry.json.registryDependencies entry recursively. Skip items already present in the target folder.https://raw.githubusercontent.com/fakebizprez/extend-ui-svelte/main/<path> with curl -fsSL --create-dirs -o <dest> <url>. <dest> is src/lib/extend-ui/ plus the part of <path> after src/lib/. Never flatten or rename: components import ../../engines/..., ../../virtual-list/..., ../../dark-mode.js, ../../utils.js.dependencies arrays across the closure and install them. Install SheetJS from its tarball URL exactly as written in the registry (https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz); for yarn use xlsx@<url>. Never add xlsx from the npm registry.grep -rhoE "from '\.\.?/[^']+'" src/lib/extend-ui | sort -u and confirm every target exists.$lib/extend-ui/components/<name>/index.js (SvelteKit) or a relative path otherwise.Engine npm closure for reference: any component that depends on engines (pdf-viewer, docx-viewer, xlsx-viewer, pptx-viewer, pdf-editor, docx-editor, xlsx-editor, e-signature, file-upload, file-thumbnail, document-splits, bounding-box-citations) needs pdfjs-dist@^6.4.299, docx-preview@^0.4.1, pptx-browser@^4.1.5, and SheetJS. Extras: pdf-lib@^1.17.1 for pdf-viewer, pdf-editor, bounding-box-citations, e-signature; signature_pad@^5.1.4 for e-signature; jszip@^3.10.2 for docx-editor; papaparse@^5.7.0 for csv-tsv-viewer; marked@^18.1.0 plus hast-util-sanitize@^5.0.2, hast-util-from-html@^2.0.3, hast-util-to-html@^9.0.5 for layout-blocks.
?url and sets it before loading. Only if the user wants the worker from a custom URL (copy-in only), add a client-side call to setPdfWorkerSrc(url) from $lib/extend-ui/engines/pdf/index.js in the root +layout.svelte inside onMount.export const ssr = false. Components load engines inside onMount or $effect. Only add a browser guard or an onMount dynamic import if the example code you write calls an engine directly.group, toggle, color-picker)If the component is one of these three:
@custom-variant dark (&:where(.dark, .dark *)); if missing. Add the theme tokens from the hub skill's references/dark-mode-and-theming.md if --background and --color-background are not already defined (shadcn-svelte projects already have them). For the npm path, add @source "<relative path>/node_modules/extend-ui-svelte/dist"; relative to that CSS file.Every other component uses scoped CSS. Make no CSS changes for them.
Read the installed component's index.ts and its main .svelte file Props interface (in node_modules/extend-ui-svelte/dist/components/<name>/ or the copied folder) and use only props that exist there. Create src/routes/extend-ui/<name>/+page.svelte for SvelteKit (or src/lib/examples/<Name>Example.svelte otherwise) unless the user named a target file. Use <script lang="ts">, runes, and parent-owned dark mode:
<script lang="ts">
import { PdfViewer } from 'extend-ui-svelte/components/pdf-viewer';
let isDark = $state(false);
</script>
<PdfViewer src="/sample.pdf" fileName="sample" defaultZoom="fit-width" height={720} {isDark} onIsDarkChange={(v) => (isDark = v)} />
Required props to remember:
docx-viewer, xlsx-viewer, docx-editor, xlsx-editor: isDark and onIsDarkChange are required.file-thumbnail: file (a File or ThumbnailFile).file-system: items: FileSystemItem[].document-splits: splits, activePage, onSelectPage, onSplitsChange (seed splits with createInitialSplits(pageCount) from the same import).layout-blocks: blocks: OcrBlock[].group, toggle primitives: content via children snippets.Point src at a file the user has, or tell them where to drop a sample in static/.
<pm> run check if the script exists, else npx svelte-check). Fix errors in what you wrote.State the install path used, the files added or changed, the packages installed, and the example route. For component-specific props and events, point to the sibling skill: extend-ui-viewers (pdf, docx, xlsx, pptx, csv-tsv viewers, document-viewer-sidebar), extend-ui-editors (pdf, docx, xlsx editors, e-signature), extend-ui-files-primitives (file-upload, file-thumbnail, file-system, group, color-picker, toggle), extend-ui-extraction (schema-builder, document-splits, layout-blocks, bounding-box-citations).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/extend-ui-editorsThis skill should be used when the user asks to edit a PDF, rotate/reorder/delete PDF pages, build a Word or .docx editor, build a spreadsheet or .xlsx editor, edit cells or formulas in the browser, capture a signature, add e-signature, sign a PDF, stamp a signature onto a PDF, or save/export/upload an edited document in a Svelte 5 app using extend-ui-svelte (PdfEditor, DocxEditor, XlsxEditor, ESignature)./extend-ui-extractionThis skill should be used when the user asks to build an extraction schema editor or JSON schema builder, split a multi-document PDF into sections or document splits, show parsed OCR layout blocks, show extracted values with citations or bounding boxes on a PDF, build a human review or document review UI, highlight the source region of an extracted field, compare actual vs expected extraction output, or otherwise build a document-AI / extraction-review screen with the extend-ui-svelte Svelte 5 library (SchemaBuilder, SchemaBuilderPanel, SchemaJsonView, DocumentSplits, LayoutBlocks, OcrBlocksPanel, BoundingBoxCitations, HumanReviewBlock, HumanReviewPanel)./extend-ui-files-primitivesThis skill should be used when the user asks to add file upload, a drop zone, or drag and drop files, show file thumbnails or a PDF page preview, build a file browser or file tree, open a file picked from a tree, use the color picker, toggle, toggle group, group or button group component, or wire these into a form in an app built with the extend-ui-svelte Svelte 5 library (FileUpload, FileThumbnail, FileSystem, ColorPicker, ColorPickerPanel, Toggle, ToggleGroup, Group)./extend-ui-svelteThis skill should be used when the user asks to "install extend-ui-svelte", "add an extend-ui component", "set up the PDF worker", "use extend-ui-svelte in SvelteKit", "fix SSR errors with the PDF viewer", "wire dark mode into extend-ui components", "pass isDark to the viewer", "configure Tailwind for extend-ui-svelte", "which engine does this component need", or mentions extend-ui-svelte, Extend UI Svelte, or the Svelte port of extend-hq/ui. It is the hub skill: what the library is, how to install it (copy-in registry or npm package), which engine dependencies each component pulls in, the shared dark-mode, cn, virtual-list and SSR contracts, and common pitfalls. Component-specific APIs live in the sibling skills extend-ui-viewers, extend-ui-editors, extend-ui-files-primitives and extend-ui-extraction./extend-ui-viewersThis skill should be used when the user asks to display a PDF, render a DOCX, XLSX, PPTX, CSV, or TSV file, preview a Word document, spreadsheet, or slide deck in Svelte, build a document viewer or "open any file" viewer, add a page overlay or highlights on top of PDF pages, or add a thumbnail sidebar to a viewer using extend-ui-svelte (PdfViewer, DocxViewer, XlsxViewer, PptxViewer, CsvTsvViewer, DocumentViewerThumbnailSidebar).npx claudepluginhub freightcognition/linehaulai-claude-marketplace --plugin extend-ui-svelte