返回顶部
v

vela-dev

Build, edit, debug, and package Xiaomi Vela JS quick apps for wearable devices such as Xiaomi Band 10. Use when the user asks to create a Vela 快应用, modify `.ux` pages, fix `npx aiot build` errors, adapt UI for 手环屏幕, or package/send `.rpk` apps. Covers project scaffolding, manifest/app/config creation, Vela component/event/style constraints, and iterative build-debug loops.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
61
下载量
0
收藏
概述
安装方式
版本历史

vela-dev

# Vela Dev Use this skill when working on Xiaomi Vela JS wearable quick apps. ## What this skill is for - Create a new Vela quick app from scratch - Edit existing `.ux` pages - Fix build errors from `npx aiot build` - Adapt UI for Xiaomi Band / Watch screens - Package an `.rpk` for delivery ## Workflow 1. Identify whether the user wants a **new app** or edits to an **existing Vela project**. 2. If new, scaffold the minimum required files: - `src/manifest.json` - `src/app.ux` - `src/config-watch.json` - at least one page like `src/pages/<name>/index.ux` 3. Prefer a **single-page app with internal state switching** unless the app clearly benefits from router-based multi-page navigation. 4. Build with: - `cd <project> && npx aiot build` 5. If build fails, inspect the exact error and patch surgically. 6. Only send/package the `.rpk` after a successful build. ## Xiaomi Band / Vela constraints Read `references/vela-notes.md` when you need practical constraints and common fixes. Important defaults: - Xiaomi Band 10 uses a **212x520 跑道屏** style layout. - Frontend apps should feel **foreground-first**: quick open, quick action, quick exit. - Avoid overstuffed home screens. Prefer vertical lists/cards. - Symbol glyph buttons like `↺` `⏸` `▶` `⏭` may not render reliably on device; prefer plain Chinese text. - When in doubt, choose larger touch targets and fewer simultaneous actions. ## Build/debug loop After each meaningful edit: - Run `npx aiot build` - If needed, filter logs with grep for `success|error|Error` - Fix the reported file/line first before changing anything else Common failure classes are documented in `references/vela-notes.md`. ## Event/style rules Read `references/ux-gotchas.md` when build errors point to template/event/CSS issues. Key reminders: - Vela event handlers are strict; avoid unsupported template expression forms in `onclick` - Broken CSS blocks can produce `UxLoader` / `Unexpected }` - Prefer simple, explicit structure over clever templating ## Project template If the user asks for a fresh app, copy or adapt files from `assets/template/`. ## Deliverables Typical successful output includes: - working project folder - successful `npx aiot build` - generated `.rpk` path from `dist/` ## When to read extra files - For practical Vela constraints and prior lessons: read `references/vela-notes.md` - For template/event/style pitfalls: read `references/ux-gotchas.md` - For official documentation entry points and what to consult: read `references/docs-map.md` - For a reusable end-to-end implementation/debug loop: read `references/dev-workflow.md` - For fresh project scaffolding: inspect `assets/template/` ## Documentation-backed behavior When you need authoritative confirmation: 1. Start with `references/docs-map.md` 2. Open the matching official doc page 3. Apply the smallest viable change 4. Rebuild immediately Prefer official docs for: - component capability questions - feature API availability - project structure uncertainty - framework/lifecycle questions Prefer local reference notes for: - previously observed build pitfalls - Band 10-specific practical constraints - project patterns that already worked here

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 vela-dev-1775959517 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 vela-dev-1775959517 技能

通过命令行安装

skillhub install vela-dev-1775959517

下载 Zip 包

⬇ 下载 vela-dev v1.0.0

文件大小: 6.7 KB | 发布时间: 2026-4-13 12:27

v1.0.0 最新 2026-4-13 12:27
Initial release of vela-dev skill for Xiaomi Vela JS quick app development.

- Supports building, editing, and debugging quick apps for Xiaomi wearables (e.g., Band 10)
- Guides scaffolding new projects and modifying `.ux` pages
- Provides troubleshooting steps for `npx aiot build` errors
- Includes tips for UI adaptation to wearable device constraints
- Outlines packaging `.rpk` files for app delivery
- References key documentation and common development pitfalls

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部