shadcn-svelte
Skill by huntabyte
Manages shadcn-svelte components and projects, covering adding, updating, fixing, styling, and composing UI. It is for Svelte developers who use the shadcn-svelte CLI and components.json based projects.
Install shadcn-svelte
Built from the published package, never by AI.
git clone --depth 1 https://github.com/huntabyte/shadcn-svelte /tmp/shadcn-svelte && mkdir -p ~/.claude/skills && cp -r /tmp/shadcn-svelte/skills/shadcn-svelte ~/.claude/skills/shadcn-svelteRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/huntabyte/shadcn-svelte /tmp/shadcn-svelte && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/shadcn-svelte/skills/shadcn-svelte ~/.gemini/antigravity-cli/skills/shadcn-svelteAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant work with shadcn-svelte, a framework for building UI, components, and design systems for Svelte. Components are added as source files to the user's project through the shadcn-svelte CLI, so the assistant reads components.json, checks which components are already installed, and runs the CLI with the project's package runner (npx, pnpm dlx, or bunx).
The skill sets rules for imports, styling, forms, component structure, icons, and presets. It points the assistant to the official component docs before it creates or fixes a component. It is aimed at developers building Svelte interfaces with shadcn-svelte, including those who apply a design system preset or a brand spec.
Written from the project's SKILL.md and checked against it.
What it can do
- Project contextReads components.json and lists the UI components folder to see what is installed.
- Adding componentsRuns the CLI add command to install components or a registry URL into the project.
- Updating componentsRefreshes existing component files from the registry with the update command.
- Import fixesRewrites hardcoded paths in URL-added components to match the project's aliases.
- Styling rulesApplies semantic colors, built-in variants, and Tailwind conventions instead of custom styles.
- Form layoutBuilds forms with Field, FieldGroup, and validation attributes such as data-invalid.
- Component compositionComposes pages from components like Tabs, Card, Sidebar, Dialog, and Table.
- PresetsPasses a design-system preset code from the shadcn-svelte.com builder to the init command.
What you need
- Node.js package runner: npx, pnpm dlx, or bunx
- A Svelte project using shadcn-svelte, ideally with a components.json file
Try asking
- Add a dialog component to this shadcn-svelte project
- Build a settings page with Tabs, Card, and form controls
- Fix the imports in the component I just added from a registry URL
Good to know
- The skill is not user-invocable and runs as context for the assistant.
- Components are added as source code, so the user owns and maintains the files.
- The source says to read the official component page before creating or fixing a component.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/shadcn-svelte/SKILL.md, skills/shadcn-svelte/assets/showcase/preview-state.ts, skills/shadcn-svelte/scripts/showcase-coverage.mjs, skills/shadcn-svelte/scripts/showcase-coverage.test.mjs. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(npx shadcn-svelte@latest *)Bash(pnpm dlx shadcn-svelte@latest *)Bash(bunx --bun shadcn-svelte@latest *)
-
SKILL.md16 KB -
agents/openai.yml259 B -
assets/shadcn-svelte-small.png3 KB -
assets/shadcn-svelte.png9 KB -
assets/showcase/color-pair.svelte3 KB
Show all 19 files
-
assets/showcase/preview-state.ts330 B -
assets/showcase/preview-states.css412 B -
assets/showcase/state-matrix.svelte1 KB -
cli.md10 KB -
customization.md6 KB -
design-system-page.md16 KB -
design-system.md25 KB -
evals/evals.json7 KB -
rules/composition.md6 KB -
rules/forms.md6 KB -
rules/icons.md2 KB -
rules/styling.md4 KB -
scripts/showcase-coverage.mjs2 KB -
scripts/showcase-coverage.test.mjs3 KB
Alternatives to shadcn-svelte
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
shadcn-svelte: common questions
What is shadcn-svelte?
The source describes shadcn-svelte as a framework for building UI, components, and design systems for Svelte. Components are added as source to the user's project via the CLI.
Which commands does the skill run?
It runs shadcn-svelte CLI commands such as add, update, and init through npx, pnpm dlx, or bunx. The allowed-tools list covers those three runners.
Does it need a components.json file?
The skill applies to any project with a components.json file and reads that file for aliases, style, icon library, and registry settings.
How do I install shadcn-svelte?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is shadcn-svelte free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is shadcn-svelte safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to shadcn-svelte?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
