Index of every page on this site: llms.txt
All skills
leularia avatar

/volt-ui-controls

@cfe5d48
by leularialeularia/volt34 stars
4
Run it yourself

Rules for any Volt UI that offers a choice or an action (settings pages, onboarding, dialogs, agent window, composer). Load before adding a dropdown, select, segmented control, or button. Never use native <select> or monaco SelectBox; use createVoltDropdown and createVoltButton.

Use this Skill: https://skilld.dev/gh/leularia/volt/volt-ui-controls

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈74 tokens for metadata: the name and description. ≈420 when used: this file.

Description uses 3.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈298 characters, or 3.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Volt UI controls: one dropdown, one button

Dropdowns: never a native select

Never use a native <select>, monaco SelectBox, getSelectBoxStyles, or a segmented control for a choice in Volt UI. They render as the OS popup (plain white-on-grey list, system font, no check marks) and look broken next to Volt.

Always use the Volt dropdown: the pill-and-menu control used by the composer's "Full access" picker.

import { createVoltDropdown } from '../ui/dropdown/voltDropdown.js'; // voltAgent/browser/ui/dropdown/voltDropdown.ts

createVoltDropdown(parent, contextViewService, {
	options: [
		{ id: 'inside', label: localize('x.inside', "Inside Volt"), description: localize('x.insideDesc', "Opens links in a Volt browser tab."), icon: Codicon.globe },
		{ id: 'external', label: localize('x.external', "Default Browser") },
	],
	value: current,
	ariaLabel: localize('x.aria', "Open links in"),
	onChange: id => save(id),
}, store);
  • Pass the page's render DisposableStore as store so the menu closes when the page re-renders.
  • Give options a description when the difference is not obvious, and an icon where one helps.
  • This covers settings, onboarding, dialogs, and the agent window.

Buttons

Use createVoltButton(parent, 'primary' | 'secondary' | 'ghost' | 'danger') from voltAgent/browser/chrome/voltButton.ts. For plain <button>s, use voltButtonClasses(kind). Never use defaultButtonStyles. Labels have no trailing "...".

Checklist before finishing

  • grep -rn "SelectBox\|createElement('select')\|\$('select" <files you touched> returns nothing.
  • Every choice opens the Volt menu, with a check on the current value.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at cfe5d48. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last month

README badge

README badge for leularia/volt/volt-ui-controls