--- name: "aiui-dev" description: "Develop and debug AIUI agents, Pages, Widgets, Agent Workers, built-in components, WXSS, and runtime APIs. Use when generating or reviewing AIUI .ink, app.json, page logic, UI, or API integrations." --- # AIUI Development Build AIUI agents from the current contracts in this skill. Do not assume an API, component, CSS property, browser behavior, or lifecycle merely because it exists on the Web or in WeChat Mini Programs. ## Load Only What the Task Needs - Read [framework.md](./references/framework.md) for project structure, `app.json`, Page, Widget, Agent Worker, SFC, modules, resources, packaging, or TypeScript. - Read [events.md](./references/events.md) for lifecycle, interaction, key, focus, voice wakeup, head gesture, and environment-awareness events. - Read [components.md](./references/components.md) before using or reviewing built-in components and their attributes or events. - Read [wxss.md](./references/wxss.md) before writing styles, layout, selectors, animation, or custom fonts. - For keyframes, animation events, text-triggered decorations, or 2D transforms, also read [animation.md](./references/animation.md). - Read [monochrome-green.md](./references/design/monochrome-green.md) only for the monochrome-green Rokid Glasses visual language. - Read [full-color.md](./references/design/full-color.md) for the Rokid Color full-color visual language and adaptive layouts. - Read [APIs index](./references/apis/index.md), then its matching domain file, before using runtime APIs. - For recording source selection or microphone modes, read [media APIs](./references/apis/media.md#recording-source-and-microphone-mode). - For Widget or Agent Worker instance methods, read [Widget API](./references/apis/widget.md) or [Agent Worker API](./references/apis/agent-worker.md). - Read and apply [delivery checklist](./references/checklist.md) before declaring a generated or modified AIUI agent complete. - Start from the matching scaffold when useful: [minimal Page](./assets/minimal-page.ink), [minimal Widget](./assets/minimal-widget.ink), or [minimal Agent Worker](./assets/minimal-agent-worker.js). Do not load every reference for a narrow task. For example, an Agent Worker normally needs `framework.md`, `events.md`, and `apis/agent-worker.md`, but not Canvas or the full component catalog. ## Core Authoring Rules - Register App, Page, Widget, Component, and Agent Worker logic with `export default { ... }`; do not use `App()`, `Page()`, `Widget()`, or similar registration functions. - Use either a multi-file Page or a single `.ink` Page for one route, never both. - A `.ink` Page uses `