ktui-install

ktui-install is a skill for Claude Code, Codex from keenthemes/ktui. It costs 59 tokens per session (1,111 once invoked), scanned A, original, MIT.

Setup instructions for KtUI, a collection of Tailwind CSS user-interface components from Keenthemes. It covers adding the package, loading its styles, configuring Tailwind to find the components, and starting them in common JavaScript frameworks.

In plain words
What is it for?
Install KtUI in a new or existing project, configure Tailwind CSS, initialize components in Vanilla JS, React, Vue, Next.js, Nuxt, or Laravel Livewire, and troubleshoot setup issues.
Why use it?
It removes guesswork when KtUI components do not appear or work correctly, especially with server-rendered applications where browser-only code must wait until the page loads.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/keenthemes/ktui/ktui-install
Any agent
npx skills add keenthemes/ktui --skill ktui-install
Clone the repo
git clone --depth 1 https://github.com/keenthemes/ktui

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 ktui-install

README.md
[![agentmods](https://agentmods.dev/badge/skills/keenthemes/ktui/ktui-install.svg)](https://agentmods.dev/skills/keenthemes/ktui/ktui-install)
Your own site
<a href="https://agentmods.dev/skills/keenthemes/ktui/ktui-install"><img src="https://agentmods.dev/badge/skills/keenthemes/ktui/ktui-install.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,111 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00059 $0.01111
Opus 5 $0.00030 $0.00556
Sonnet 5 $0.00012 $0.00222
Haiku 4.5 $0.00006 $0.00111

Measured 6d ago against content hash c80bb0200d9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ktui-install 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 6d ago.

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.

skills/ktui-install/SKILL.md · 151 lines

How it starts

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

KtUI Installation & Setup

1. Install the package

npm install @keenthemes/ktui

2. Tailwind CSS config

Add KtUI source paths to your Tailwind content array so Tailwind scans KtUI classes:

// tailwind.config.js
module.exports = {
  content: [
    './node_modules/@keenthemes/ktui/src/**/*.{ts,js}',
    // your app files...
  ],
};

3. Import styles

Import KtUI's built-in CSS (or use your own build of the source):

import '@keenthemes/ktui/dist/styles.css';

4. Import and initialize components

import { KTComponents } from '@keenthemes/ktui';

// Call once after DOM is ready
KTComponents.init();

Per-framework placement

Framework Where to call KTComponents.init()
Vanilla JS DOMContentLoaded listener or <script> at bottom of <body>
React useEffect(() => { KTComponents.init(); }, [])
Vue 3 onMounted(() => { KTComponents.init(); })
Next.js Inside a client component's useEffect (never during SSR)
Nuxt Inside onMounted or a client-only plugin
Laravel Livewire Automatic — livewire:navigate triggers re-init

SSR safety

Never call init() during server-side rendering. Guard with:

if (typeof window !== 'undefined') {
  KTComponents.init();
}

Dynamic content (SPAs, lazy-loaded views)

After injecting new KtUI markup (route change, AJAX-loaded modal, etc.), re-initialize:

// Re-init everything (safe — existing instances are skipped)
KTComponents.init();

// Or per-component
import { KTModal } from '@keenthemes/ktui';
KTModal.init();

5. TypeScript types

All config and interface types are exported from the package root — no deep paths:

import type {
  KTModalConfigInterface,
  KTDataTableConfigInterface,
  KTDropdownConfigInterface,
  KTSelectConfigInterface,
  KTToastConfigInterface,
  // ... etc
} from '@keenthemes/ktui';

6. CSS variables (theming)

KtUI requires CSS custom variables defined on :root. At minimum:

Read the full file on GitHub · 151 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. 6d ago First seen · 151 lines · 59 tokens per session scan A c80bb0200d9e

Subscribe to this mod's changes

ktui-install is a skill published in the GitHub repository keenthemes/ktui (149 stars, last pushed 2mo ago), licensed MIT. It adds 59 tokens to every session and 1,111 once invoked, about $0.0003 per session on Opus 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-08-30.

Related

Other skills, from other repositories

preline-mcp

Add, integrate, or build Preline UI components and blocks into HTML files via the Preline MCP server. Use when the user mentions "preline", says "/preline", asks to add a UI component, or requests a Preline block (a ready-made page section) using Preline UI.

htmlstreamofficial/preline · 66 tokens

preline-theme-generator

Generate, preview, save, or validate Preline theme CSS using the bundled local generator in this skill. Use when the user asks to create a new Preline theme, match a brand color, translate a mood into a theme, generate light and dark theme CSS, preview theme output without writing files, or review and fix generated…

htmlstreamofficial/preline · 89 tokens

web-animations

Add animations to web components using Framer Motion, GSAP, CSS animations, and modern scroll effects. Use for: hero entrance animations, card hover effects, scroll progress indicators, staggered list animations, parallax scrolling, magnetic button effects, page transitions, scroll-triggered reveals, loading states…

williamjxj/friendshipdaycare · 72 tokens

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json…

shadcn-ui/ui · 94 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens

Shade tokens, not hex

Use Shade semantic tokens (bg-background, text-foreground, border-border-default, bg-surface-elevated) — never hex, hsl(), or bg-gray-200-style raw palette utilities for UI chrome. Trigger when editing TSX/CSS in Shade-consuming apps.

TryGhost/Ghost · 61 tokens