Rokid AIUI 智能体开发

SKILLAI 工具
AI 工具 未标注权限 许可证不明确
安装这个技能

Specialized agent for developing AIUI applications. Invoke when writing AIUI code, needing API references for jsui/wx, debugging AIUI applications, or aligning AIUI visual design with this Skill's design guidelines.

一句话选型结论

按资料字段整理

Rokid AIUI 智能体开发是AI 工具类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类AI 工具 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_cd36c53d/rokid-aiui-dev
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

AI 工具
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_cd36c53d仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791726860
正文体量27.0 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
组合多个 AI 能力

把写作、检索、总结串成一条流程。

搭工作流

把固定流程做成可重复调用的步骤。

做提示词与评测

整理提示词并对比输出效果。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在AI 工具场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Rokid AIUI 智能体开发当前 未标注权限 未标注 未标注 未标注 有
执行计划 只读 GitHub 仓库 151.5 万 Codex、Claude、Cursor 有
Playwright MCP 测试 浏览器控制 ClawHub 市场 136.5 万 OpenClaw 有
完成前的验证 未标注权限 GitHub 仓库 131.9 万 Codex、Claude、Cursor 有
子 Agent 驱动开发 只读 GitHub 仓库 131.2 万 Codex、Claude、Cursor 有
前端设计 执行命令 GitHub 仓库 125.6 万 Codex、Claude、Cursor 有

SKILL.md 全文

27.0 KB
模型实际读到的说明书原文,来自技能仓库

AIUI Agent Developer Guide

This guide provides independent and comprehensive context for AI agents developing AIUI applications. It includes project structure, SFC .ink support specifications, and standard API references, designed to help Large Language Models (LLMs) generate accurate AIUI pages and logic code.

1. Project Structure

A standard AIUI application project typically contains the following core files:

  • AGENTS.md: The agent manifest, defining the agent's identity and capabilities.
  • app.json: Global configuration, including page routes, window settings, etc.
  • app.js: Application lifecycle and global logic.
  • pages/: Page directory containing the application's pages, primarily using the Single File Component (SFC) .ink format.
  • assets/: Directory for storing static resources like images and audio.

1.1 Agent Manifest (AGENTS.md)

The manifest file defines the agent's basic information and required permissions/skills:

# Agent Manifest

## Identity
- **Name**: My AIUI Agent
- **Version**: 1.0.0
- **Description**: A brief application description.
- **Author**: Developer Name

## Capabilities
- **Permissions**:
  - camera
  - microphone
  - network
  - audio
- **Skills**:
  - weather-lookup

1.2 Global Configuration (app.json)

Defines application page paths and global UI styles:

{
  "pages": [
    "pages/index/index"
  ],
  "window": {
    "navigationBarTitleText": "My AIUI Agent",
    "viewport": {
      "width": "device-width"
    }
  }
}

1.3 Application Registration (app.js)

AIUI uses an ES module-based registration system, registering the application by exporting a default configuration object:

export default {
  onLaunch() {
    console.log('App Launch');
  },
  globalData: {
    userInfo: null
  }
};

1.4 Page Configuration (page.json)

In AIUI, each page acts as a Model Context Protocol (MCP) UI component. The configuration for each page is defined in its respective page.json (or within the <script def> block of an .ink file). This configuration declares the page's capabilities and the expected input parameters for rendering.

Key fields in page configuration:

  • description: A clear, natural language description of what the page UI represents or what task it accomplishes. This helps the AI or system understand the page's purpose.
  • schema: Defines the expected input data structure for rendering the UI.
  • data: A JSON Schema object specifying the properties, types, and required fields needed to populate the page's initial state.

Example Page Configuration:

{
  "navigationBarTitleText": "Weather Card",
  "description": "A UI component that displays the current weather conditions for a specific city.",
  "schema": {
    "data": {
      "type": "object",
      "properties": {
        "city": {
          "type": "string",
          "description": "The name of the city"
        },
        "temperature": {
          "type": "number",
          "description": "Current temperature in Celsius"
        },
        "condition": {
          "type": "string",
          "enum": ["sunny", "rainy", "cloudy", "snowy"]
        }
      },
      "required": ["city", "temperature", "condition"]
    }
  }
}

2. Single File Component (SFC) .ink Specification

In AIUI, page development is recommended to use the Single File Component (SFC) format, which is the .ink file. This format centralizes the page's configuration, logic, structure, and style in a single file.

A standard .ink file structure contains four main tag blocks:

  1. <script def>: Used to define page-level JSON configuration, such as the navigation bar title.
  2. <script setup>: Contains the page's JavaScript logic code, exporting the page configuration object (including data, lifecycle hooks, custom methods, etc.) via export default.
  3. <page>: The page's template structure (WXML-like syntax).
  4. <style>: The page's stylesheet (CSS).

2.1 .ink Example Code:

<script def>
{
  "navigationBarTitleText": "Home"
}
</script>

<script setup>
import wx from 'wx';

export default {
  data: {
    greeting: 'Hello AIUI!'
  },
  onLoad() {
    console.log('Page loaded');
  },
  handleTap() {
    this.setData({
      greeting: 'Hello, World!'
    });
  }
}
</script>

<page>
  <view class="container">
    <text class="title">{{ greeting }}</text>
    <button bindtap="handleTap">Click Me</button>
  </view>
</page>

<style>
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.title {
  font-size: 24px;
  margin-bottom: 20px;
}
</style>

3. WXML (WeiXin Markup Language) & Components

In AIUI, the structure of a page is described using WXML (WeiXin Markup Language), which is used within the <page> tag of an .ink file (or a standalone .wxml file). It allows you to build user interfaces using components, data binding, and conditional rendering.

3.1 Basic Syntax and Data Binding

WXML uses double curly braces {{ }} for data binding. You can bind properties from your page's data object directly to the UI.

<!-- Text binding -->
<view>{{ message }}</view>

<!-- Attribute binding -->
<view class="{{ dynamicClass }}"></view>

<!-- Expression binding -->
<view>{{ count + 1 }}</view>

3.2 Directives (Conditional Rendering and Lists)

AIUI supports conditional rendering using the ink:if, ink:elif, and ink:else directives to control whether a component is rendered based on a condition.

<view ink:if="{{condition === 1}}"> Rendered if condition is 1 </view>
<view ink:elif="{{condition === 2}}"> Rendered if condition is 2 </view>
<view ink:else> Rendered otherwise </view>

AIUI supports basic list rendering with ink:for, allowing you to repeat a component structure for each item in an array.

<view ink:for="{{cities}}" ink:key="name">
  <text>{{item.name}}</text>
  <text>{{item.temperature}}</text>
</view>

Use item to access the current element and index to access its position in the array. Prefer providing a stable ink:key when rendering dynamic collections.

> Current Limitation: Nested ink:for is not supported yet. Keep list rendering to a single level, and flatten data in JavaScript first when you need to present hierarchical content.

3.3 Built-in Components

AIUI provides a set of built-in components that you can use within your WXML templates. These components are mapped to native implementations for optimal performance.

For parameter-by-parameter documentation, event behavior, content model notes, and examples, see components.md. The reference there is intentionally aligned with the current component registry and implementation details in ink-builtin-components.

For runtime API details, constructor behavior, supported overloads, and current implementation limits, see apis.md. Use the linked domain reference files there when you need Canvas, wx, device, media, or AI-specific details.

  • <view>: The fundamental layout container, similar to <div> in HTML.
  • <text>: Displays text content. Similar to <span> in HTML.
  • <icon>: An icon-like text element currently rendered through the text component implementation.
  • <image>: Displays local or remote images.
  • <button>: A standard clickable button component.
  • <canvas>: A component for custom 2D drawing.
  • <scroll-view>: A scrollable container for content that exceeds the visible area.
  • <chart>: A chart component supporting Line, Area, Pie, and Radar charts.
  • <lottie-view>: Renders Lottie animations from inline JSON, local files, or remote URLs.
  • <a2ui>: A specialized component for rendering agent-generated UI commands dynamically.
  • <error-state>: A compact status component that displays an optional icon with a message.

4. Events

AIUI supports event handling at different levels. Component interaction events are declared in WXML attributes such as bindtap, catchtap, bindinput, and bindchange. Page-level events are defined as methods on the exported page object.

4.1 Page-Level Events

If a page needs to react to framework-delivered hardware key input, define onKeyDown(event) and onKeyUp(event) on the exported page object.

These handlers are page methods, not WXML binding attributes. Put the logic on the page instance and update page state with this.setData(...) when needed.

<script setup>
export default {
  data: {
    lastKeyAction: 'None'
  },
  onKeyDown(event) {
    console.log('Key down:', event);
    this.setData({
      lastKeyAction: 'Key pressed'
    });
  },
  onKeyUp(event) {
    console.log('Key up:', event);
    this.setData({
      lastKeyAction: 'Key released'
    });
  }
}
</script>

<page>
  <view class="container">
    <text>Last key action: {{ lastKeyAction }}</text>
  </view>
</page>

Use this pattern when keyboard input should be handled by the page itself, such as shortcuts, directional navigation, or confirming actions from a hardware key.

5. WXSS (WeiXin Style Sheets)

WXSS is a style language used to describe the visual presentation of components. It is highly compatible with standard CSS and is used within the <style> block of an .ink file (or a standalone .wxss file).

5.1 Features

WXSS extends standard CSS with features tailored for mobile and wearable devices:

  • @import: You can use the @import statement to import external style sheets.
@import "./common.wxss";

.box {
  width: 240px;
  height: 100px;
  background-color: #40FF5E;
}

5.2 Selectors

AIUI supports most standard CSS selectors:

  • Class Selector (.class): The recommended way to style components.
  • ID Selector (#id).
  • Type Selector (element): e.g., view, text.
  • Combinators: Grouping (A, B), Descendant (A B), Child (A > B).

Recommendation: Prioritize using Class Selectors to ensure optimal rendering performance.

5.3 Layout

AIUI supports both Flexbox and Grid layout through the Ink CSS engine.

  • Flexbox is the primary and recommended choice for most one-dimensional layouts such as vertical stacks, horizontal toolbars, centered content, and card internals.
  • Grid is supported for two-dimensional layouts where rows and columns need to be controlled together.

Supported Flexbox properties include:

  • display: flex
  • flex-direction
  • flex-wrap
  • justify-content
  • align-items
  • flex-grow
  • flex-shrink
  • flex-basis
  • gap, row-gap, column-gap

Supported Grid properties include:

  • display: grid
  • grid-template-columns
  • grid-template-rows
  • grid-auto-columns
  • grid-auto-rows
  • grid-auto-flow
  • grid-column, grid-column-start, grid-column-end
  • grid-row, grid-row-start, grid-row-end
  • grid-area
  • align-content
  • justify-items
  • align-self
  • justify-self
  • gap, row-gap, column-gap

Prefer Flexbox when either layout model can work. Use Grid when the UI clearly benefits from explicit row and column placement.

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

5.4 Styling

AIUI supports a practical subset of CSS properties for visual styling. When generating styles, stay within the properties that are known to be supported by the Ink CSS engine.

Commonly supported styling properties include:

  • Box model and sizing: width, height, min-width, min-height, max-width, max-height, margin, padding, box-sizing
  • Positioning and overflow: position, inset, overflow, overflow-x, overflow-y, z-index
  • Colors and backgrounds: color, background-color, custom properties, and var(--token) references
  • Borders and outlines: border, border-width, border-style, border-color, border-radius, outline, outline-width, outline-style, outline-color, outline-offset
  • Typography: font-size, line-height, font-weight, font-family, font-style, font-variant, text-align, white-space, word-break
  • Effects and visibility: opacity, visibility, box-shadow, filter, transform, transform-origin
  • Motion: transition, transition-property, transition-duration, transition-timing-function, transition-delay, animation, animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode

Prefer simple, production-safe CSS. Do not assume browser-only features or unsupported CSS shorthands beyond what AIUI and Ink CSS explicitly support.

When styling AIUI interfaces:

  • Prefer AIUI's built-in theme tokens instead of hardcoding colors, spacing, border widths, or radii
  • Reference theme values with var(--token-name)
  • Keep custom properties semantically named when introducing new local tokens

Built-in green theme token reference:

Token Category Purpose
--app-width App layout Defines the standard application width.
--app-height-min App layout Defines the minimum recommended application height.
--app-height-max App layout Defines the maximum recommended application height.
--color-primary Core colors Primary brand and action color.
--color-primary-60 Core colors Reduced-opacity primary color for secondary emphasis.
--color-primary-40 Core colors Lower-opacity primary color for highlights and subtle fills.
--color-secondary Core colors Secondary accent color derived from the primary palette.
--color-background Core colors Default page or app background color.
--color-surface Core colors Surface color for cards and panels.
--color-surface-highlight Core colors Highlighted surface fill for selected or emphasized areas.
--color-text-primary Core colors Default high-priority text color.
--color-text-secondary Core colors Lower-emphasis text color for supporting copy.
--border-width-thin Borders and radii Thin border width for subtle separators and outlines.
--border-width-default Borders and radii Standard border width for common components.
--border-width-strong Borders and radii Heavy border width for strong emphasis.
--border-color-default Borders and radii Default border color for most components.
--border-color-muted Borders and radii Softer border color for low-emphasis dividers.
--border-color-strong Borders and radii Strong border color for emphasized boundaries.
--border-color-accent Borders and radii Accent border color for interactive or highlighted states.
--border-color-success Borders and radii Border color for success states.
--border-color-danger Borders and radii Border color for error or destructive states.
--border-color-warning Borders and radii Border color for warning states.
--border-color-highlight Borders and radii Border color for featured or highlighted elements.
--border-color-contrast Borders and radii High-contrast border color for strong separation.
--border-color-fallback Borders and radii Fallback border color when a semantic border token is unavailable.
--card-border-width Borders and radii Default border width for card components.
--card-border-color Borders and radii Default border color for card components.
--radius-sm Borders and radii Small corner radius.
--radius-md Borders and radii Medium corner radius used by standard components.
--spacing-sm Spacing Small spacing unit.
--spacing-md Spacing Medium spacing unit used for default padding and gaps.
--spacing-lg Spacing Large spacing unit for more open layouts.
--card-padding Card tokens Default inner padding for cards.
--card-title-font-size Card tokens Font size for card titles.
--card-title-gap Card tokens Gap between card title content and adjacent elements.
--card-footer-font-size Card tokens Font size for card footer content.
--card-footer-padding-y Card tokens Vertical padding for card footers.
--card-footer-margin-top Card tokens Top margin separating the footer from body content.
--card-divider-width Card tokens Divider thickness inside cards.
--card-divider-color Card tokens Divider color inside cards.
--card-cover-height Card tokens Standard media or cover area height for cards.
--card-cover-background Card tokens Background color for card cover regions.
--error-state-icon-size Error state tokens Icon size for error-state components.
--error-state-icon-gap Error state tokens Gap between error icon and text.
--error-state-font-size Error state tokens Font size for error-state text.
--error-state-text-color Error state tokens Text color for error-state content.
--error-state-background Error state tokens Background fill for error-state containers.
--error-state-border-width Error state tokens Border width for error-state containers.
--error-state-border-color Error state tokens Border color for error-state containers.
--input-background-color Input tokens Background color for input fields.
--input-border-width Input tokens Border width for input fields.
--input-border-color Input tokens Border color for input fields.
--input-placeholder-color Input tokens Text color for placeholder content.
--input-padding-y Input tokens Vertical padding inside inputs.
--input-padding-x Input tokens Horizontal padding inside inputs.
--input-radius Input tokens Corner radius for inputs.
--calendar-padding Calendar tokens Outer padding for calendar components.
--calendar-background Calendar tokens Background color for calendars.
--calendar-border-width Calendar tokens Border width for calendar containers.
--calendar-border-color Calendar tokens Border color for calendar containers.
--calendar-radius Calendar tokens Corner radius for calendar containers.
--calendar-title-gap Calendar tokens Gap around the calendar title area.
--calendar-title-font-size Calendar tokens Font size for calendar titles.
--calendar-title-color Calendar tokens Text color for calendar titles.
--calendar-weekday-gap Calendar tokens Gap between weekday labels.
--calendar-weekday-font-size Calendar tokens Font size for weekday labels.
--calendar-weekday-color Calendar tokens Text color for weekday labels.
--calendar-cell-min-height Calendar tokens Minimum height for day cells.
--calendar-cell-radius Calendar tokens Corner radius for calendar day cells.
--calendar-selected-indicator-size Calendar tokens Size of the selected-day indicator.
--calendar-day-font-size Calendar tokens Font size for day numbers.
--calendar-day-color Calendar tokens Text color for day numbers.
--calendar-annotation-font-size Calendar tokens Font size for day annotations or notes.
--calendar-holiday-color Calendar tokens Accent color used for holidays.
--calendar-event-color Calendar tokens Accent color used for events.
--calendar-marker-size Calendar tokens Size of event or holiday markers.
--calendar-holiday-marker-color Calendar tokens Marker color for holidays.
--calendar-event-marker-color Calendar tokens Marker color for events.
--calendar-outside-month-color Calendar tokens Text color for days outside the current month.
--calendar-selected-bg Calendar tokens Background color for the selected day.
--calendar-selected-color Calendar tokens Text color for the selected day.
--calendar-today-border-color Calendar tokens Border color used to indicate today.
--calendar-today-text-color Calendar tokens Text color used to indicate today.
--chart-color Chart tokens Primary chart color.
--chart-positive-color Chart tokens Color for positive chart values or trends.
--chart-negative-color Chart tokens Color for negative chart values or trends.
--chart-reference-color Chart tokens Color for reference lines or benchmarks.
--chart-stroke-color Chart tokens Default stroke color for chart lines and frames.
--chart-stroke-width Chart tokens Default stroke width for chart lines and frames.
--chart-radar-fill-color Chart tokens Fill color for radar chart areas.
--chart-fill-style Chart tokens Fill style mode used by chart rendering.
--chart-panel-background Chart tokens Background color for chart panels.
--chart-frame-background Chart tokens Background color for chart frames or plot areas.
--theme-color Compatibility tokens Compatibility token mapping to the main theme color.
--theme-bg Compatibility tokens Compatibility token mapping to the theme background.
--theme-border Compatibility tokens Compatibility token for a default themed border shorthand.
--theme-radius Compatibility tokens Compatibility token mapping to the default radius.
--theme-padding Compatibility tokens Compatibility token mapping to the default padding.

5.5 Fonts

AIUI applications can use both system fonts provided by the host platform and bundled custom fonts declared in app.json.

System fonts

For common cases, reference a system font directly in font-family or in a canvas 2D font string:

<text style="font-family: Arial, sans-serif; font-size: 18px;">
  System font example
</text>
const ctx = wx.createCanvasContext('myCanvas');
ctx.font = '18px Arial';
ctx.fillText('Canvas system font example', 12, 40);

Recommendations:

  • Prefer a fallback chain such as Arial, sans-serif instead of a single family.
  • Do not assume every platform ships the same system fonts.
  • Test the final visual result on the actual target host.

Bundled custom fonts

If the UI requires a specific typeface, declare it in app.json under fonts. The runtime bundles the font files with the app and lets both text rendering and canvas rendering reuse the same family name.

{
  "pages": [
    "pages/index/index"
  ],
  "fonts": [
    {
      "family": "Bundled Serif",
      "src": "assets/fonts/NotoSerif-Regular.ttf",
      "weight": 400,
      "style": "normal"
    },
    {
      "family": "Bundled Serif",
      "src": "assets/fonts/NotoSerif-BoldItalic.ttf",
      "weight": 700,
      "style": "italic"
    }
  ]
}

After declaration, reference the family name exactly as declared:

<text style="font-family: 'Bundled Serif', serif; font-size: 20px;">
  Bundled font example
</text>
const ctx = wx.createCanvasContext('myCanvas');
ctx.font = 'italic 700 24px "Bundled Serif"';
ctx.fillText('Canvas uses bundled fonts', 12, 40);

ctx.font = '24px "Bundled Serif"';
ctx.fillText('Missing glyphs still fall back to system fonts', 12, 80);

Bundled font notes:

  • font-family and canvas font share the same bundled family name.
  • When multiple weights or styles are declared for one family, the nearest matching face is selected automatically.
  • If a bundled resource is missing or cannot be parsed, the app falls back to system fonts.
  • Store bundled font files under app-owned assets such as assets/fonts/ so they can be packaged with the app.
  • Prefer a generic fallback family such as serif or sans-serif after the bundled family name.

When generating AIUI code:

  • Use app.json fonts only when the UI explicitly needs a non-system typeface.
  • Keep family names consistent between app.json, WXSS, inline style, and canvas font strings.
  • Do not assume web font loading patterns such as remote @font-face URLs.

6. Design Guidelines

When developing AIUI applications, especially for wearable devices, it is crucial to follow these design guidelines to ensure a consistent and user-friendly experience.

6.1 Dimensions and Layout

  • Width: The application width is strictly 480px.
  • Height: The recommended application height is between 120px and 380px. Avoid creating overly tall pages that require excessive scrolling.
  • Card Style: It is highly recommended to use a Card Style layout for each page. This provides a clear boundary and better visual focus in the spatial environment.
  • Default Background: Use black as the default background color.
  • Default Border: Use a 2px border as the default border width for cards and key interactive elements.
  • Border Radius: The recommended border radius (e.g., for cards, buttons, and images) is 12px.

6.2 Color Palette

  • Theme First: Prefer AIUI's built-in theme tokens as the public styling interface.
  • Token Usage: Use var(--color-primary), var(--color-text-primary), var(--color-background), var(--spacing-md), var(--radius-md), and related semantic tokens before introducing hardcoded values.
  • Green Theme Reference: If you intentionally target the green wearable visual language, prefer the built-in green theme tokens instead of hardcoding #40FF5E, rgba(64, 255, 94, 0.6), or rgba(64, 255, 94, 0.4) directly.
  • Default Text Color: Prefer semantic text tokens such as var(--color-text-primary) or var(--color-text-secondary) unless a specific component token is more appropriate.

6.3 Prohibitions

  • DO NOT use emoji in generated UI copy, labels, status text, or decorative content by default. Emoji may only be used when the developer explicitly requests them or the product requirements clearly require them.
  • DO NOT use large areas of solid color blocks. This can be visually overwhelming and uncomfortable on wearable displays. Keep backgrounds subtle and use colors primarily for accents, text, and interactive elements.

7. AIUI API Reference

The detailed runtime API index lives in apis.md. It links to domain-specific reference files for Canvas, wx, device, media, and AI APIs.

When generating code:

  • Treat apis.md and its linked domain reference files as the source of truth for currently supported API shapes and behaviors.
  • Follow the implementation-aligned definitions there instead of assuming standard Web API compatibility.
  • Do not infer unlisted overloads, return shapes, or browser semantics.

8. Usage Examples (WeChat APIs)

Take a Photo with Camera

import wx from 'wx';

const camera = wx.media.createCameraContext();
const photo = await camera.takePhoto({ quality: 'high' });
console.log('Image data size:', photo.data.byteLength);

Crypto & UUID Generation

const uuid = crypto.randomUUID();
const hash = await crypto.subtle.digest('SHA-256', new TextEncoder().encode('hello AIUI'));

常见问题

5 问
答案由本站依据条目字段整理
Rokid AIUI 智能体开发怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_cd36c53d/rokid-aiui-dev。安装方式为未标注。装完刷新技能列表或重开客户端。

Rokid AIUI 智能体开发支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Rokid AIUI 智能体开发权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Rokid AIUI 智能体开发收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Rokid AIUI 智能体开发用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。