kernel-ui

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

A guide for building React screens with Kernel UI, a component library based on standard HTML elements. It covers choosing components, checking setup, using the right properties, and styling with Kernel's design tokens.

In plain words
What is it for?
Use it when creating or reviewing React buttons, forms, dialogs, menus, tables, or chat and agent screens that use @kernelui-lib/react.
Why use it?
It helps avoid hand-built controls, missing styles, and properties copied from other UI libraries that Kernel does not support.

Skill for Claude CodeCodex

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

Good fit Use it when creating or reviewing React buttons, forms, dialogs, menus, tables, or chat and agent screens that use @kernelui-lib/react.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kemiljk/kernel-ui/kernel-ui
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
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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kemiljk/kernel-ui/kernel-ui/github.svg)](https://agentmods.dev/skills/kemiljk/kernel-ui/kernel-ui)
Your own site
<a href="https://agentmods.dev/skills/kemiljk/kernel-ui/kernel-ui"><img src="https://agentmods.dev/badge/skills/kemiljk/kernel-ui/kernel-ui/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kemiljk/kernel-ui/kernel-ui"><img src="https://agentmods.dev/badge/skills/kemiljk/kernel-ui/kernel-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,958 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.00056 $0.01958
Opus 5.5 $0.00022 $0.00783
Sonnet 5.5 $0.00011 $0.00392
Haiku 4.5 $0.00006 $0.00196

Measured yesterday against content hash e7daebbc8e57, 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 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/react/skills/kernel-ui/SKILL.md · 78 lines

How it starts

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

Building UI with Kernel

Kernel components wrap real elements: <Button> is a <button>, <Dialog> is a <dialog> opened with showModal(), and <Select> is a <select>. The browser already handles most behaviour, so your job is to choose the right component, pass the right props and style only with tokens.

Workflow

  1. Check the setup once. Both stylesheets must be imported, or components render unstyled (they still work):
    import "@kernelui-lib/styles";           // tokens + reset
    import "@kernelui-lib/react/styles.css"; // component styles
    
    npx @kernelui-lib/cli doctor checks this.
  2. Pick components before writing markup. If the kernel MCP server is connected, call search_components or list_components. Otherwise read node_modules/@kernelui-lib/react/llms.txt. Prefer a Kernel component over hand-rolled markup every time one exists.
  3. Get exact props, don't guess. Use the MCP get_component tool, or npx @kernelui-lib/cli docs <name> --markdown, or the types in node_modules/@kernelui-lib/react/dist/index.d.ts. Props from other libraries (asChild, leftIcon, isDisabled, colorScheme) don't exist here.
  4. Style with tokens only. Every colour, space, radius and duration is a --kernel-* custom property (MCP get_tokens). Never hard-code a hex colour, a pixel radius or 999px.
  5. Review what you wrote. Run the MCP check_code tool, or npx @kernelui-lib/cli check <files>, and fix every error it reports before you finish. If the project uses ESLint, @kernelui-lib/eslint-plugin (kernel.configs.recommended) runs the same checks on every save.
  6. Verify the rendered UI with @kernelui-lib/testing. Static checks can't see keyboard behaviour. In the project's tests, await assertPage(document.body, { act }) (or assertComponent(container, "Tabs", { act })) checks every Kernel component on screen against its WAI-ARIA pattern: names, state, arrow keys, Escape, focus. Each failure names the rule and the fix. Don't add one-off ARIA to make it pass; fix the props.

Read the full file on GitHub · 78 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 · 78 lines · 56 tokens per session scan A e7daebbc8e57

Subscribe to this mod's changes

kernel-ui is a skill published in the GitHub repository kemiljk/kernel-ui (35 stars, last pushed today), licensed MIT. It adds 56 tokens to every session and 1,958 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 compared with skills from other repositories

kernel-ui next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kernel-uikemiljk/kernel-uiSkill35todayMITA56Claude 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