Agent skill

Ktui Select

by keenthemes in keenthemes/ktui

KtUI Select (KTSelect) — rich searchable multi-select dropdown replacing native select.

MITAuto-check passedDevelopment

Install Ktui Select

skills CLI
$ npx skills add keenthemes/ktui --skill ktui-select -a claude-code

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

GitHub CLI
$ gh skill install keenthemes/ktui ktui-select --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/keenthemes/ktui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ktui-select .claude/skills/ktui-select && 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
ktui-select
GitHub stars
151
Token cost
~1.9k tokens
SKILL.md length
492 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

KtUI Select (KTSelect) — rich searchable multi-select dropdown replacing native select.

  • Works in 12 steps: Basic Usage → Key Features → Global Config → …
  • Customizing Select components
  • SKILL.md covers 1. Basic Usage, 2. Key Features, 3. Global Config and 4. Programmatic API, plus 9 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ktui Select is an agent skill from keenthemes/ktui. KtUI Select (KTSelect) — rich searchable multi-select dropdown replacing native select. Tags, combobox, remote data, pagination, select-all, events, and programmatic API. Use this skill when building, debugging, or customizing Select components.

Its SKILL.md is about 1.9k 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 Development. The repository describes itself as: Open-source collection of customizable UI components for Tailwind CSS and vanilla JavaScript. The licence is MIT.

When your agent uses it

  • Customizing Select components

Example prompts

  • “/ktui-select”

Workflow steps

12 steps, taken from the step headings in SKILL.md.

  1. Basic Usage
  2. Key Features
  3. Global Config
  4. Programmatic API
  5. Events
  6. Remote Data
  7. Tags Mode
  8. Combobox Mode
  9. Select All
  10. Keyboard Navigation
  11. Architecture
  12. Common Pitfalls

What it can do on your machine

Read from SKILL.md and the folder at commit 74a8e60. 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 (its code samples are typescript and html).

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

  • Network

    Links to these hosts (documentation or services it may open):

    • ktui.io

    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

Ktui Select loads about 1.9k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 492 words of instructions outside code blocks.

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

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 keenthemes/ktui at commit 74a8e60, republished under its MIT licence (© keenthemes). 492 words, ~1,928 tokens.

Download SKILL.mdSave it as .claude/skills/ktui-select/SKILL.md (or your agent's skills folder).
name
ktui-select
description
KtUI Select (KTSelect) — rich searchable multi-select dropdown replacing native select. Tags, combobox, remote data, pagination, select-all, events, and programmatic API. Use this skill when building, debugging, or customizing Select components.

KTSelect — AI Agent Reference

Full reference for the Select component in KtUI. Package: @keenthemes/ktui. Class: KTSelect. Root attribute: data-kt-select.

Always prefer ktui.io/docs/select docs and examples over guessing markup or options.


1. Basic Usage

html
<select data-kt-select="true" data-kt-select-enable-search="true">
  <option value="">Select...</option>
  <option value="1">Option 1</option>
  <option value="2">Option 2</option>
</select>
ts
import { KTSelect } from '@keenthemes/ktui';

const select = KTSelect.getInstance(el);

2. Key Features

FeatureAttributeDescription
Searchdata-kt-select-enable-search="true"Adds search input in dropdown
Multi-selectmultiple attribute on <select>Allow multiple selections
Tags modedata-kt-select-tags="true"Shows selected items as removable tags
Comboboxdata-kt-select-combobox="true"Allows free text input
Remote datadata-kt-select-remote="true"Load options from API
Remote URLdata-kt-select-remote-url="..."API endpoint for remote data
Paginationdata-kt-select-pagination="true"Adds "Load More" button
Placeholderdata-kt-select-placeholder="Choose..."Placeholder text
Select alldata-kt-select-select-all="true"Adds "Select All" button (multi-mode)
Close on Enterdata-kt-select-close-on-enter="true"Close dropdown when Enter pressed
Close on other opendata-kt-select-close-on-other-open="true"Close when another select opens
Search autofocusdata-kt-select-search-autofocus="true"Focus search input on open
Dispatch global eventsdata-kt-select-dispatch-global-events="true"Dispatch events on document

3. Global Config

Set defaults for all future instances:

ts
KTSelect.config({
  enableSearch: true,
  searchPlaceholder: 'Type to search...',
  dropdownZindex: 9999,
  height: 300,
  closeOnEnter: true,
  closeOnOtherOpen: true,
  searchAutofocus: true,
  dispatchGlobalEvents: true,
});

4. Programmatic API

ts
const select = KTSelect.getInstance(el);

// Dropdown control
select.openDropdown();
select.closeDropdown();
select.toggleSelection(value);

// Selection
select.getSelectedOptions();      // array of selected option objects
select.setSelectedOptions([opt]); // set selection programmatically
select.clearSelection();          // clear all

// Lifecycle
select.dispose();
Instance management
Static methodReturns
KTSelect.getInstance(el)Existing instance or null
KTSelect.getOrCreateInstance(el, config?)Existing or new instance
KTSelect.init()Scans DOM, creates instances
KTSelect.config(opts)Set global defaults

5. Events

Events fire through dual channel:

  1. Internal callbacks (.on()) — bare name
  2. DOM CustomEvents — dispatched on both element and document
Confirmed events (from source)
EventWhen
showDropdown opening
closeDropdown closing
changeSelection changed
enabledComponent enabled
disabledComponent disabled
updatedOptions updated
updateErrorOptions update failed
reloadStartRemote reload started
reloadCompleteRemote reload finished
reloadErrorRemote reload failed
refreshedOptions refreshed
refreshErrorOptions refresh failed
Namespaced events on document
ts
document.addEventListener('kt-select:change', (e) => {
  console.log(e.detail.instance.getSelectedOptions());
});

document.addEventListener('kt-select:show', (e) => {
  console.log('Select opened', e.detail.element);
});
Element-level events
ts
el.addEventListener('change', (e) => {
  console.log(e.detail.instance.getSelectedOptions());
});
Event detail shape
ts
{
  instance: KTSelect,   // the select instance
  element: HTMLElement,  // the root element
  payload: { ... }       // event-specific data
}

6. Remote Data

html
<select data-kt-select="true"
        data-kt-select-remote="true"
        data-kt-select-remote-url="https://api.example.com/options"
        data-kt-select-pagination="true">
</select>

The remote provider fetches options from the URL. Use pagination: true for paginated APIs.


7. Tags Mode

html
<select data-kt-select="true"
        data-kt-select-tags="true"
        multiple>
  <option value="1">Tag 1</option>
  <option value="2">Tag 2</option>
  <option value="3">Tag 3</option>
</select>

Selected items appear as removable tag chips. Works with search and remote data.


8. Combobox Mode

html
<input type="text"
       data-kt-select="true"
       data-kt-select-combobox="true"
       data-kt-select-remote="true"
       data-kt-select-remote-url="https://api.example.com/search" />

Allows free text input alongside selecting from dropdown options.


Show full SKILL.md (195 more words)Show less

9. Select All

html
<select data-kt-select="true"
        data-kt-select-select-all="true"
        data-kt-select-enable-search="true"
        multiple>
  <option value="1">Option 1</option>
  <option value="2">Option 2</option>
  <option value="3">Option 3</option>
</select>

Adds a "Select All" button at the top of the dropdown in multi-select mode.


10. Keyboard Navigation

KeyAction
EnterSelect focused option, close dropdown (if closeOnEnter enabled)
ArrowDownFocus next option
ArrowUpFocus previous option
EscapeClose dropdown
BackspaceRemove last tag (tags mode)

11. Architecture

Source: src/components/select/

FilePurpose
select.tsMain class — openDropdown(), closeDropdown(), clearSelection(), dispose()
dropdown.tsDropdown positioning and visibility
search.tsSearch input filtering
tags.tsTags mode rendering and removal
combobox.tsFree text input mode
remote.tsRemote data provider
option.tsOption element management
templates.tsHTML template generation
config.tsDefault config constants
utils.tsShared utilities
types.tsType definitions
index.tsBarrel exports

12. Common Pitfalls

ProblemCauseFix
Select not searchableMissing enable-search attributeAdd data-kt-select-enable-search="true"
No tags shownMissing tags attributeAdd data-kt-select-tags="true"
Remote not loadingMissing remote attributesAdd both data-kt-select-remote="true" and data-kt-select-remote-url="..."
Dropdown wrong positionContainer overflow hiddenUse data-kt-dropdown-container="body" to portal
Select All not appearingNot in multi-modeAdd multiple attribute to <select>
Events not firing on documentdispatchGlobalEvents disabledEnable via config or attribute
shown/hide/hidden events not workingWrong event namesUse show, close, change (actual events from source)

13. Documentation

© keenthemes, MIT. 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 skills/ktui-select of keenthemes/ktui.

Open the folder on GitHubat commit 74a8e60

Compare with similar skills

Ktui Select 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.

Ktui Select compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ktui Select this skillkeenthemes/ktui151—~1.9kAutomated safety check: PassMIT
Vercel Composition Patternssupabase/supabase111k58 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 58 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from keenthemes/ktui

  • Ktui Datatable

    keenthemes/ktui

    KtUI DataTable (KTDataTable) — local/remote data, sorting, filtering, pagination, checkbox selection, state persistence, fixed layouts, event system, and architecture.

    151 GitHub stars~2.6k tokensUpdated 3 mo ago
    Auto-check passed
  • Ktui Install

    keenthemes/ktui

    Install, configure, and initialize KtUI (Keenthemes Tailwind UI) in any project.

    151 GitHub stars~994 tokensUpdated 3 mo ago
    Auto-check passed
  • Ktui

    keenthemes/ktui

    Comprehensive guide to KtUI (Keenthemes Tailwind UI) — components, theming, initialization, data-attribute API, event system, helpers, and common patterns.

    151 GitHub stars~5.4k tokensUpdated 3 mo ago
    Auto-check passed

Categories

Questions about Ktui Select

What does Ktui Select do?

KtUI Select (KTSelect) — rich searchable multi-select dropdown replacing native select. Ktui Select is an agent skill from keenthemes/ktui. KtUI Select (KTSelect) — rich searchable multi-select dropdown replacing native select.

When should I use Ktui Select?

Ktui Select fits situations like: customizing Select components.

How do I install Ktui Select in Claude Code?

Run `npx skills add keenthemes/ktui --skill ktui-select -a claude-code`. Or copy the skill folder (skills/ktui-select in keenthemes/ktui) into .claude/skills/ktui-select in your project. Claude Code loads it when a task matches its description.

How do I install Ktui Select in Codex?

Run `npx skills add keenthemes/ktui --skill ktui-select -a codex`. Or copy the skill folder (skills/ktui-select in keenthemes/ktui) into .agents/skills/ktui-select in your project. Codex loads it when a task matches its description.

Can I use Ktui Select 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 keenthemes/ktui --skill ktui-select -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ktui-select, .gemini/skills/ktui-select, .github/skills/ktui-select and .opencode/skills/ktui-select in your project.

What does Ktui Select need to run?

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

Does Ktui Select access the network?

SKILL.md names 1 domain. As links in the text: ktui.io. This is read from the text; nothing was executed.

Is Ktui Select 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 Ktui Select use?

Ktui Select is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ktui Select use?

About 1.9k tokens (SKILL.md is roughly 7.7k 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 Ktui Select?

Skills that share tags, products or a category with Ktui Select: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 297k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ktui Select?

keenthemes (a GitHub organization) maintains it in keenthemes/ktui, which has 151 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on June 17, 2026.

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