Merge pull request #60 from FoloToy/feature/required-ai-development-skills

feat(workflow): add required skills and mandate application UI redesign
This commit is contained in:
Cjiio authored and GitHub committed 2026-09-16 15:51:25 +08:00 Unverified
commit 25add0044c
34 files changed
+2300 -27

No files matched your search

+3 -2
View File
@@ -48,6 +48,7 @@ Follow AGENTS.md and docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md. Insp
keep hardware logic in components/bsp and application logic in main, deliver a runnable
implementation with tests, and report the build result, unexecuted device checks, and exact
on-device acceptance steps separately.
Redesign the application's UI; do not use the current demo test menu or screens.
```
Before starting, check [`reference/`](reference/README.md) for an existing or
@@ -59,7 +60,7 @@ The more specific the requirement, the more likely the assistant is to implement
- User flow: what each page displays and what short press, double press, and long press do for each button.
- State and data: whether the application needs timing, persistence across power loss, networking, recording, or communication with a computer.
- Experience goals: fonts, colors, animation, sound, response time, and error states.
- Constraints: whether the main menu may be replaced, dependencies added, Flash used, or default interactions changed.
- Constraints: application navigation and controls, permitted dependencies, and Flash/data usage. The baseline test menu is not an application UI option.
- Acceptance criteria: which behaviors require automated tests and which must be observed on real hardware.
When details are omitted, the assistant may choose conservative defaults that do not change the product direction, but it must list those assumptions in the delivery. Decisions involving new wiring, electrical safety, board revisions, or irreversible data formats require confirmation first.
@@ -68,7 +69,7 @@ When details are omitted, the assistant may choose conservative defaults that do
Each `demo/*` branch evolves the baseline into an independent application. The branches demonstrate how specific problems were solved. New applications should normally branch from `main` and consult relevant examples instead of merging multiple demos wholesale.
The menu and `demo_*.c` pages on `main` are also hardware-capability demonstrations, not a ready-made product UI. A new application must redesign and implement its screens and interaction flow for its own requirements rather than directly using or copying the current demo interface. BSP APIs, lifecycle patterns, and isolated logic may still be reused.
The menu and `demo_*.c` pages on `main` are hardware-capability tests, not an application UI. Every derivative application must redesign and implement its own screens and interaction flow; using the current test menu, screens, or visual shell is prohibited. Renaming or recoloring them does not satisfy this requirement. BSP APIs, ordinary LVGL widgets, lifecycle patterns, and isolated logic may still be reused. See the [mandatory UI redesign rule](development/ai-guide.md#mandatory-ui-redesign-for-derivative-applications); maintenance of the baseline hardware-test demo itself is a separate task.
| Branch | Application | Patterns worth reusing |
| --- | --- | --- |
+3 -2
View File
@@ -47,6 +47,7 @@ FoloToy AI Passport 是一个开放式可穿戴 AI 硬件,本仓库是这款 A
遵守 AGENTS.md 和 docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md;先查找相关 demo 分支与 plays/ 应用,
保持硬件逻辑在 components/bsp、应用逻辑在 main,完成可运行实现与测试,
最后分别报告构建结果、未执行的真机项目和逐项验收方法。
必须重新设计应用 UI,禁止使用当前 demo 测试菜单和页面。
```
开始前先看 [`reference/`](reference/README.zh_CN.md) 有没有已存在或可参考的应用、以及已沉淀、可复用的经验,再配合相关 demo 分支。
@@ -57,7 +58,7 @@ FoloToy AI Passport 是一个开放式可穿戴 AI 硬件,本仓库是这款 A
- 用户流程:每个页面显示什么,三个按键的短按、双击、长按分别做什么;
- 状态与数据:是否计时、断电保存、联网、录音或与电脑通信;
- 体验目标:字体、颜色、动画、声音、响应时间和异常状态;
- 限制条件:是否允许替换主菜单、增加依赖、使用 Flash 或改变默认交互;
- 限制条件:应用导航与按键设计、允许的依赖以及 Flash/数据使用范围;基线测试菜单不能作为应用 UI 选项;
- 验收标准:哪些行为必须自动测试,哪些必须在真实硬件观察。
若需求没有给出所有细节,AI 助手可以在不改变产品方向的范围内采用保守默认值,但应在交付中列出这些假设。涉及新接线、电源安全、硬件版本或不可恢复数据格式的决定必须先确认。
@@ -66,7 +67,7 @@ FoloToy AI Passport 是一个开放式可穿戴 AI 硬件,本仓库是这款 A
每个 `demo/*` 分支都从基线演化出一个独立应用。它们的价值是展示具体问题的实现方式;新应用通常应从 `main` 建分支,按需参考,而不是把多个 demo 整体合并。
`main` 上的菜单和 `demo_*.c` 页面同样只是硬件能力展示与验证界面,不是可直接使用的成品 UI。新开发应用必须根据自身需求重新设计并实现页面与交互流程,不能直接使用或照搬当前 demo 界面;BSP API、生命周期模式和已拆分的纯逻辑仍可按需复用。
`main` 上的菜单和 `demo_*.c` 页面只是硬件能力测试界面,不是应用 UI。所有二次开发应用都必须重新设计并实现页面与交互流程,禁止使用当前测试菜单、页面或界面外壳;改名、换颜色不算满足要求。BSP API、普通 LVGL 控件、生命周期模式和独立逻辑仍可复用。详见[强制 UI 重新设计规则](development/ai-guide.zh_CN.md#二次开发-ui-强制重新设计);维护基线硬件测试 demo 本身属于另一类任务。
| 分支 | 展示的应用 | 值得复用的模式 |
| --- | --- | --- |
+1
View File
@@ -9,6 +9,7 @@ This directory contains AI Passport engineering rules and reusable workflows, gr
## AI workflow
- [ai-guide.md](ai-guide.md): AI-assisted development workflow.
- [Core AI skills](../../skills/README.md): development, setup, build, device testing, and diagnosis; installation and usage examples.
## Engineering
Loaded 3 of 34 files, more files were not shown because too many files have changed in this diff. Show more