taro-ui-guide

taro-ui-guide is a skill for Claude Code, Codex from jd-opensource/taro-ui. It costs 66 tokens per session (2,085 once invoked), scanned A, original, MIT.

A guide to taro-ui, a React component library for Taro apps that run on WeChat and Alipay mini-programs, web pages, and React Native. It covers components, styles, configuration, and themes.

In plain words
What is it for?
Use it when installing taro-ui, choosing or combining its components, changing themes, adding translations, loading styles, or modifying its source in the shared repository.
Why use it?
It explains the setup details needed to make the library work across Taro's different targets, including required style imports and build settings.

Skill for Claude CodeCodex

About the project

Taro UI is a user-interface component library built for the Taro framework, allowing the same components to run in WeChat, Alipay, and Baidu mini-programs, H5 pages, and React Native. It is for developers building applications across these platforms from a shared codebase. The catalogue includes a skill that adds AI-oriented support for using Taro UI.

jd-opensource/taro-ui · 4,730 stars · on GitHub

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/jd-opensource/taro-ui/taro-ui-guide
Any agent
npx skills add jd-opensource/taro-ui --skill taro-ui-guide
Clone the repo
git clone --depth 1 https://github.com/jd-opensource/taro-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 taro-ui-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/jd-opensource/taro-ui/taro-ui-guide.svg)](https://agentmods.dev/skills/jd-opensource/taro-ui/taro-ui-guide)
Your own site
<a href="https://agentmods.dev/skills/jd-opensource/taro-ui/taro-ui-guide"><img src="https://agentmods.dev/badge/skills/jd-opensource/taro-ui/taro-ui-guide.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,085 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.00066 $0.02085
Opus 5 $0.00033 $0.01043
Sonnet 5 $0.00013 $0.00417
Haiku 4.5 $0.00007 $0.00209

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

Security

Grade A, and why

taro-ui-guide 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 5d 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.

packages/taro-ui-guide/SKILL.md · 235 lines

How it starts

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

Taro UI 使用指南

基于 Taro 3+ 的多端 React 组件库。组件均以 At 前缀导出(如 AtButton),样式与逻辑分离,需单独引入 SCSS。

官方文档:https://jd-opensource.github.io/taro-ui/#/
源码:packages/taro-ui/(本 monorepo)

何时使用本 Skill

  • 在 Taro 项目中集成、配置或排查 taro-ui
  • 选择/组合组件、查 Props、写示例页面
  • 自定义主题、国际化、按需加载
  • 在本仓库内开发/修复 packages/taro-ui 组件

版本与安装

Taro 版本 taro-ui 版本
< 3 [email protected]
≥ 3 taro-ui@latest(当前 monorepo 为 3.x)
pnpm add taro-ui
# 或 npm install taro-ui@latest

Peer 依赖@tarojs/taro@tarojs/components@tarojs/reactreactreact-dom(≥16.13)。RN 端另需 react-nativereact-native-modal(可选)。

微信小程序需基础库 ≥ 2.2.3globalClass 与样式穿透)。

Taro 项目必配项

在消费方项目的 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 按组件名引入(AtButtonbutton.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 前缀去掉后即为目录名:AtActionSheetaction-sheet

组件使用模式

基础引入

import { View } from '@tarojs/components'
import { AtButton } from 'taro-ui'

export default function Page() {
  return (
    <View>
      <AtButton type="primary" onClick={() => {}}>
        按钮
      </AtButton>
    </View>
  )
}

公共 Props(AtComponent

多数组件支持:

Prop 说明
className 外层类名(小程序可用 globalClass 覆盖内部 BEM 类)
customStyle 内联样式,stringCSSProperties
children 子节点

Read the full file on GitHub · 235 lines

Files

What ships with it

48 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 235 lines · 66 tokens per session scan A fc1f6551efc4

Subscribe to this mod's changes

taro-ui-guide is a skill published in the GitHub repository jd-opensource/taro-ui (4,730 stars, last pushed 1mo ago), licensed MIT. It adds 66 tokens to every session and 2,085 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

phone-ui-demos

把产品/知识点/文案做成"手机系统 UI 风格"的电影化网页演示动画——观众像在看一台真手机的精心编排录屏:锁屏通知、聊天、设置页、控制中心、App 界面逐镜头呈现,HyperOS/MIUI 级手感动效 + 虚拟时钟播放器,可全屏录屏当成片。只要用户提到:手机 UI 演示、手机录屏风格动画、App 演示网页、把产品做成手机里的演示、锁屏通知动画、系统 UI 风格演示页、或要求改造升级一批手机风格演示页——就用本 Skill。内容完全开放不设限:任何产品功能、课程知识、科普叙事都能转译成"手机里发生的事"。.

Unclecheng-li/AI_Animation · 194 tokens

react-native-expert

Expert in React Native, cross-platform mobile development, native modules, and performance optimization. Use when the user mentions mobile, JavaScript, TypeScript, cross platform, iOS, or Android, or when the task involves React Native Architecture, Component Types, Hooks Essentials, or Navigation.

personamanagmentlayer/pcl · 62 tokens

mini-program-engineering-suite

Orchestrate evidence-first engineering for WeChat and other mini programs from a vague idea or existing repository through project discovery, product specification, architecture, implementation, debugging, device adaptation, verification, and release readiness. Use when users ask to build a mini program from zero to…

NocodeMrLi/mini-program-engineering-skill-suite · 126 tokens

mini-program-ui-device-skill

Design, preview, implement, and assess mini-program interfaces against an approved prototype, screenshot, visual reference, design system, or bounded UI request while preserving product semantics and existing accepted behavior. Use when users ask to reproduce a mini-program screen, refine visual hierarchy, adapt…

NocodeMrLi/mini-program-engineering-skill-suite · 135 tokens

mini-program-verification-skill

Verify mini-program implementations and fixes with risk-calibrated evidence across static checks, unit tests, integration tests, state matrices, simulators, real devices, cloud environments, and release artifacts. Use when users ask to test, validate, accept, regression-check, quality-check, confirm readiness, or…

NocodeMrLi/mini-program-engineering-skill-suite · 129 tokens

wechat-mini-program-platform-skill

Analyze WeChat Mini Program platform constraints and evidence layers for an idea or existing repository, including source configuration, build output, WeChat DevTools loading, device behavior, permissions, privacy declarations, cloud or backend linkage, upload, trial, review, and production status. Use when users ask…

NocodeMrLi/mini-program-engineering-skill-suite · 136 tokens