shadcn-sveltekit-design
Skill58 starsChanged 2 months agoMITView on GitHub
Use when building, redesigning, beautifying, or refactoring SvelteKit pages and reusable components with shadcn-svelte, Bits UI, or the shadcn-svelte MCP. Trigger on landing pages, dashboards, marketing sites, app shells, forms, navbars, tables, dialogs, charts, sidebars, auth screens, blocks, responsive layouts, theming, icon selection, component or CLI install questions, and requests to turn an idea or rough mockup into polished Svelte UI without inventing component APIs.
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 10 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill to create polished SvelteKit UI while grounding component decisions in the configured shadcn-svelte MCP instead of memory.
- Very specific: line 13
If the MCP is missing, say that clearly and offer setup before continuing: hosted https://shadcn.svelte-apps.me/mcp or local stdio npx -y …
- Very specific: line 14
Treat shadcn-svelte-get as the source of truth for any component, block, chart, or docs page you plan to use.
- Distinctive: line 15
Treat official shadcn-svelte CLI installation as the default path for any library component that exists upstream.
- Distinctive: line 20
Ask for the screen type, audience, content density, brand direction, and whether the work should preserve an existing visual language or …
- Very specific: line 23
If the user describes a feature vaguely, start with references/mcp-workflow.md and use the discovery tools before writing UI code.
- Distinctive: line 25
Commit to an intentional visual direction.
- Distinctive: line 58
Do not invent component names, CLI commands, or props.
- Distinctive: line 59
Do not recreate official shadcn-svelte component source by hand when the component can be installed with the CLI.
- Distinctive: line 60
Prefer retrieving CLI commands from the MCP before using web research.
- Distinctive: line 61
If you must research the CLI on the web, only trust commands from official shadcn-svelte documentation, not shadcn/ui or other similarly …
- Very specific: line 62
Use shadcn-svelte-icons only for Lucide icons.
- Very specific: line 63
Use bits-ui-get only when shadcn-svelte-get exposes tooling.bitsUi.exactName or docs.bitsuiName, and only for lower-level primitive details.
- Very specific: line 64
When shadcn-svelte-get and bits-ui-get overlap, prefer shadcn-svelte-get for standard component usage and pass the exact primitive name …
- Distinctive: line 65
Prefer a smaller set of verified components composed well over a wide, unverified grab bag.
- Distinctive: line 67
Keep desktop and mobile layouts intentional.
- Very specific: line 69
If the user did not request a motion library and the project does not already use one, prefer Svelte's built-in transition:, in:, out:, and …
- Very specific: line 73
Read references/ui-rules.md when the task is about page design, visual refreshes, theming, or reusable UI.
- Very specific: line 77
Read references/mcp-workflow.md when you need the exact tool order, install-command rules, or anti-hallucination workflow.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Shadcn SvelteKit Design
Use this skill to create polished SvelteKit UI while grounding component decisions in the configured shadcn-svelte MCP instead of memory.
Preconditions
- Expect these MCP tools to be available:
shadcn-svelte-search,shadcn-svelte-get,shadcn-svelte-list,shadcn-svelte-icons, andbits-ui-get. - If the MCP is missing, say that clearly and offer setup before continuing: hosted
https://shadcn.svelte-apps.me/mcpor local stdionpx -y shadcn-svelte-mcp(Bun:bunx). Never pretend a component or API exists; when forced to work without the MCP, verify against official shadcn-svelte docs only. - Treat
shadcn-svelte-getas the source of truth for any component, block, chart, or docs page you plan to use. - Treat official shadcn-svelte CLI installation as the default path for any library component that exists upstream.
Workflow
- Understand the target before designing. Ask for the screen type, audience, content density, brand direction, and whether the work should preserve an existing visual language or introduce a new one.
- Discover before composing.
If the user describes a feature vaguely, start with
references/mcp-workflow.mdand use the discovery tools before writing UI code. - Commit to an intentional visual direction. Pick a clear design thesis instead of drifting into generic SaaS UI. Define typography, color logic, spacing, hierarchy, and motion up front.
- Map the design to verified primitives. Build the layout from components, blocks, charts, docs, and icons that the MCP confirms are real. If the desired component is not available, say so and propose the closest verified alternative.
- Write Svelte-first code. Output valid SvelteKit and Svelte 5 code. Never use React props, JSX patterns, or shadcn/ui React guidance.
- Explain the chosen building blocks. Mention which components or docs were verified, especially when the user asks for implementation guidance or installation commands.
- Install vendor components instead of reimplementing them. If a verified shadcn-svelte component exists, fetch the official CLI command from the MCP when possible and run it yourself when the task requires editing the project. Fall back to official shadcn-svelte documentation only when the MCP is unavailable. Do not hand-write the upstream component source from scratch. It is fine to write wrappers, compositions, page code, or project-specific variants around installed components.
Output Shape
For page-level work, structure the response like this:
- A short design concept statement.
- The verified shadcn-svelte building blocks you are using.
- The SvelteKit file plan.
- The implementation.
For reusable components, structure the response like this:
- The component purpose and states.
- The verified primitives or icons it depends on.
- The public API or variants.
- The implementation.
Guardrails
- Do not invent component names, CLI commands, or props.
- Do not recreate official shadcn-svelte component source by hand when the component can be installed with the CLI.
- Prefer retrieving CLI commands from the MCP before using web research.
- If you must research the CLI on the web, only trust commands from official shadcn-svelte documentation, not shadcn/ui or other similarly named libraries.
- Use
shadcn-svelte-iconsonly for Lucide icons. - Use
bits-ui-getonly whenshadcn-svelte-getexposestooling.bitsUi.exactNameordocs.bitsuiName, and only for lower-level primitive details. - When
shadcn-svelte-getandbits-ui-getoverlap, prefershadcn-svelte-getfor standard component usage and pass the exact primitive name intobits-ui-getonly when you need underlying internals. - Prefer a smaller set of verified components composed well over a wide, unverified grab bag.
- Preserve an existing design system when the user is working inside one.
- Keep desktop and mobile layouts intentional; do not treat mobile as an afterthought.
- Label icon-only buttons (
aria-label), keep visible focus states, and preserve keyboard navigation in dialogs and menus. - If the user did not request a motion library and the project does not already use one, prefer Svelte's built-in
transition:,in:,out:, andanimate:capabilities.
Design Standards
Read references/ui-rules.md when the task is about page design, visual refreshes, theming, or reusable UI.
MCP Grounding
Read references/mcp-workflow.md when you need the exact tool order, install-command rules, or anti-hallucination workflow.
Editor Agent Pairing
The same MCP-grounded workflow ships as installable editor agents in agents/ at the repository root — VS Code, Claude Code, Cursor, Windsurf/Devin, and OpenCode formats, plus an AGENTS.md snippet for Zed, Codex, and Gemini CLI. Point users there when they want the workflow as a selectable agent or always-on rule instead of an on-demand skill (see agents/README.md).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

