Agent skill

Hiui

by XiaoMi in XiaoMi/hiui

A skill your agent uses when the user's task involves HiUI (@hi-ui/) — writing HiUI components, debugging HiUI issues, querying HiUI props/docs, migrating from HiUI V4 to V5, or setting up React 19…

MITAuto-check passedFrontend & Design

Install Hiui

skills CLI
$ npx skills add XiaoMi/hiui --skill hiui -a claude-code

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

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

At a glance

A skill your agent uses when the user's task involves HiUI (@hi-ui/) — writing HiUI components, debugging HiUI issues, querying HiUI props/docs, migrating from HiUI V4 to V5, or setting up React 19…

  • Works in 8 steps: Writing HiUI component code → Looking up full documentation → Exploring available components → …
  • The users task involves HiUI (@hi-ui/) — writing HiUI components
  • SKILL.md covers Setup, Scenarios, Global Flags and Key Rules, plus 2 more sections
  • Calls npm and pnpm; reaches xiaomi.github.io

What it does

Hiui is an agent skill from XiaoMi/hiui. Use when the user's task involves HiUI (@hi-ui/) — writing HiUI components, debugging HiUI issues, querying HiUI props/docs, migrating from HiUI V4 to V5, or setting up React 19 compatibility with @hi-ui/patch-for-react. Triggers on imports from '@hi-ui/', hi-ui/hiui mentions, or explicit HiUI questions.

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 Frontend & Design, covering Design systems. It works with React. The repository describes itself as: HIUI is a solution that is adequate for the fomulation and implementation of interaction and UI design standard for front, middle and backend. The licence is MIT.

When your agent uses it

  • The users task involves HiUI (@hi-ui/) — writing HiUI components
  • Debugging HiUI issues
  • Querying HiUI props/docs
  • Migrating from HiUI V4 to V5

Example prompts

  • “@hi-ui/”
  • “/hiui”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash(hiui *), Bash(npm install -g @hi-ui/hiui-cli*), Bash(which hiui)

Workflow steps

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

  1. Writing HiUI component code
  2. Looking up full documentation
  3. Exploring available components
  4. Migrating HiUI V4 → V5
  5. React 19 compatibility
  6. Customizing docs source
  7. Semantic classNames / styles
  8. Alternative: LLMs.txt without CLI

What it can do on your machine

Read from SKILL.md and the folder at commit f056c80. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(hiui *)
    • Bash(npm install -g @hi-ui/hiui-cli*)
    • Bash(which hiui)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • pnpm

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • xiaomi.github.io

    Also links to:

    • npmjs.com
    • github.com

    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

Hiui loads about 1.9k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 693 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
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 XiaoMi/hiui at commit f056c80, republished under its MIT licence (© XiaoMi). 693 words, ~1,896 tokens.

Download SKILL.mdSave it as .claude/skills/hiui/SKILL.md (or your agent's skills folder).
name
hiui
description
Use when the user's task involves HiUI (@hi-ui/*) — writing HiUI components, debugging HiUI issues, querying HiUI props/docs, migrating from HiUI V4 to V5, or setting up React 19 compatibility with @hi-ui/patch-for-react. Triggers on imports from '@hi-ui/*', hi-ui/hiui mentions, or explicit HiUI questions.
allowed-tools
Bash(hiui *), Bash(npm install -g @hi-ui/hiui-cli*), Bash(which hiui)

HiUI CLI

You have access to @hi-ui/hiui-cli — a CLI for querying HiUI component documentation and automating common upgrade tasks. Component docs are fetched from official llms endpoints (network required for list / doc / info / url). Migration and React 19 patch setup run locally on the project filesystem.

Setup

Before first use, check if the CLI is installed. If not, install it:

bash
which hiui || npm install -g @hi-ui/hiui-cli
hiui version

The hiui command comes from the globally installed @hi-ui/hiui-cli package.

Always use --format json for structured output you can parse programmatically.

Scenarios

1. Writing HiUI component code

Before writing any HiUI component code, look up its API first — don't rely on memory.

bash
# Check available props
hiui info Button --format json

# Full docs with usage examples (TSX demos in markdown)
hiui doc Button --format json

# Get the canonical llms URL for citations
hiui url Button --format json

Workflow: hiui info → understand props → hiui doc → read examples → write code.

HiUI packages use kebab-case names (@hi-ui/date-picker). Component CLI args accept Button, datePicker, or date-picker (auto-normalized to kebab-case).

Import patterns:

tsx
// Full bundle
import { Button, Input } from '@hi-ui/hiui'

// Per-component (recommended for existing apps)
import Button from '@hi-ui/button'
import Input from '@hi-ui/input'
import { InfoCircleFilled } from '@hi-ui/icons'
2. Looking up full documentation

When you need comprehensive component docs (not just props):

bash
hiui doc Table --format json

Markdown includes description, usage examples, and props tables. Source: https://xiaomi.github.io/hiui/llms/<component>.md.

3. Exploring available components

When choosing which component to use:

bash
hiui list --format json

Index is derived from llms.txt. For offline context, you can also reference llms-full.txt.

4. Migrating HiUI V4 → V5

When upgrading a project from HiUI 4.x to 5.x:

bash
# Preview changes (no writes)
hiui migrate 4 5 --dry-run --format json

# Apply to current directory
hiui migrate 4 5 --format json

# Monorepo sub-app
hiui migrate 4 5 --path ./apps/web --format json

# Only bump @hi-ui/* in package.json
hiui migrate 4 5 --deps-only

# Only replace .hi-v4 / hi-v4- class prefixes
hiui migrate 4 5 --class-only

What migrate 4 5 does:

  1. Sets @hi-ui/* in all package.json files to ^5.0.0 (excludes tooling like @hi-ui/hi-build)
  2. Replaces .hi-v4 → .hi-v5 and hi-v4- → hi-v5- in project source/styles

What it does NOT do: API breaking changes, import path refactors, or business logic. After migrate, run npm install or yarn, then fix remaining issues manually. See project migration docs.

Workflow: hiui migrate 4 5 --dry-run → review → hiui migrate 4 5 → install deps → hiui doc / hiui info per changed component → fix API usage.

Currently only 4 → 5 is supported; other version pairs return UNSUPPORTED_MIGRATION.

5. React 19 compatibility

When the project uses React 19 and needs ReactDOM.render / legacy static APIs patched for HiUI:

bash
hiui patch-for-react --dry-run --format json
hiui patch-for-react --path . --format json
hiui patch-for-react --entry src/index.tsx --skip-install

What it does:

  1. Adds @hi-ui/patch-for-react to dependencies (^5.0.0 by default, override with --patch-version)
  2. Inserts import '@hi-ui/patch-for-react' at the top of the entry file (after 'use client' if present)
  3. Runs npm / yarn / pnpm install unless --skip-install

Entry auto-detection: src/index.tsx, src/main.tsx, etc., or script src from index.html.

6. Customizing docs source

When using a mirror or internal docs host:

bash
hiui doc alert --base-url https://xiaomi.github.io/hiui --format json
# or
HIUI_DOCS_BASE_URL=https://your-mirror.example hiui list --format json
7. Semantic classNames / styles

Many HiUI 5 components support classNames and styles for per-element styling. Check the Semantic example in component docs:

bash
hiui doc Alert --format json

Look for classNames / styles usage in the markdown examples.

8. Alternative: LLMs.txt without CLI

If the CLI is unavailable, fetch docs directly:

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

Global Flags

FlagPurpose
--format jsonStructured JSON output (agents should prefer this)
--base-url <url>Docs root (default: https://xiaomi.github.io/hiui)
--timeout <ms>HTTP timeout for doc fetch (default: 30000)
-V, --versionPrint CLI version (hiui version also works)
migrate options
FlagPurpose
--path <dir>Project root (default: .)
--dry-runPreview without writing
--deps-onlyOnly update package.json
--class-onlyOnly replace class name prefixes
patch-for-react options
FlagPurpose
--path <dir>Project root
--entry <file>Explicit entry file
--dry-runPreview only
--skip-installSkip package manager install
--patch-version <range>Version for @hi-ui/patch-for-react (default: ^5.0.0)

Key Rules

  1. Always query before writing — Don't guess HiUI APIs from memory. Run hiui info or hiui doc first.
  2. Use --format json — Parse JSON output instead of regex-matching plain text.
  3. Prefer hiui doc for examples — Demos live inside markdown; there is no separate hiui demo command yet.
  4. Migrate with preview — Run hiui migrate 4 5 --dry-run before applying; then install deps and fix API changes manually.
  5. React 19 patch is entry-level — patch-for-react only adds the side-effect import; ensure it runs before other app imports.
  6. Component names are kebab-case in packages — CLI normalizes CheckSelect → check-select for URLs and docs.
  7. Network for docs commands — list, doc, info, url need HTTP access to the llms host; migrate and patch-for-react are offline filesystem operations.

Command Reference

CommandDescription
hiui versionCLI version
hiui listAll components from llms.txt
hiui info <component>Props API
hiui doc <component>Full markdown documentation
hiui url <component>llms.md URL for component
hiui migrate 4 5V4 → V5 dependency + class prefix upgrade
hiui patch-for-reactInstall and inject React 19 patch

© XiaoMi, 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/hiui of XiaoMi/hiui.

Open the folder on GitHubat commit f056c80

Compare with similar skills

Hiui 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.

Hiui compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hiui this skillXiaoMi/hiui877—~1.9kAutomated safety check: PassMIT
Creative Tim UI Blockscreativetimofficial/ui12k—~2.1kAutomated safety check: NotesMIT
Cosscrafter-station/petdex4.2k—~1.4kAutomated safety check: PassMIT
Ss Learnbitjaru/styleseed972—~1.3kAutomated safety check: PassMIT
UI/UX Design System AdvisorGalaxy-Dawn/claude-scholar5.7k1 repos~1.1kAutomated safety check: PassMIT
Design StyleCastor6/tactus3761 repos~2.1kAutomated safety check: PassApache-2.0

Similar skills

  • Creative Tim UI Blocks

    creativetimofficial/ui

    Helps install, generate and review Creative Tim UI blocks: shadcn/ui-based React and Tailwind sections that follow a restrained, production-minded design philosophy.

    12k GitHub stars~2.1k tokensUpdated 6 mo ago
    Frontend & DesignAuto-check: notes
  • Coss

    crafter-station/petdex

    Helps implement coss UI components correctly. An agent skill from crafter-station/petdex.

    4.2k GitHub stars~1.4k tokensUpdated 9 days ago
    Frontend & DesignAuto-check passed
  • Ss Learn

    bitjaru/styleseed

    Capture a human-approved UI design lesson as a privacy-minimized local StyleSeed candidate, review it, and prepare an opt-in share package without transmitting project code, prompts, screenshots, or…

    972 GitHub stars~1.3k tokensUpdated 7 days ago
    Frontend & DesignAuto-check passed
  • UI/UX Design System Advisor

    Galaxy-Dawn/claude-scholar

    Turns a vague UI request into a concrete design system with style, palette, typography and layout guidance from a search script, plus stack-specific implementation advice.

    5.7k GitHub starsUsed in 1 repo~1.1k tokens
    Frontend & DesignAuto-check passed
  • Design Style

    Castor6/tactus

    A skill your agent uses whenever the user asks to build, create, design, develop, improve, or style any frontend interface or visual element.

    376 GitHub starsUsed in 1 repo~2.1k tokens
    Frontend & DesignAuto-check passed
  • Building With Lobe UI

    lobehub/lobe-ui

    Build UI with the LobeHub design ecosystem — @lobehub/ui (plus its base-ui, chat, mobile, awesome, brand, mdx, i18n namespaces), @lobehub/icons, @lobehub/charts, @lobehub/fluent-emoji and…

    2.2k GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed

More from XiaoMi/hiui

  • UX Walkthrough

    XiaoMi/hiui

    体验走查 skill。适用于代码库、URL、截图三种输入,输出结构化体验问题报告,并同步生成本地 docx 报告。触发词:体验走查、UX review、交互走查、界面审查、体验问题。

    877 GitHub stars~1.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Hiui Refine

    XiaoMi/hiui

    可作为 hiui-page-workflow 等更大页面工作流的标准 S0 前置 skill,专注 B 端中后台与 HiUI 页面生成前的需求细化。将模糊或抽象的后台/管理台/运营台/配置台/审批流需求细化为可执行的产品方案、MVP 范围、用户流程、业务规则、可追踪页面清单、产品 PRD、全局生成上下文、页面级提示词和 HiUI 交接包。适用于澄清后台产品想法、把粗略需求转成 PRD…

    877 GitHub stars~9.8k tokensUpdated 2 mo ago
    Auto-check passed
  • 用于 React / HiUI 页面从需求细化到端到端生成与验收。适用于从模糊产品需求生成并验收页面、 HiUI 页面提测前检查、页面生成后做体验走查、页面从需求到实现再到 UX 验收闭环等任务。

    877 GitHub stars~3.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Hiui Design

    XiaoMi/hiui

    在 React 项目中接入、生成、修改、联调或验收 HiUI 典型页与非典型页面时使用。适用于 数据统计表、普通表格、树形表格、左树右表、数据可视化、异常反馈页、抽屉表单/详情、 全页编辑/详情、不规范原型截图转规范页、老旧系统截图/URL/源码现代化转译,以及 host-integration、rules-only、legacy-host-compatible 等场景。

    877 GitHub stars~3.3k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Questions about Hiui

What does Hiui do?

A skill your agent uses when the user's task involves HiUI (@hi-ui/) — writing HiUI components, debugging HiUI issues, querying HiUI props/docs, migrating from HiUI V4 to V5, or setting up React 19…. Hiui is an agent skill from XiaoMi/hiui. Use when the user's task involves HiUI (@hi-ui/) — writing HiUI components, debugging HiUI issues, querying HiUI props/docs, migrating from HiUI V4 to V5, or setting up React 19 compatibility with @hi-ui/patch-for-react.

When should I use Hiui?

Hiui fits situations like: the users task involves HiUI (@hi-ui/) — writing HiUI components; debugging HiUI issues; querying HiUI props/docs; migrating from HiUI V4 to V5.

How do I install Hiui in Claude Code?

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

How do I install Hiui in Codex?

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

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

What does Hiui need to run?

Going by SKILL.md and its folder, Hiui needs the command-line tools its instructions call (npm and pnpm). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash(hiui *), Bash(npm install -g @hi-ui/hiui-cli*), Bash(which hiui).

Does Hiui access the network?

SKILL.md names 3 domains. In commands or code: xiaomi.github.io; the agent is likely to contact it when it follows the instructions. As links in the text: npmjs.com and github.com. This is read from the text; nothing was executed.

Is Hiui 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 Hiui use?

Hiui 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 Hiui use?

About 1.9k tokens (SKILL.md is roughly 7.6k 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 Hiui?

Skills that share tags, products or a category with Hiui: Creative Tim UI Blocks (creativetimofficial/ui, 12k stars), Coss (crafter-station/petdex, 4.2k stars), Ss Learn (bitjaru/styleseed, 972 stars) and UI/UX Design System Advisor (Galaxy-Dawn/claude-scholar, 5.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hiui?

XiaoMi (a GitHub organization) maintains it in XiaoMi/hiui, which has 877 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on July 24, 2026.

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