docs(plays): guide developers to check plays before a new project

Add a "before developing a new play" section to the plays README that directs
developers to check the application archive for an existing or reference project
before starting from scratch, and reference plays/ from the repository overview
start-development guidance. Follow the bilingual convention.
This commit is contained in:
Shinku committed 2026-08-27 02:16:56 +08:00
1 parent 3075d1181e
commit 7618c4bfa6
4 files changed
+35 -2

No files matched your search

+5 -1
View File
@@ -43,12 +43,16 @@ A simple request can be given directly to an AI assistant:
```text
On the main branch, build an offline habit-tracking application for FoloToy AI Passport.
Use the three physical buttons and the 240×320 display, and preserve records across power loss.
Follow AGENTS.md and docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md. Inspect relevant demo branches first,
Follow AGENTS.md and docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md. Inspect relevant demo branches and plays/ applications first,
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.
```
Before starting, check [`plays/`](../plays/README.md) for an existing or reference
application and the demo branches; see the application archive for what is already
built and reusable.
The more specific the requirement, the more likely the assistant is to implement it correctly in one pass. Useful details include:
- User flow: what each page displays and what short press, double press, and long press do for each button.
+4 -1
View File
@@ -43,11 +43,14 @@ FoloToy AI Passport 是一个开放式可穿戴 AI 硬件,本仓库是这款 A
```text
请基于 main 分支为 FoloToy AI Passport 开发一个离线习惯打卡应用。
使用三个实体按键和 240×320 屏幕,记录保存在掉电不丢失的存储中。
遵守 AGENTS.md 和 docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md;先查找相关 demo 分支,
遵守 AGENTS.md 和 docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md;先查找相关 demo 分支与 plays/ 应用,
保持硬件逻辑在 components/bsp、应用逻辑在 main,完成可运行实现与测试,
最后分别报告构建结果、未执行的真机项目和逐项验收方法。
```
开始前先看 [`plays/`](../plays/README.md) 有没有已存在或可参考的应用,以及相关 demo 分支;
应用档案里列出了已经构建好、可复用的东西。
需求越具体,AI 助手越容易一次实现正确。建议说明:
- 用户流程:每个页面显示什么,三个按键的短按、双击、长按分别做什么;
+15
View File
@@ -11,6 +11,21 @@ the community publishing flow: after publishing a firmware
([`docs/development/publish-to-community.md`](../docs/development/publish-to-community.md)),
the assistant asks whether to archive the application here.
## Before developing a new play
Before starting a new application, check `plays/` for an existing or reference
project to build on instead of from scratch:
- List the archived applications under `plays/` and read their functional
summaries to see whether one already covers the idea.
- Reuse applicable design ideas, interaction patterns, or state models from an
existing play rather than re-inventing them.
- When none exists, note that a new `plays/<app-name>/` archive will be created
later, when the application is published.
Each play subdirectory is an archive of a real, working application; its summary
is the starting point for deciding whether to extend or reference it.
## Directory convention
Each application gets its own subdirectory, named after the application in
Loaded 3 of 4 files, more files were not shown because too many files have changed in this diff. Show more