Find, install, and use shadcn-svelte components in SvelteKit using pnpm.
This skill enables agents to reliably find, install, and use shadcn-svelte UI components in SvelteKit projects using pnpm. It encodes the repeatable process for searching the shadcn-svelte documentation, running the correct install commands, and handling any post-install steps or peer dependencies.
Find the Component
Install the Component with pnpm
pnpm dlx shadcn-svelte@latest add button).Post-Install Steps
Usage
src/lib/components/ui/[component].Find the Installation section. Example command:
pnpm dlx shadcn-svelte@latest add button
Run the command in the SvelteKit project root. You may see prompts like:
◆ Ready to install components and dependencies? ● Yes / ○ No
Select "Yes" to continue.
If the component already exists, you may see:
▲ The following items already exist: │ button ◆ Would you like to overwrite all existing files? ○ Yes, overwrite everything / ● No, let me decide individually
Choose "Yes, overwrite everything" to update the component.
Wait for the CLI to finish. You should see:
Success! Components added.
Follow any post-install steps (e.g., import styles in +layout.svelte).
Use the component as shown in the docs.
Skill last updated: 2026-02-10 (improved with real CLI prompt and overwrite experience)