From 7618c4bfa6a5056e8e939ac7673767ebe8cf31fc Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Thu, 27 Aug 2026 02:16:56 +0800 Subject: [PATCH] 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. --- docs/README.md | 6 +++++- docs/README.zh_CN.md | 5 ++++- plays/README.md | 15 +++++++++++++++ plays/README.zh_CN.md | 11 +++++++++++ 4 files changed, 35 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index cb75d5c..2f4f6e0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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. diff --git a/docs/README.zh_CN.md b/docs/README.zh_CN.md index 40365f0..d586bad 100644 --- a/docs/README.zh_CN.md +++ b/docs/README.zh_CN.md @@ -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 助手越容易一次实现正确。建议说明: - 用户流程:每个页面显示什么,三个按键的短按、双击、长按分别做什么; diff --git a/plays/README.md b/plays/README.md index 907379e..6a5dcbc 100644 --- a/plays/README.md +++ b/plays/README.md @@ -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//` 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 diff --git a/plays/README.zh_CN.md b/plays/README.zh_CN.md index d6c66ba..b09864b 100644 --- a/plays/README.zh_CN.md +++ b/plays/README.zh_CN.md @@ -9,6 +9,17 @@ ([`docs/development/publish-to-community.md`](../docs/development/publish-to-community.md)), 助手会询问是否把这个应用归档到这里。 +## 开发新应用之前 + +开发新应用前,先查 `plays/` 里有没有已存在或可参考的项目,站在现有基础上做,而不是从零开始: + +- 列出 `plays/` 下已归档的应用,读它们的功能说明,看是否已覆盖你的想法。 +- 复用已有应用里合适的设计思路、交互模式或状态模型,而不是重新发明。 +- 若没有合适的,记到将来该应用发布时再新建 `plays//` 档案。 + +每个 plays 子目录都是一个真实、可运行应用的档案;它的功能说明是你决定"扩展它还是参考它" +的起点。 + ## 目录约定 每个应用一个子目录,目录名 = 应用名(小写连字符)。仅在应用发布或准备记录时建档,不要预先