React General
LedgerHQ/ledger-live
General React and React Native engineering rules for Ledger Live.
Guides installing, configuring, styling and using taro-ui (At* components) in Taro apps for WeChat, Alipay, H5 and React Native.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jd-opensource/taro-ui taro-ui-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jd-opensource/taro-ui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/taro-ui-guide .claude/skills/taro-ui-guide && rm -rf skills-srcUse ~/.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/
Install the "taro-ui-guide" agent skill from https://github.com/jd-opensource/taro-ui/tree/next/packages/taro-ui-guide into .claude/skills/taro-ui-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "taro-ui-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jd-opensource/taro-ui/tree/next/packages/taro-ui-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jd-opensource/taro-ui taro-ui-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jd-opensource/taro-ui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/taro-ui-guide .agents/skills/taro-ui-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "taro-ui-guide" agent skill from https://github.com/jd-opensource/taro-ui/tree/next/packages/taro-ui-guide into .agents/skills/taro-ui-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "taro-ui-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jd-opensource/taro-ui taro-ui-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jd-opensource/taro-ui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/taro-ui-guide .cursor/skills/taro-ui-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "taro-ui-guide" agent skill from https://github.com/jd-opensource/taro-ui/tree/next/packages/taro-ui-guide into .cursor/skills/taro-ui-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "taro-ui-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jd-opensource/taro-ui.git --path packages/taro-ui-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jd-opensource/taro-ui taro-ui-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jd-opensource/taro-ui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/taro-ui-guide .gemini/skills/taro-ui-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "taro-ui-guide" agent skill from https://github.com/jd-opensource/taro-ui/tree/next/packages/taro-ui-guide into .gemini/skills/taro-ui-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "taro-ui-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jd-opensource/taro-ui taro-ui-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jd-opensource/taro-ui.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/taro-ui-guide .github/skills/taro-ui-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "taro-ui-guide" agent skill from https://github.com/jd-opensource/taro-ui/tree/next/packages/taro-ui-guide into .github/skills/taro-ui-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "taro-ui-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jd-opensource/taro-ui taro-ui-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jd-opensource/taro-ui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/taro-ui-guide .opencode/skills/taro-ui-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "taro-ui-guide" agent skill from https://github.com/jd-opensource/taro-ui/tree/next/packages/taro-ui-guide into .opencode/skills/taro-ui-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "taro-ui-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
taro-ui-guideGuides installing, configuring, styling and using taro-ui (At* components) in Taro apps for WeChat, Alipay, H5 and React Native.
The skill covers taro-ui, a multi-platform React component library for Taro 3 and later, whose components are exported with an At prefix such as AtButton. Styles are separate from the JavaScript and must be imported explicitly: the full SCSS bundle for prototypes, or per-component SCSS or babel-plugin-import for production. Version pairing is listed: Taro below 3 uses taro-ui 2.3.4, and Taro 3 or later uses the latest release.
Required project settings include compiling taro-ui for H5 through esnextModules and, on Taro 3.5 and later, turning off its prebundling. Peer dependencies are @tarojs/taro, @tarojs/components, @tarojs/react, react and react-dom, with React Native also needing react-native, and WeChat mini programs need base library 2.2.3 or later. It covers common props such as className and customStyle, compound components like AtModal and AtList, controlled open and close callbacks, theming, i18n and on-demand loading. A references folder has one page per component, opened only when that component is used. The SKILL.md is written in Chinese.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d065330. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
jd-opensource.github.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Taro UI Guide loads about 1.3k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 59 tokens; SKILL.md has 252 words of instructions outside code blocks.
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.
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.
The full file from jd-opensource/taro-ui at commit d065330, republished under its MIT licence (© jd-opensource). 252 words, ~1,325 tokens.
.claude/skills/taro-ui-guide/SKILL.md (or your agent's skills folder). This skill also uses 48 other files; get the full folder from GitHub.基于 Taro 3+ 的多端 React 组件库。组件均以 At 前缀导出(如 AtButton),样式与逻辑分离,需单独引入 SCSS。
官方文档:https://jd-opensource.github.io/taro-ui/#/
源码:packages/taro-ui/(本 monorepo)
packages/taro-ui 组件| Taro 版本 | taro-ui 版本 |
|---|---|
| < 3 | taro-ui@2.3.4 |
| ≥ 3 | taro-ui@latest(当前 monorepo 为 3.x) |
pnpm add taro-ui
# 或 npm install taro-ui@latestPeer 依赖:@tarojs/taro、@tarojs/components、@tarojs/react、react、react-dom(≥16.13)。RN 端另需 react-native、react-native-modal(可选)。
微信小程序需基础库 ≥ 2.2.3(globalClass 与样式穿透)。
在消费方项目的 config/index.ts(或 config/index.js)中:
1. H5 编译 node_modules 中的 taro-ui
h5: {
esnextModules: ['taro-ui']
}2. Taro 3.5+ 关闭对 taro-ui 的 prebundle(否则 @tarojs/components 可能未打进 bundle,页面异常)
compiler: {
type: 'webpack5',
prebundle: {
exclude: ['taro-ui']
}
}样式在 taro-ui/dist/style/,不会随 JS 自动注入,必须显式引入。
入口或 app.scss:
import 'taro-ui/dist/style/index.scss'@import 'taro-ui/dist/style/index.scss';页面/全局 SCSS 按组件名引入(AtButton → button.scss):
@import 'taro-ui/dist/style/components/button.scss';或用 babel-plugin-import(见 docs/docs/guide/quickstart.md):
// babel.config.js plugins
['import', {
libraryName: 'taro-ui',
customName: name => `taro-ui/lib/components/${name.slice(3)}`,
customStyleName: name => `taro-ui/dist/style/components/${name.slice(3)}.scss`
}, 'taro-ui']At 前缀去掉后即为目录名:AtActionSheet → action-sheet。
import { View } from '@tarojs/components'
import { AtButton } from 'taro-ui'
export default function Page() {
return (
<View>
<AtButton type="primary" onClick={() => {}}>
按钮
</AtButton>
</View>
)
}AtComponent)多数组件支持:
| Prop | 说明 |
|---|---|
className | 外层类名(小程序可用 globalClass 覆盖内部 BEM 类) |
customStyle | 内联样式,string 或 CSSProperties |
children | 子节点 |
类型定义:packages/taro-ui/types/base.d.ts。
按文档组合子组件,例如:
AtModal + AtModalHeader / AtModalContent / AtModalActionAtList + AtListItemAtTabs + AtTabsPaneAtActionSheet + AtActionSheetItem按组件查阅:references/README.md(如 references/button.md)。仅在使用该组件时打开对应文件。
open / isOpened + onClick / onClose(以各组件 types/*.d.ts 为准)AtForm 包裹 AtInput、AtSwitch 等,注意 formType、校验文案Taro.getEnv() 区分 WEB / WEAPP / ALIPAY查 Props 时优先读 references/<slug>.md,其次 packages/taro-ui/types/<component>.d.ts 与 docs/docs/components/<name>.md。
AtMessage页面需挂载 <AtMessage />,再通过 Taro.atMessage 调用:
import Taro from '@tarojs/taro'
import { AtMessage } from 'taro-ui'
// render 中: <AtMessage />
Taro.atMessage({ message: '提示', type: 'success', duration: 3000 })
// type: info | success | error | warningAtToast 为声明式:isOpened、text、status、onClose。
ConfigProviderimport { ConfigProvider, AtLoadMore, enUS } from 'taro-ui'
export default function App({ children }) {
return (
<ConfigProvider locale={enUS}>
{children}
</ConfigProvider>
)
}zhCN(默认)、enUSlocale 与默认包深合并,可只覆盖部分 key(如 LoadMore.moreText)ConfigProvider.locale > 默认 zhCN@import 全量样式。$color-brand: #6190e8;
@import 'taro-ui/dist/style/index.scss';变量表:packages/taro-ui/src/style/variables/default.scss。
globalClass:在 Page 级 SCSS 用 .my-btn.at-button { } 覆盖(自定义组件内无效)。
customStyle:仅部分组件支持,优先用前两种方式。
AtSlider、AtSwitch暂不支持 SCSS 变量覆盖主题。
pnpm install # 根目录,仅允许 pnpm
pnpm build:ui # 构建 packages/taro-ui → dist/
pnpm --filter demo dev:h5
pnpm --filter demo dev:weapp
pnpm --filter docs dev组件实现路径:
| 内容 | 路径 |
|---|---|
| 组件实现 | packages/taro-ui/src/components/<name>/ |
| 类型 | packages/taro-ui/types/<name>.d.ts |
| 样式 | packages/taro-ui/src/style/components/<name>.scss |
| 导出 | packages/taro-ui/src/index.ts |
| RN 实现 | packages/taro-ui/rn/components/ |
| 单测 | packages/taro-ui/test/components/ |
新增/修改组件:同步更新 src/index.ts、类型文件、样式、test 快照;提交信息格式 feat(ComponentName): ...(见 .github/CONTRIBUTING.md)。
references/<slug>.md → types/*.d.ts → docs/docs/components/*.md。import { AtX } from 'taro-ui' + 对应 dist/style/components/x.scss。esnextModules;是否配置 prebundle.exclude。globalClass、BEM 类名是否与文档一致。docs/docs/guide/quickstart.md — 快速上手与 babel 按需docs/docs/guide/customize-theme.md — 主题详解© jd-opensource, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 48 other files (references) in packages/taro-ui-guide of jd-opensource/taro-ui.
Open the folder on GitHubat commit d065330
Taro UI Guide 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Taro UI Guide this skilljd-opensource/taro-ui | 4.7k | — | ~1.3k | Automated safety check: Pass | MIT | |
| React GeneralLedgerHQ/ledger-live | 621 | — | ~738 | Automated safety check: Pass | MIT | |
| UniwindOhh-889/skyroc | 795 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Maui Localizationdavidortinau/maui-skills | 174 | — | ~1.2k | Automated safety check: Pass | MIT | |
| Chakra UI v3 Builderchakra-ui/chakra-ui | 41k | — | ~3.1k | Automated safety check: Pass | MIT | |
| UI UX Pro Maxsaoudi-h/solar-icons | 182 | 18 repos | ~11k | Automated safety check: Notes | Custom licence |
LedgerHQ/ledger-live
General React and React Native engineering rules for Ledger Live.
Ohh-889/skyroc
Uniwind — Tailwind CSS v4 styling for React Native. An agent skill from Ohh-889/skyroc.
davidortinau/maui-skills
Guidance for localizing .NET MAUI apps: multi-language support via .resx resource files, culture resolution and runtime switching, RTL layout, platform language declarations (iOS/Mac Catalyst…
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
saoudi-h/solar-icons
UI/UX design intelligence for web and mobile. An agent skill from saoudi-h/solar-icons.
pierrecomputer/pierre
Use when an app uses @pierre/trees to render or control a file tree, including React, vanilla JavaScript, SSR, web components, selection, search, rename, drag…
Categories
Guides installing, configuring, styling and using taro-ui (At* components) in Taro apps for WeChat, Alipay, H5 and React Native. The skill covers taro-ui, a multi-platform React component library for Taro 3 and later, whose components are exported with an At prefix such as AtButton. Styles are separate from the JavaScript and must be imported explicitly: the full SCSS bundle for prototypes, or per-component SCSS or babel-plugin-import for production.
Taro UI Guide fits situations like: integrating taro-ui into a Taro project; choosing and combining At components and checking their props; customizing the theme, internationalization or on-demand style loading; developing or fixing components in the taro-ui repository.
Run `npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a claude-code`. Or copy the skill folder (packages/taro-ui-guide in jd-opensource/taro-ui) into .claude/skills/taro-ui-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a codex`. Or copy the skill folder (packages/taro-ui-guide in jd-opensource/taro-ui) into .agents/skills/taro-ui-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jd-opensource/taro-ui --skill taro-ui-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/taro-ui-guide, .gemini/skills/taro-ui-guide, .github/skills/taro-ui-guide and .opencode/skills/taro-ui-guide in your project.
Going by SKILL.md and its folder, Taro UI Guide needs the command-line tools its instructions call (pnpm). Our summary lists: A Taro project; react and react-dom 16.13 or later.
SKILL.md names 1 domain. As links in the text: jd-opensource.github.io. This is read from the text; nothing was executed.
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.
Taro UI Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Taro UI Guide: React General (LedgerHQ/ledger-live, 621 stars), Uniwind (Ohh-889/skyroc, 795 stars), Maui Localization (davidortinau/maui-skills, 174 stars) and Chakra UI v3 Builder (chakra-ui/chakra-ui, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jd-opensource (a GitHub organization) maintains it in jd-opensource/taro-ui, which has 4,731 GitHub stars. The repository was last updated on September 25, 2026.
Source: jd-opensource/taro-ui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.