Writes and edits UI SDK code across React, Vue, Svelte, Solid, Angular, and web components, following framework-specific expert patterns, linters, and checklists.
Ships in vercel-ui-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The bar: an expert in the framework reads the file and says "this is how I'd write it", and anyone else reads it top to bottom without stopping. Readable first, then fast, never clever.
Every piece of code here has a twin that already does it well. Open it before you write a line, and copy its shape, names and order.
| You're writing | Start from |
|---|---|
| A core component | packages/core/src/components/tabs/tabs.ts, or menu/ once it passes about 400 lines (menu.ts, menu-api.ts, menu-parts.ts) |
| A popup | packages/core/src/components/popover/popover.ts and its adapters, on createPopup in foundation/popups/ |
| A React, Vue or Solid part | The same component's file in packages/<framework>/src/, on createParts |
| A Svelte part | packages/svelte/src/tabs/ |
| A web component | packages/web/src/tabs.ts, on createParts |
| An Angular part | packages/angular/src/tabs.ts, on usePrimitive and usePart |
| An example | The same example in another framework: examples/components/<name>/<framework>/ |
| A spec | tests/specs/tabs*.spec.ts |
If two twins disagree, the shape is wrong in one of them. Say so instead of picking one.
Copy a twin's shape, not its comments. Older files carry more comments than the rules below allow.
Read the expert's knowledge file for every framework you touch: .agents/experts/<framework>/knowledge.md, part 1 and "Common mistakes to flag", and its decisions.md. It's pinned to the versions this repo installs, so trust it over memory. Write in the current idiom of that version:
forwardRef, ref as a prop, no effect where an event handler or a derived value belongs, code the React Compiler compiles without a bailout.<script setup lang="ts">, v-model on parts, defineModel when a component you write takes one, typed defineProps and defineSlots, no options API.$state, $derived, $props, $bindable), snippets, onclick attributes, attachments. No $:, on:, <slot> or createEventDispatcher. Props typed with an interface Props. Outside packages/svelte, declaration tags ({const x = $derived(...)}) instead of {@const}.composed and don't bubble (listen with { capture: true }), and the user's markup stays in light DOM.input() and output(), inject() in field initializers, computed over effect, @if and @for in templates, DOM reads after render. No @Input(), EventEmitter, NgModule or *ngIf.The rules in contributing/code.md hold everywhere. The ones that make code look generated when missed:
<Name> root, <Name><Part> per slot, render to change the element, never as. Same names and the same props in every framework.aria-* attribute is in the wrong layer.Run each and check the exit code, not the output:
pnpm lint
pnpm format
pnpm typecheck
pnpm --filter <package> test
pnpm --filter examples build # when you touched examples
pnpm test:pr # the specs your change reaches
Then run each framework's own lint rules on the files you touched: npx eslint <files> (pnpm lint:idioms runs them on the whole repo, as CI does). Fix what each one reports and run it again until all pass. Older errors are listed in eslint-suppressions.json; when you fix one, run pnpm lint:idioms --prune-suppressions.
Read the whole diff as the framework's expert would, using the "Review checklist" in each knowledge.md you loaded, and as a teammate who has never seen it:
Run ui-sdk-unslop on your diff. The change isn't done until it has. Before merging a change to an adapter, core, the specs, examples or framework docs, run ui-sdk-expert-review.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/ui-sdkBuilds interfaces with ui-sdk in React, Vue, Svelte, Solid or web components. Covers choosing and composing its components, building a component or behavior it doesn't ship from @ui-sdk/core (like a stepper, splitter, transfer list or emoji picker), making the interface usable by agents through createAgent, agent tools and WebMCP, and testing keyboard, focus, ARIA, server rendering and right to left, including writing tests for an existing component. Use whenever a project has @ui-sdk/* installed or the user mentions ui-sdk./ui-sdk-expert-reviewReviews a change with ui-sdk's framework experts (react, vue, svelte, solid, web, angular), only the ones the change reaches, each from its last reviewed commit. Use before merging a branch that touches an adapter, core, specs, examples or framework docs, or when asked for an expert review. Pass a base ref, framework names, or nothing./ui-sdk-unslopRemoves generated-looking code from a ui-sdk diff or files, like comments that restate the code, filler JSDoc, defensive checks for impossible cases, one-caller helpers and vague names, without changing behavior. Use as the last step of any change, or when asked to clean up, trim comments or remove slop./ui-sdk-write-docsWrite or review ui-sdk website documentation in apps/docs/content/docs, including Core, framework, component, and agent guides. Use for new pages, prose edits, example explanations, and documentation reviews, following the current site's writing style./vercel-ui-sdk:ui-sdk-write-codefrom vercel-ui-sdk
vercel-ui-sdk@kheskills is listed by hktitan/skills — review the source before installing
npx claudepluginhub hktitan/skills --plugin vercel-ui-sdkOther plugins' skills for the same job