Agent skill

Vscode Elements Webviews

by forcedotcom in forcedotcom/salesforcedx-vscode

Integrate @vscode-elements/elements controls into Lit webviews.

BSD-3-ClauseAuto-check passedFrontend & Design

Install Vscode Elements Webviews

skills CLI
$ npx skills add forcedotcom/salesforcedx-vscode --skill vscode-elements-webviews -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/salesforcedx-vscode vscode-elements-webviews --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/salesforcedx-vscode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/vscode-elements-webviews .claude/skills/vscode-elements-webviews && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
vscode-elements-webviews
GitHub stars
1k
Token cost
~593 tokens
SKILL.md length
238 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Integrate @vscode-elements/elements controls into Lit webviews.

  • Changing VSCode Elements selects
  • SKILL.md covers Imports and controlled state, Form association, Accessibility and Styling
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Form association

What it does

Vscode Elements Webviews is an agent skill from forcedotcom/salesforcedx-vscode. Integrate @vscode-elements/elements controls into Lit webviews. Use when adding or changing VSCode Elements selects, text fields, checkboxes, buttons, form association, controlled values, accessibility state, or VS Code theme styling.

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Accessibility. It works with Visual Studio Code. The repository describes itself as: Salesforce Extensions for VS Code. The licence is BSD-3-Clause.

When your agent uses it

  • Changing VSCode Elements selects
  • Form association
  • Controlled values
  • Accessibility state

Example prompts

  • “/vscode-elements-webviews”

What it can do on your machine

Read from SKILL.md and the folder at commit f7bb6fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Vscode Elements Webviews loads about 593 tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 238 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~593

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from forcedotcom/salesforcedx-vscode at commit f7bb6fe, republished under its BSD-3-Clause licence (© forcedotcom). 238 words, ~593 tokens.

Download SKILL.mdSave it as .claude/skills/vscode-elements-webviews/SKILL.md (or your agent's skills folder).
name
vscode-elements-webviews
description
Integrate @vscode-elements/elements controls into Lit webviews. Use when adding or changing VSCode Elements selects, text fields, checkboxes, buttons, form association, controlled values, accessibility state, or VS Code theme styling.
review
never

VSCode Elements in Lit webviews

Wrapper component = adapter between application state and the VSCode Elements public API.

Imports and controlled state

  • Concrete module imports: @vscode-elements/elements/dist/<element>/index.js. Class import when narrowing currentTarget; side-effect import when only registration is needed.
  • Controlled state through public .value, .checked, .invalid, and ?disabled properties.
  • change, input, and click events translated to schema-backed application actions; currentTarget narrowed with the concrete element class.
  • Slotted option changes clearing a select's pending value: await nested updateComplete in updated(), then reapply the controlled value.
  • No private control fields.

Form association

VSCode Elements inputs use ElementInternals; a child Lit shadow root can block discovery of a parent-rendered form.

  • Outer-form participation required: createRenderRoot() returns this, with rationale comment.
  • Otherwise: normal shadow DOM. Light DOM is a targeted interop choice, not a component default.
  • Real-browser assertion for the resulting control.form relationship.

Accessibility

  • Host-supplied localized labels; semantic <label for> plus the control's public label where required.
  • Loading, invalid, disabled, empty, and no-match states via accessible attributes or live status text—not color alone.
  • Public host attributes first. When the accessible node is internal and host attributes do not propagate: smallest possible wrapper-local sync adapter, after nested updateComplete.
  • Shadow-root knowledge confined to that adapter and targeted low-level test helpers.

Styling

  • Public --vscode-* tokens for colors, borders, focus, and typography; spacing consistent with VS Code controls.
  • No assumption that styles cross a VSCode Elements shadow boundary. Third-party content themed separately with the same tokens.

Examples: packages/soql-builder-ui/src/components/soqlFromElement.ts, packages/soql-builder-ui/src/components/soqlFieldsElement.ts.

© forcedotcom, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/vscode-elements-webviews of forcedotcom/salesforcedx-vscode.

Open the folder on GitHubat commit f7bb6fe

Compare with similar skills

Vscode Elements Webviews next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Vscode Elements Webviews compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Vscode Elements Webviews this skillforcedotcom/salesforcedx-vscode1k—~593Automated safety check: PassBSD-3-Clause
Accessibility Aria Expertmicrosoft/vscode-cosmosdb200—~3.2kAutomated safety check: PassMIT
Insiders A11y TrackerCommunity-Access/accessibility-agents421—~1.6kAutomated safety check: PassMIT
Web Interface Guidelines Reviewervercel-labs/openreview1.7k98 repos~308Automated safety check: PassNone
Accessibility Reviewmarkmead/hyperui12k1 repos~1.1kAutomated safety check: PassMIT
Web Animation DesignbaptisteArno/typebot.io11k2 repos~2.7kAutomated safety check: PassCustom licence

Similar skills

  • Accessibility Aria Expert

    microsoft/vscode-cosmosdb

    Official

    Detects and fixes accessibility issues in React/Fluent UI webviews.

    200 GitHub stars~3.2k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Insiders A11y Tracker

    Community-Access/accessibility-agents

    Track accessibility changes in VS Code and other repos you follow.

    421 GitHub stars~1.6k tokensUpdated 14 days ago
    Frontend & DesignAuto-check passed
  • Web Interface Guidelines Reviewer

    vercel-labs/openreview

    Official

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my…

    1.7k GitHub starsUsed in 98 repos~308 tokens
    Frontend & DesignAuto-check passed
  • Accessibility Review

    markmead/hyperui

    Run a WCAG 2.1 AA accessibility audit on a design or page. An agent skill from markmead/hyperui.

    12k GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Web Animation Design

    baptisteArno/typebot.io

    Guides easing, timing and animation choices for UI motion, based on a web animation course, and reviews existing animations in a before-and-after table.

    11k GitHub starsUsed in 2 repos~2.7k tokens
    Frontend & DesignAuto-check passed
  • Accessibility Fixer

    ibelick/ui-skills

    Audits and fixes HTML accessibility problems such as ARIA labels, keyboard navigation, focus management, contrast and form errors with minimal changes.

    9.4k GitHub starsUsed in 4 repos~1.2k tokens
    Frontend & DesignAuto-check passed

More from forcedotcom/salesforcedx-vscode

All 37 skills in this repo
  • Command UI

    forcedotcom/salesforcedx-vscode

    Command palette, CodeLens, context menus, package.nls titles, and NotificationModeService.

    1k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Services Extension Consumption

    forcedotcom/salesforcedx-vscode

    Consume the salesforcedx-vscode-services extension API. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Changelog

    forcedotcom/salesforcedx-vscode

    Polish the automated CHANGELOG on develop before the next stable build.

    1k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Core Extension API

    forcedotcom/salesforcedx-vscode

    Public API exported by salesforcedx-vscode-core activate(). An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~842 tokensUpdated today
    Auto-check passed
  • Drivable Vscode

    forcedotcom/salesforcedx-vscode

    Operate a real VS Code instance through drivable-vscode. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Effect Best Practices

    forcedotcom/salesforcedx-vscode

    Enforces Effect-TS patterns for services, errors, layers, atoms, and Effect.pipe composition.

    1k GitHub stars~6.2k tokensUpdated today
    Auto-check passed

Questions about Vscode Elements Webviews

What does Vscode Elements Webviews do?

Integrate @vscode-elements/elements controls into Lit webviews. Vscode Elements Webviews is an agent skill from forcedotcom/salesforcedx-vscode. Integrate @vscode-elements/elements controls into Lit webviews.

When should I use Vscode Elements Webviews?

Vscode Elements Webviews fits situations like: changing VSCode Elements selects; form association; controlled values; accessibility state.

How do I install Vscode Elements Webviews in Claude Code?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill vscode-elements-webviews -a claude-code`. Or copy the skill folder (.claude/skills/vscode-elements-webviews in forcedotcom/salesforcedx-vscode) into .claude/skills/vscode-elements-webviews in your project. Claude Code loads it when a task matches its description.

How do I install Vscode Elements Webviews in Codex?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill vscode-elements-webviews -a codex`. Or copy the skill folder (.claude/skills/vscode-elements-webviews in forcedotcom/salesforcedx-vscode) into .agents/skills/vscode-elements-webviews in your project. Codex loads it when a task matches its description.

Can I use Vscode Elements Webviews in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/salesforcedx-vscode --skill vscode-elements-webviews -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vscode-elements-webviews, .gemini/skills/vscode-elements-webviews, .github/skills/vscode-elements-webviews and .opencode/skills/vscode-elements-webviews in your project.

What does Vscode Elements Webviews need to run?

SKILL.md names no scripts, command-line tools or credentials: Vscode Elements Webviews is instructions for the agent only.

Does Vscode Elements Webviews access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Vscode Elements Webviews safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Vscode Elements Webviews use?

Vscode Elements Webviews is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Vscode Elements Webviews use?

About 593 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Vscode Elements Webviews?

Skills that share tags, products or a category with Vscode Elements Webviews: Accessibility Aria Expert (microsoft/vscode-cosmosdb, 200 stars), Insiders A11y Tracker (Community-Access/accessibility-agents, 421 stars), Web Interface Guidelines Reviewer (vercel-labs/openreview, 1.7k stars) and Accessibility Review (markmead/hyperui, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Vscode Elements Webviews?

forcedotcom (a GitHub organization) maintains it in forcedotcom/salesforcedx-vscode, which has 1,035 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 7, 2026.

Source: forcedotcom/salesforcedx-vscode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.