agentleFS
Michael-ObeleMichael-Obele/shadcn-svelte-mcp/skills/shadcn-sveltekit-design/SKILL.md

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.

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
  1. Distinctive:

    Use this skill to create polished SvelteKit UI while grounding component decisions in the configured shadcn-svelte MCP instead of memory.

    line 8
  2. Very specific:

    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 …

    line 13
  3. Very specific:

    Treat shadcn-svelte-get as the source of truth for any component, block, chart, or docs page you plan to use.

    line 14
  4. Distinctive:

    Treat official shadcn-svelte CLI installation as the default path for any library component that exists upstream.

    line 15
  5. Distinctive:

    Ask for the screen type, audience, content density, brand direction, and whether the work should preserve an existing visual language or …

    line 20
  6. Very specific:

    If the user describes a feature vaguely, start with references/mcp-workflow.md and use the discovery tools before writing UI code.

    line 23
  7. Distinctive:

    Commit to an intentional visual direction.

    line 25
  8. Distinctive:

    Do not invent component names, CLI commands, or props.

    line 58
  9. Distinctive:

    Do not recreate official shadcn-svelte component source by hand when the component can be installed with the CLI.

    line 59
  10. Distinctive:

    Prefer retrieving CLI commands from the MCP before using web research.

    line 60
  11. Distinctive:

    If you must research the CLI on the web, only trust commands from official shadcn-svelte documentation, not shadcn/ui or other similarly …

    line 61
  12. Very specific:

    Use shadcn-svelte-icons only for Lucide icons.

    line 62
  13. Very specific:

    Use bits-ui-get only when shadcn-svelte-get exposes tooling.bitsUi.exactName or docs.bitsuiName, and only for lower-level primitive details.

    line 63
  14. Very specific:

    When shadcn-svelte-get and bits-ui-get overlap, prefer shadcn-svelte-get for standard component usage and pass the exact primitive name …

    line 64
  15. Distinctive:

    Prefer a smaller set of verified components composed well over a wide, unverified grab bag.

    line 65
  16. Distinctive:

    Keep desktop and mobile layouts intentional.

    line 67
  17. Very specific:

    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 …

    line 69
  18. Very specific:

    Read references/ui-rules.md when the task is about page design, visual refreshes, theming, or reusable UI.

    line 73
  19. Very specific:

    Read references/mcp-workflow.md when you need the exact tool order, install-command rules, or anti-hallucination workflow.

    line 77

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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, and bits-ui-get.
  • 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 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-get as 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

  1. 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.
  2. Discover before composing. If the user describes a feature vaguely, start with references/mcp-workflow.md and use the discovery tools before writing UI code.
  3. 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.
  4. 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.
  5. Write Svelte-first code. Output valid SvelteKit and Svelte 5 code. Never use React props, JSX patterns, or shadcn/ui React guidance.
  6. Explain the chosen building blocks. Mention which components or docs were verified, especially when the user asks for implementation guidance or installation commands.
  7. 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:

  1. A short design concept statement.
  2. The verified shadcn-svelte building blocks you are using.
  3. The SvelteKit file plan.
  4. The implementation.

For reusable components, structure the response like this:

  1. The component purpose and states.
  2. The verified primitives or icons it depends on.
  3. The public API or variants.
  4. 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-icons only for Lucide icons.
  • Use bits-ui-get only when shadcn-svelte-get exposes tooling.bitsUi.exactName or docs.bitsuiName, and only for lower-level primitive details.
  • When shadcn-svelte-get and bits-ui-get overlap, prefer shadcn-svelte-get for standard component usage and pass the exact primitive name into bits-ui-get only 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:, and animate: 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.