kernel-ui-elements

kernel-ui-elements is a skill for Claude Code, Codex from kemiljk/kernel-ui. It costs 54 tokens per session (1,280 once invoked), scanned A, original, MIT.

A guide for building interfaces with Kernel UI custom HTML elements, such as buttons and checkboxes, without requiring React. It covers plain HTML and frameworks including Astro, Vue, and Svelte.

In plain words
What is it for?
Use it to create screens with @kernelui-lib/elements, including setup, component selection, attributes, and event handling.
Why use it?
It explains how to use the elements, their attributes, and their DOM properties without guessing how the custom tags behave.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create screens with @kernelui-lib/elements, including setup, component selection, attributes, and event handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kemiljk/kernel-ui/kernel-ui-elements
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add kemiljk/kernel-ui --skill kernel-ui-elements
Clone the repo
git clone --depth 1 https://github.com/kemiljk/kernel-ui

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kernel-ui-elements

README.md
[![agentmods](https://agentmods.dev/badge/skills/kemiljk/kernel-ui/kernel-ui-elements/github.svg)](https://agentmods.dev/skills/kemiljk/kernel-ui/kernel-ui-elements)
Your own site
<a href="https://agentmods.dev/skills/kemiljk/kernel-ui/kernel-ui-elements"><img src="https://agentmods.dev/badge/skills/kemiljk/kernel-ui/kernel-ui-elements/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kernel-ui-elements

Your own site · 80×15
<a href="https://agentmods.dev/skills/kemiljk/kernel-ui/kernel-ui-elements"><img src="https://agentmods.dev/badge/skills/kemiljk/kernel-ui/kernel-ui-elements.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,280 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01280
Opus 5.5 $0.00022 $0.00512
Sonnet 5.5 $0.00011 $0.00256
Haiku 4.5 $0.00005 $0.00128

Measured yesterday against content hash 94dc21ebe88a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

kernel-ui-elements scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/elements/skills/kernel-ui-elements/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Building UI with Kernel Custom Elements

Each <kernel-*> tag builds and owns a real native element in the light DOM: <kernel-button> renders a genuine <button>. There's no shadow root, so the page's own CSS and Kernel's tokens reach everything.

Setup

<link rel="stylesheet" href="node_modules/@kernelui-lib/styles/src/index.css" />
<link rel="stylesheet" href="node_modules/@kernelui-lib/elements/dist/kernel.css" />
<script type="module">import "@kernelui-lib/elements";</script>

Bundlers can use import "@kernelui-lib/styles", import "@kernelui-lib/elements/styles.css" and import "@kernelui-lib/elements".

Workflow

  1. Pick tags first. Use the kernel MCP server (search_components, then get_component with platform: "elements"), or read node_modules/@kernelui-lib/elements/llms.txt.
  2. Use real attributes. They're kebab-case versions of React's props (error-message, hide-label). Booleans are presence-based (<kernel-checkbox disabled>), and string values go in attributes.
  3. Read rich values as DOM properties. For example tagInput.tags returns an array, and CodeBlock takes lines or code.
  4. Listen to events. React's onValueChange becomes a change event with event.detail. get_component lists each tag's events with the exact detail shape; don't guess it. Value controls follow the platform's beforeinput/input pairing: a cancelable beforevaluechange fires first with the proposed value (event.preventDefault() keeps the current state), then, once committed, valuechange and (where the element has one) change, so a handler can read the element's own state (el.hasAttribute("checked"), el.tags, el.getAttribute("value")). All of them carry event.detail.reason (the same per-component strings as React's ChangeDetails, e.g. "press" | "keyboard"). Dialog/CommandPalette ask with cancel, Popover/DropdownMenu/Accordion items with beforetoggle.
  5. Review. Run npx @kernelui-lib/cli check <files> and fix what it reports.

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 67 lines · 54 tokens per session scan A 94dc21ebe88a

Subscribe to this mod's changes

kernel-ui-elements is a skill published in the GitHub repository kemiljk/kernel-ui (35 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 1,280 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

kernel-ui-elements compared with skills from other repositories

kernel-ui-elements next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernel-ui-elementskemiljk/kernel-uiSkill35todayMITA54Claude Code, Codex
blueprint-componentsBlueprint-Master/blueprint-modularSkill1yesterdayApache-2.0A51Claude Code
product-motion-designdivyanshu-iitian/agent-website-design-skillsSkill43mo agoMITA52Codex
design-doctrineplugin87/ux-ui-agent-skillsSkill3.3k12d agoMITA92Claude Code
image-to-codeplugin87/ux-ui-agent-skillsSkill3.3k12d agoMITA77Claude Code
brand-visual-languagedembrandt/dembrandt-skillsSkill245yesterdayMITA35Claude Code
loading-states-and-perceived-performancedembrandt/dembrandt-skillsSkill245yesterdayMITA38Claude Code