1. Components
  2. skills

AI Skills

AI-assisted development skills for JK-UI

An AI skill is a packaged set of instructions and reference files that helps AI assistants generate accurate, idiomatic JK-UI code. Instead of guessing component names, props, or install commands, the AI reads from curated source files.

jk-ui Skill

The jk-ui skill covers the full JK-UI component library — install commands, props, composition patterns, theming, accessibility, and blocks.
Install the skill:
terminal
npx skills add johnkat-mj/ui --skill jk-ui

Setup Flow

Setting up jk-ui in a project follows two steps:
  1. jk-ui CLI — Initializes the base configuration aligned with jk-ui. Handles theme choice, appearance mode (light, dark, or both), and sets up the styling accordingly.
    npx jk-ui-cli@latest init
  2. shadcn CLI — Installs individual components on top of the initialized config.
    npx shadcn add @jk-ui/button @jk-ui/card
The jk-ui CLI is the required first step — without it, the base config, theme tokens, and appearance mode won't be set up correctly. Components come after.

What's Included

AreaFile
Component referencecomponents/*.md — per-component API docs
Install commandsSKILL.md — shadcn CLI install for every component
Themingreferences/theming.md — CSS variable tokens, semantic colors, theme presets
Variantsreferences/style-variants.md — shared variant/intent system (uiStyles)
Best practicesreferences/best-practices.md — verified usage patterns
Things to avoidreferences/things-to-avoid.md — common mistakes
Accessibilityreferences/accessibility.md — RAC-based patterns
Compositionreferences/composition-patterns.md — common React patterns
Performancereferences/performance.md — performance guidance
Colorsreferences/colors.md — light/dark CSS variable reference
Componentsreferences/components.md — full component index

How It Works

  1. The AI reads SKILL.md for the tech stack, working rules, and answering pattern.
  2. For a specific component, it reads the relevant file in components/.
  3. It returns the install command, import path, and minimal working example.

Tech Stack

LayerTechnology
FrameworkReact 19 (Next.js, TanStack Router/Start, React Router, Laravel Inertia React, or any React project)
Primitivesreact-aria-components 1.17
StylingTailwind CSS 4 with @tailwindcss/postcss
Variantstailwind-variants 3.2 + tailwind-merge 3.4
IconsPhosphor via @iconify-json/ph
Animationmotion 12 + tw-animate-css
ChartsRecharts 3.7
OTPinput-otp 1.4

Source

The skill files live in ./skills/jk-ui/ in the repository root.