← 返回
未分类

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 `....
构建、编辑、调试并打包 Xiaomi Vela JS 快应用,适用于小米手环10等可穿戴设备。当用户要求创建 Vela 快应用、修改 `...` 时使用。
tlrenhb tlrenhb 来源
未分类 clawhub v1.0.0 1 版本 99668.9 Key: 无需
★ 0
Stars
📥 301
下载
💾 0
安装
1
版本
#latest

概述

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//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 && 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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 12:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,416
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,378 📥 320,410
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,226 📥 267,814