Removes generated-looking code from UI SDK diffs: redundant comments, filler JSDoc, defensive checks, one-caller helpers, and vague names without changing behavior.
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.
Scope is the diff (git diff against the base) unless you're given files. Behavior never changes: the same tests pass before and after, and nothing public is renamed.
Each pattern, with what replaces it.
A comment that says what the next line does. Delete it. If the line isn't clear without it, rename something.
// Close the popup when Escape is pressed.
if (event.key === "Escape") close()
A comment on every declaration. Most constants, fields and functions need none: the name and the type say what they are. Delete each one that doesn't stop a reader from getting the code wrong.
A comment that explains the design. What a value holds, where it's kept, which attribute it lands on, who reads it. The code says that. Keep the one fact it can't show, in a line, or delete the comment.
// Before
// The site's color scheme, shown on <html> as `data-color-scheme`, which the
// stylesheet's colors follow. It's kept under "theme", the key the site used
// before, so readers keep what they chose.
const colorScheme = createColorScheme({
storage: createLocalStorage("theme"),
global: true,
})
// After
// "theme" is the key the site used before, so readers keep their choice.
const colorScheme = createColorScheme({
storage: createLocalStorage("theme"),
global: true,
})
A comment longer than three lines. Cut it to the reason. An explanation that needs more goes in the docs page, a test title or contributing/. pnpm lint flags it (comment-length).
A comment that narrates history or the task. "Now we", "Updated to", "Fixed the bug where", "As requested". Delete it. Git holds the history.
A section banner. // ---- Helpers ----, // State. Delete it. Split the file if it needs signposts.
JSDoc that repeats the name. /** The value. */ value. Say what the reader can't see: the default, the unit, when it's called, what happens on change. pnpm lint catches field docs that only repeat the name; write the rest the same way.
A hedge or a sales word in a comment or a doc. "Robust", "seamless", "comprehensive", "simply", "just", "easily", "ensure", "leverage", "utilize", "note that", "it's important to". Cut the word; if nothing is left, cut the comment.
A defensive check the types already rule out. if (!items) return on items: Item[], ?? [] on a value that's never undefined, try around code that can't throw. Delete it. Narrow unknown at a boundary instead.
A cast or ! with no reason. Make the type right, or say why in a comment.
A one-caller helper, or a wrapper that only renames. Inline it, unless its name explains something the call can't.
A name that says nothing. data, result, item2, handleClick2, temp, flag, isValid2. Name what it is: highlightedItem, isOpen, onTriggerPress.
An option nobody passes, a parameter with one value, a config object for one setting. Delete it.
Logs, probes and commented-out code. Delete them.
In examples, any comment at all. Only tool directives stay (svelte-ignore, eslint-disable, @__PURE__).
MenuTrigger)".pnpm lint, pnpm format, pnpm typecheck and the unit tests for the packages you touched. Check exit codes.scripts/check-code.mjs or scripts/check-comments.mjs.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/vercel-ui-sdk:ui-sdk-unslopfrom vercel-ui-sdk
vercel-ui-sdk@kheskills is listed by hktitan/skills — review the source before installing
npx claudepluginhub hktitan/skills --plugin vercel-ui-sdk5 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-write-codeWrites and edits ui-sdk code (core, the React, Vue, Svelte, Solid, web component and Angular adapters, examples, specs and scripts) the way an expert in that framework would, then checks it with the linters, the framework expert's checklist and a cold read. Use whenever you write or change code in this repo, before you call the change done./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.Other plugins' skills for the same job