wot-ui-v2
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWot UI V2 Skill
Wot UI V2 Skill
这个 skill 用于让 Agent 在处理 wot-ui v2 相关任务时,优先采用组件库既有能力、遵守 uni-app 场景限制,并结合本仓库提供的 CLI 查询离线知识。
wotThis skill is designed to enable the Agent to prioritize the existing capabilities of the component library, comply with uni-app scenario constraints, and use the CLI provided in this repository to query offline knowledge when handling tasks related to wot-ui v2.
wot适用场景
Applicable Scenarios
- 用户询问某个 组件的基础用法、属性、事件、插槽或样式变量。
wd-* - 需要生成或重构 的 wot-ui 页面或组件代码。
uni-app + Vue 3 + TypeScript - 需要在 、主题变量、暗黑模式、国际化、反馈类 hooks、表单等场景下给出正确做法。
ConfigProvider - 需要排查文档中常见的 、
Toast、Dialog、Popup、Tabs、样式覆盖问题。Slider - 用户只是泛化地提到主题定制,但还没有明确要求按“单文件主题 SCSS + App.vue 只 ”的结构生成时。
@use
- Users inquire about the basic usage, properties, events, slots, or style variables of a component.
wd-* - Need to generate or refactor wot-ui page or component code for .
uni-app + Vue 3 + TypeScript - Need to provide correct practices in scenarios such as , theme variables, dark mode, internationalization, feedback hooks, forms, etc.
ConfigProvider - Need to troubleshoot common issues in the documentation such as ,
Toast,Dialog,Popup,Tabs, and style overriding problems.Slider - Users mention theme customization generally without explicitly requiring generation according to the structure of "single-file theme SCSS + only in App.vue".
@use
推荐流程
Recommended Process
- 先用本仓库 CLI 或 MCP 工具查组件知识。
- 再根据项目实际安装方式决定导入路径与集成方式。
- 优先复用现成的 组件、hooks、主题变量与组合模式,不要退化成原生标签堆砌。
wd-* - 如果问题涉及约束或坑位,再查阅 参考知识。
- 如果用户明确要求生成 单文件主题,并把挂载逻辑收进主题文件,优先切换到
src/themes/styles/{主题名}.scssskill。create-wot-ui-theme
- First use the repository's CLI or MCP tool to query component knowledge.
- Then determine the import path and integration method based on the actual installation method of the project.
- Prioritize reusing existing components, hooks, theme variables, and combination patterns instead of falling back to native tag stacking.
wd-* - If the problem involves constraints or pitfalls, refer to Reference Knowledge.
- If the user explicitly requires generating a single-file theme and putting the mounting logic into the theme file, switch to the
src/themes/styles/{theme-name}.scssskill first.create-wot-ui-theme
查询顺序
Query Order
- 找组件名。
wot list - 看 props、events、slots、CSS 变量。
wot info <Component> - 看 demo 名称或具体 demo 代码。
wot demo <Component> - 看完整 markdown 文档。
wot doc <Component> - 看主题变量。
wot token <Component>
- Use to find component names.
wot list - Use to view props, events, slots, and CSS variables.
wot info <Component> - Use to view demo names or specific demo code.
wot demo <Component> - Use to view the complete markdown documentation.
wot doc <Component> - Use to view theme variables.
wot token <Component>
工作规则
Working Rules
- 默认把 wot-ui 视为 组件库。
uni-app + Vue 3 + TypeScript - 写页面时优先输出 风格。
script setup - 反馈类能力如 、
useToast、useDialog、useNotify、useImagePreview,除了 hook 调用外,通常还需要页面内显式声明对应组件实例。useVideoPreview - 文档里经常出现 导入路径;如果用户项目采用 npm 安装,应切换成
@/uni_modules/wot-ui。@wot-ui/ui - 主题定制优先走 和 CSS 变量,不优先建议深度覆盖内部类名。
ConfigProvider - 生成代码时尽量沿用组件库文档里的命名和交互模式,例如 、
v-model:visible、before-confirm、confirm、change、custom-class。custom-style
- By default, wot-ui is regarded as a component library.
uni-app + Vue 3 + TypeScript - Prioritize outputting in style when writing pages.
script setup - For feedback capabilities such as ,
useToast,useDialog,useNotify,useImagePreview, in addition to hook calls, corresponding component instances usually need to be explicitly declared in the page.useVideoPreview - The import path often appears in the documentation; if the user's project uses npm installation, it should be switched to
@/uni_modules/wot-ui.@wot-ui/ui - For theme customization, prioritize using and CSS variables instead of deeply overriding internal class names.
ConfigProvider - Try to follow the naming and interaction patterns in the component library documentation when generating code, such as ,
v-model:visible,before-confirm,confirm,change,custom-class.custom-style
参考资料
Reference Materials
- Wot UI V2 概览
- Wot UI V2 Overview