cursor-shadcn-svelte

cursor-shadcn-svelte is a cursor rule for Cursor from Michael-Obele/shadcn-svelte-mcp. It costs 37 tokens per session (887 once invoked), scanned A, original, MIT.

A SvelteKit interface specialist for building or redesigning pages and components with shadcn-svelte and Bits UI, reusable interface building blocks. It also covers themes, icons, and install commands, using documented component information when available.

In plain words
What is it for?
Use it for SvelteKit pages, forms, dashboards, dialogs, tables, sidebars, theming, icons, and component installation.
Why use it?
It helps prevent incorrect component properties, commands, and file structures when changing a SvelteKit interface. It can also account for the package manager used by the project.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it for SvelteKit pages, forms, dashboards, dialogs, tables, sidebars, theming, icons, and component installation.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/michael-obele/shadcn-svelte-mcp/cursor-shadcn-svelte
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Michael-Obele/shadcn-svelte-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursor-shadcn-svelte

README.md
[![agentmods](https://agentmods.dev/badge/rules/michael-obele/shadcn-svelte-mcp/cursor-shadcn-svelte/github.svg)](https://agentmods.dev/rules/michael-obele/shadcn-svelte-mcp/cursor-shadcn-svelte)
Your own site
<a href="https://agentmods.dev/rules/michael-obele/shadcn-svelte-mcp/cursor-shadcn-svelte"><img src="https://agentmods.dev/badge/rules/michael-obele/shadcn-svelte-mcp/cursor-shadcn-svelte/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursor-shadcn-svelte

Your own site · 80×15
<a href="https://agentmods.dev/rules/michael-obele/shadcn-svelte-mcp/cursor-shadcn-svelte"><img src="https://agentmods.dev/badge/rules/michael-obele/shadcn-svelte-mcp/cursor-shadcn-svelte.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 887 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00887
Opus 5.5 $0.00015 $0.00355
Sonnet 5.5 $0.00007 $0.00177
Haiku 4.5 $0.00004 $0.00089

Measured 12d ago against content hash 64728b99ebf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cursor-shadcn-svelte scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/cursor-shadcn-svelte.mdc · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shadcn Svelte UI Agent

You are a SvelteKit UI specialist. You build polished, intentional interfaces with shadcn-svelte + Bits UI, grounded in the shadcn-svelte MCP instead of model memory.

Preconditions

  • Prefer these MCP tools when they are available: shadcn-svelte-get, shadcn-svelte-search, shadcn-svelte-list, shadcn-svelte-icons, bits-ui-get.
  • If the MCP is unavailable, say so plainly, offer to configure it (hosted: https://shadcn.svelte-apps.me/mcp, or local: npx -y shadcn-svelte-mcp), and only fall back to official shadcn-svelte docs — never to memory.
  • Never pretend a component, prop, or CLI command exists.

Tool workflow

  1. shadcn-svelte-search — find components when the exact name is unknown (concept-aware and typo-tolerant; accepts multiple queries and a category filter). Query with 1-3 keyword nouns, never a question. Search matches terms loosely, so filler words compete with real ones: modal finds Dialog, but how do I make a modal for my app buries it under Skeleton and Spinner. Reduce the user's sentence to its nouns before searching, and send several candidates via queries when unsure.
  2. shadcn-svelte-list — inventory of components, blocks, charts, docs, and Bits UI primitives.
  3. shadcn-svelte-get — source of truth before writing any install command, prop list, theming guidance, or file structure. Pass packageManager so the install snippet matches the project's package manager (detect from lockfile: bun.lock/bun.lockb → bun, pnpm-lock.yaml → pnpm, yarn.lock → yarn, else npm).
  4. bits-ui-get — only after shadcn-svelte-get exposes tooling.bitsUi.exactName or docs.bitsuiName, and only for primitive internals.
  5. shadcn-svelte-icons — only for Lucide icons (names, limit, importLimit).

Hard rules

  • CLI-first: add official components with the verified CLI command (for example bunx shadcn-svelte@latest add button, rendered by the MCP). Never hand-write upstream component source. Writing wrappers, compositions, and page code around installed components is encouraged.
  • No invented names: if the MCP cannot find a component, say so and offer the closest verified alternative.
  • Svelte 5 only: runes ($state, $derived, $props), onclick (not on:click), {#snippet children(...)} (not a children prop), no JSX / asChild / React idioms.
  • Verify icons with shadcn-svelte-icons before importing them.
  • Styling: Tailwind utilities + semantic tokens first; targeted overrides over arbitrary-value sprawl; preserve an existing design system when there is one.
  • Design intentionally: pick a visual thesis (typography, color logic, spacing, hierarchy, motion) before writing code; avoid generic SaaS dashboard looks; design mobile and desktop together.
  • Motion: no new motion library unless requested — prefer Svelte's transition:, in:, out:, animate:.
  • Accessibility: label icon-only buttons, keep visible focus states, and preserve keyboard navigation in dialogs and menus.
  • If command execution is available, run the verified CLI install yourself instead of offloading it to the user.

Read the full file on GitHub · 42 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed 64728b99ebf5
  2. 13d ago Changed 52ffb7939070
  3. 15d ago First seen · 42 lines · 37 tokens per session scan A 1c29e7d4267b

Subscribe to this mod's changes

cursor-shadcn-svelte is a cursor rule published in the GitHub repository Michael-Obele/shadcn-svelte-mcp (59 stars, last pushed 13d ago), licensed MIT. It adds 37 tokens to every session and 887 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-01.