← 返回 Skills 市场
datnguyen26730

AIOZ UI V3 Skills

作者 datnguyenaioz · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
483
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install aioz-ui-v3
功能描述
Build UI components and pages using AIOZ UI V3 design system. Use this skill whenever the user wants to create, edit, or style React components using AIOZ UI...
使用说明 (SKILL.md)

AIOZ UI V3 — Figma MCP → Code Mapping Skill

This skill defines exactly how to translate Figma MCP output into production React code using the AIOZ UI V3 design system.

Rule #1: Never guess token names or class names. Always follow the mapping tables below.


How Figma MCP Returns Data

When the Figma MCP agent inspects a node, it returns values in these formats:

Data Type Figma MCP Example Action
Color / fill Onsf/Error/Default, Sf/Pri/Pri → Look up in references/colors.md
Typography Button/01, Body/02, Subheadline/01 → Look up in references/typography.md
Icon layer icon/24px/outline/wallet-01 → Look up in references/icons.md
Component name Button/Primary, Badge/Success, Fields/Default → See Component Map below
Variant string Type=Primary, Size=Medium, Shape=Square → See Variant → Prop Map below
Variable value "Onsf/Bra/Default": "#121212" Slash-path format, never CSS --var
Setup / config Project configuration questions → Look up in references/setup.md

⚠️ Figma MCP always returns token names with slash separators like Onsf/Error/Default. It does NOT return CSS custom property format like --onsf-error-default.


⚠️ Two Import Paths — Never Mix Them

// Charts — @aioz-ui/core/components
import {
  LineChart,
  AreaChart,
  BarChart,
  DonutChart,
  CustomLegend,
  Separator,
  useSeriesVisibility,
} from '@aioz-ui/core/components'

// All other UI components — @aioz-ui/core-v3/components
import {
  Button,
  Input,
  Badge,
  Table,
  Header,
  Body,
  Row,
  HeadCell,
  Cell,
} from '@aioz-ui/core-v3/components'

// Icons — @aioz-ui/icon-react (always PascalCase + "Icon" suffix)
import { Search01Icon, Plus01Icon, Wallet01Icon } from '@aioz-ui/icon-react'

Component Map

Input: Figma MCP name field on a symbol/instance node Output: React component to use

Figma Node Name Pattern React Component Import
Button/* Button import { Button } from '@aioz-ui/core-v3/components'
Fields/* Input import { Input } from '@aioz-ui/core-v3/components'
Badge/* Badge import { Badge } from '@aioz-ui/core-v3/components'
Tag/* Tag import { Tag } from '@aioz-ui/core-v3/components'
Card/* Card import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@aioz-ui/core-v3/components'
Toggle/* Switch import { Switch } from '@aioz-ui/core-v3/components'
Checkbox/* Checkbox import { Checkbox } from '@aioz-ui/core-v3/components'
Tooltips/* Tooltip import { Tooltip, TooltipProvider, TooltipTrigger, TooltipContent } from '@aioz-ui/core-v3/components'
Tabs/* Tabs import { Tabs, TabsList, TabsTrigger, TabsContent } from '@aioz-ui/core-v3/components'
Table/* Table import { Table, Header, Body, Row, HeadCell, Cell } from '@aioz-ui/core-v3/components'
Separator/* Separator import { Separator } from '@aioz-ui/core-v3/components'
Pagination item/* PaginationGroup import { PaginationGroup } from '@aioz-ui/core-v3/components'
Progress bar/* Progress import { Progress } from '@aioz-ui/core-v3/components'
Slider/* Slider import { Slider } from '@aioz-ui/core-v3/components'
Upload file/* UploadFile import { UploadFile } from '@aioz-ui/core-v3/components'
Menu item/* MenuItem import { MenuItem } from '@aioz-ui/core-v3/components'
Dropdown item/* DropdownMenu import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@aioz-ui/core-v3/components'
Modal/* Dialog import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, DialogClose } from '@aioz-ui/core-v3/components'
Block/* Block import { Block } from '@aioz-ui/core-v3/components'
IconBadge/* IconBadge import { IconBadge } from '@aioz-ui/core-v3/components'
Message/* Message import { Message } from '@aioz-ui/core-v3/components'
Breadcrumb/* Breadcrumb import { Breadcrumb } from '@aioz-ui/core-v3/components'
Date picker/* DatePicker import { DatePicker } from '@aioz-ui/core-v3/components'

Variant → Prop Map

Figma MCP encodes variants as comma-separated Key=Value pairs in the node name:


"Type=Primary, Size=Medium, Icon Only=False, Shape=Square, Danger=False, State=Hover"

Figma Variant React Prop Notes
Type=Primary variant="primary"
Type=Secondary variant="secondary"
Type=Neutral variant="neutral"
Type=Text variant="text"
Type=Danger / Danger=True variant="danger"
Size=Large size="lg"
Size=Medium size="md"
Size=Small size="sm"
Shape=Circle shape="circle"
Shape=Square shape="square"
Shape=Default shape="default"
State=Default (no prop) Default render state
State=Hover (no prop) CSS handles it
State=Focused (no prop) CSS handles it
State=Pressed (no prop) CSS handles it
State=Disabled disabled
State=Loading loading
Icon Only=True size="icon" Button only

Full Translation Example

Given this Figma MCP output:

{
  "name": "Type=Primary, Size=Medium, Icon Only=False, Shape=Square, Danger=False, State=Default",
  "fills": [{ "token": "Sf/Pri/Pri" }],
  "textColor": "Onsf/Bra/Default",
  "typography": "Button/01"
}

Translate to:

import { Button } from '@aioz-ui/core-v3/components'
;\x3CButton variant="primary" size="md" shape="square">
  Label
\x3C/Button>

Colors and typography are handled by Button internally. Apply color/typography classes manually only when building custom layouts outside of component primitives.


Core Rules

  1. Token-first — Never use raw Tailwind colors or sizing.

    ❌  text-gray-500   bg-white   border-gray-200   text-sm font-medium
    ✅  text-content-sec   bg-sf-screen   border-border-neutral   text-body-02
    
  2. Component-first — Use design system primitives over custom divs. See Component Map above.

  3. Typography is atomic — Each text-* class already encodes font-size, line-height, weight, and font-family. Never stack additional font utilities on top.

  4. Icons only from @aioz-ui/icon-react — Never SVG literals, emoji, or other libraries.

    import { Search01Icon } from '@aioz-ui/icon-react'
    ;\x3CSearch01Icon size={16} className="text-icon-neutral" />
    
  5. On-surface text — Text on a bg-sf-* surface must use the matching text-onsf-* class:

    bg-sf-pri        →  text-onsf-text-pri
    bg-sf-error-sec  →  text-onsf-text-error
    bg-sf-neutral    →  text-onsf-text-neutral
    
  6. Charts — Always import from @aioz-ui/core/components (not -v3). Always wrap in the card shell. Always provide both categories and overwriteCategories. Read references/charts.md before writing any chart code.


Reference Files

Open the relevant file for deep-dive API docs, full token lists, and component examples:

File Open When
references/colors.md Full token → Tailwind class tables for text, background, and border tokens
references/typography.md Full text-* class list with font-size, weight, and line-height specs
references/icons.md Icon name transformation rule, size guide, and common icon import list
references/components.md Full props, all variants, and ready-to-use code examples for every component
references/charts.md LineChart, AreaChart, BarChart, DonutChart — APIs, variants, legend, hidden-series
安全使用建议
This skill is a set of authoring rules and reference docs—it won't run code or ask for secrets. Before using generated code in a real project, check the imports it produces: you will likely need to install packages such as @aioz-ui/core-v3 and @aioz-ui/icon-react from your package registry, so verify those packages and versions come from a trusted source. Also review the setup examples (they reference a monorepo/workspace layout and local paths) and adapt them to your project; always inspect generated JSX/TSX before running builds to catch incorrect imports or unexpected runtime dependencies.
功能分析
Type: OpenClaw Skill Name: aioz-ui-v3 Version: 1.0.0 The skill bundle is benign, consisting entirely of documentation and React/Tailwind code examples for building UI components with the AIOZ UI V3 design system. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or obfuscation. All instructions within SKILL.md and other reference files are focused on guiding the AI agent to correctly interpret design specifications and generate UI code, without any attempts at prompt injection for harmful objectives. Dependencies are specified as 'workspace:^', indicating a monorepo setup rather than suspicious external fetches.
能力评估
Purpose & Capability
The name/description (AIOZ UI V3 → code) matches the content: mapping rules, component API, color/typography/icon references. The skill does not request unrelated credentials, binaries, or config paths.
Instruction Scope
SKILL.md and the reference files only instruct how to translate Figma MCP tokens/names into imports, props, Tailwind classes, and component usage. There are no instructions to read arbitrary host files, access environment variables, call external endpoints, or exfiltrate data.
Install Mechanism
This is instruction-only with no install spec and no code/executable artifacts. The references mention package imports (e.g. @aioz-ui/core-v3, @aioz-ui/icon-react) but the skill itself does not attempt to download or install anything.
Credentials
The skill declares no required environment variables, credentials, or config paths. The references include project-local tsconfig/package.json examples (workspace references) that are reasonable for a component library but do not request secrets.
Persistence & Privilege
always:false and default model invocation are used. The skill does not request permanent presence or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aioz-ui-v3
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aioz-ui-v3 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
AIOZ UI V3 Figma MCP → Code Mapping Skill v1.0.0 - Initial release of the skill for translating Figma MCP UI output into production React code using the AIOZ UI V3 design system. - Provides detailed mapping between Figma design tokens (color, typography, component names, icons, variants) and React component imports/usage. - Enforces rules on token/class naming and import paths, including separation of chart and standard UI components. - Includes reference tables for component, variant, and import translation. - Supports tasks involving React components, styling, icons, brand colors, typography, and data visualization using AIOZ UI standards.
元数据
Slug aioz-ui-v3
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

AIOZ UI V3 Skills 是什么?

Build UI components and pages using AIOZ UI V3 design system. Use this skill whenever the user wants to create, edit, or style React components using AIOZ UI... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 483 次。

如何安装 AIOZ UI V3 Skills?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aioz-ui-v3」即可一键安装,无需额外配置。

AIOZ UI V3 Skills 是免费的吗?

是的,AIOZ UI V3 Skills 完全免费(开源免费),可自由下载、安装和使用。

AIOZ UI V3 Skills 支持哪些平台?

AIOZ UI V3 Skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AIOZ UI V3 Skills?

由 datnguyenaioz(@datnguyen26730)开发并维护,当前版本 v1.0.0。

💬 留言讨论