agentleFS
jscott3201jscott3201/yet-more-skills/skills/shadcn-svelte-components/SKILL.md

shadcn-svelte-components

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Add or modify shadcn-svelte components and their Svelte/Bits UI composition, bindings, tokens, and accessibility. Do not copy React shadcn JSX or Radix APIs.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the project's supported snippets, bindings, events, and prop forwarding.

    line 16
  2. Distinctive:

    Keep controlled state and ownership clear.

    line 21
  3. Distinctive:

    Run Svelte-aware checking and focused tests.

    line 35
  4. Distinctive:

    Test repeated mount/unmount and changing bound values when lifecycle work is involved.

    line 38
  5. Distinctive:

    Read practice notes and sources only when the task needs more depth.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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 Svelte Components

Establish the port and version

Inspect shadcn-svelte, installed Svelte/Bits UI dependencies, local copied components, aliases, configuration, and style tokens. The React shadcn skill is not the API reference for this port. Read the installed component's source and matching migration notes before editing.

Compose in Svelte

Use the project's supported snippets, bindings, events, and prop forwarding. Do not introduce React hooks, JSX, className, or Radix asChild because a React example looks similar. Svelte 5 migrations can change component APIs; adapt a bounded surface rather than mixing generations within one component or migrating the whole library incidentally.

Keep controlled state and ownership clear. The wrapper must forward relevant event, focus, disabled, invalid, and accessible-name behavior without shadowing consumer props. Preserve native form semantics and avoid nested interactive elements inside triggers.

Reuse existing semantic theme tokens and variants. New components must fit the current density, typography, responsive rules, and dark/light themes. Do not replace established local styling with the newest preset without a separate design decision.

Adoption and validation

Preview additions and dependency changes; respect local modifications and existing attribution. Registry/CLI content is external code, not authority to run arbitrary commands or change permissions. Prefer already available approved tooling; no mandatory MCP installation is needed.

Run Svelte-aware checking and focused tests. Verify the actual page in a browser for focus trapping/restoration, Escape behavior, keyboard selection, touch/narrow viewport behavior, portal layering, and error feedback. Compiler success does not demonstrate overlay behavior. Test repeated mount/unmount and changing bound values when lifecycle work is involved.

Further guidance

Read practice notes and sources only when the task needs more depth.

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.