From 1658cc22db97bc69d0dcfc33d59e0d222232c058 Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Fri, 28 Aug 2026 16:58:44 +0800 Subject: [PATCH] docs(project-completion): resolve conflicts and restore verification Address review feedback: - Make all six actions optional; README update (E) is the default companion of archiving (D), not a standalone requirement. - Restore the post-release full-build hardware verification that the old after-release flow carried and was dropped in the rework. - Align archive path with the plays convention (plays///). - Align the three text-only rules: plays/README, plays-archive skill, and the archive-plays action now all record the cover by file name/format only. - Build the merged full image with ./tools/validate.sh --firmware (not idf.py build); confirm commit/push/tag/release separately in action B. - Rename the entry point from post-release follow-up to project completion in AGENTS, the indexes, and cross-references. --- AGENTS.md | 2 +- AGENTS.zh_CN.md | 2 +- docs/INDEX.md | 2 +- docs/INDEX.zh_CN.md | 2 +- docs/development/README.md | 2 +- docs/development/README.zh_CN.md | 2 +- docs/development/file-issues.md | 2 +- docs/development/file-issues.zh_CN.md | 2 +- docs/development/project-completion.md | 18 ++++++++++ docs/development/project-completion.zh_CN.md | 6 ++++ .../project-completion/archive-plays.md | 5 +-- .../project-completion/archive-plays.zh_CN.md | 2 +- .../publish-to-community.md | 6 ++-- .../publish-to-community.zh_CN.md | 2 +- .../project-completion/readme-update.md | 10 +++--- .../project-completion/readme-update.zh_CN.md | 4 +-- .../project-completion/release-update.md | 17 ++++++--- .../release-update.zh_CN.md | 9 +++-- docs/development/publish-to-community.md | 2 +- .../development/publish-to-community.zh_CN.md | 2 +- plays/README.md | 36 ++++++++++--------- plays/README.zh_CN.md | 23 ++++++------ skills/experience-pr/SKILL.md | 2 +- skills/experience-pr/SKILL.zh_CN.md | 2 +- skills/issue-suggestions/SKILL.md | 2 +- skills/issue-suggestions/SKILL.zh_CN.md | 2 +- skills/plays-archive/SKILL.md | 18 +++++----- skills/plays-archive/SKILL.zh_CN.md | 13 +++---- 28 files changed, 120 insertions(+), 77 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 8701cd8..e2a181e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -29,7 +29,7 @@ This file is the only mandatory entry point for AI-assisted work in this reposit | Demo or menu | `main/demo.h`, `main/main.c`, the nearest `main/demo_*.c` implementation | | Build, test, dependencies, partitions | `docs/development/build-and-test.md`, `sdkconfig.defaults`, `partitions.csv` | | CI or release | the matching file in `docs/development/CI-*.md` and `.github/workflows/` | -| Post-release follow-up | `docs/development/project-completion.md` (then the `issue-suggestions` or `experience-pr` skill) | +| Project completion | `docs/development/project-completion.md` (then the `issue-suggestions` or `experience-pr` skill) | | Documentation | `docs/contribution/doc-conventions.md`, `docs/INDEX.md` | | Commit or PR | `docs/contribution/commit-and-pr.md` | diff --git a/AGENTS.zh_CN.md b/AGENTS.zh_CN.md index 004ab8f..3014d82 100644 --- a/AGENTS.zh_CN.md +++ b/AGENTS.zh_CN.md @@ -29,7 +29,7 @@ | Demo 或菜单 | `main/demo.h`、`main/main.c`、最近的 `main/demo_*.c` 实现 | | 构建、测试、依赖、分区 | `docs/development/build-and-test.zh_CN.md`、`sdkconfig.defaults`、`partitions.csv` | | CI 或发布 | `docs/development/CI-*.zh_CN.md` 中的对应文件与 `.github/workflows/` | -| 发布后收尾 | `docs/development/project-completion.zh_CN.md`(再进入 `issue-suggestions` 或 `experience-pr` skill) | +| 项目开发完成 | `docs/development/project-completion.zh_CN.md`(再进入 `issue-suggestions` 或 `experience-pr` skill) | | 文档 | `docs/contribution/doc-conventions.zh_CN.md`、`docs/INDEX.zh_CN.md` | | Commit 或 PR | `docs/contribution/commit-and-pr.zh_CN.md` | diff --git a/docs/INDEX.md b/docs/INDEX.md index 82aa9c5..7d7a2a5 100644 --- a/docs/INDEX.md +++ b/docs/INDEX.md @@ -23,7 +23,7 @@ Use this page to discover repository documentation. `authoritative` documents de | [development/CI-build-and-release.md](development/CI-build-and-release.md) | Tagged firmware builds and releases | authoritative | | [development/CI-sync-main.md](development/CI-sync-main.md) | Fork upstream synchronization | authoritative | | [development/publish-to-community.md](development/publish-to-community.md) | Publish firmware to the AI Passport community market | authoritative | -| [development/project-completion.md](development/project-completion.md) | Post-release follow-up for suggestions and experience | authoritative | +| [development/project-completion.md](development/project-completion.md) | Project completion flow (optional closing actions) | authoritative | | [development/file-issues.md](development/file-issues.md) | Filing a suggestion as an upstream GitHub issue | authoritative | | [development/experience-notes.md](development/experience-notes.md) | Index of development experience entries under `docs/experiences/` | reference | | [fork-guide.md](fork-guide.md) | Fork branch and documentation workflow | authoritative | diff --git a/docs/INDEX.zh_CN.md b/docs/INDEX.zh_CN.md index 859baba..83f1bff 100644 --- a/docs/INDEX.zh_CN.md +++ b/docs/INDEX.zh_CN.md @@ -24,7 +24,7 @@ | [development/CI-validation.zh_CN.md](./development/CI-validation.zh_CN.md) | CI 文档 | authoritative | PR/main 自动仓库检查、host tests 与固件验证 | | [development/CI-sync-main.zh_CN.md](./development/CI-sync-main.zh_CN.md) | CI 文档 | authoritative | 上游同步说明(定期同步上游 main 到 fork) | | [development/publish-to-community.zh_CN.md](./development/publish-to-community.zh_CN.md) | 工程规范 | authoritative | 发布到 AI Passport 社区市场 | -| [development/project-completion.zh_CN.md](./development/project-completion.zh_CN.md) | 工程规范 | authoritative | 发布后收尾(建议与经验两条线) | +| [development/project-completion.zh_CN.md](./development/project-completion.zh_CN.md) | 工程规范 | authoritative | 项目开发完成流程(可选收尾动作) | | [development/file-issues.zh_CN.md](./development/file-issues.zh_CN.md) | 工程规范 | authoritative | 把建议提交成上游 GitHub issue | | [development/experience-notes.zh_CN.md](./development/experience-notes.zh_CN.md) | 沉淀记录 | 参考 | `docs/experiences/` 下开发经验条目的索引 | | [fork-guide.zh_CN.md](./fork-guide.zh_CN.md) | fork 工作流 | authoritative | 目录结构、main 保持干净、fork 约定、docs/assets 使用 | diff --git a/docs/development/README.md b/docs/development/README.md index 8b65fed..f749f52 100644 --- a/docs/development/README.md +++ b/docs/development/README.md @@ -16,6 +16,6 @@ This directory contains AI Passport engineering rules and reusable workflows. Ru - [CI-build-and-release.md](CI-build-and-release.md): tagged firmware builds and releases. - [CI-sync-main.md](CI-sync-main.md): upstream synchronization for forks. - [publish-to-community.md](publish-to-community.md): publishing firmware to the AI Passport community market. -- [project-completion.md](project-completion.md): post-release follow-up for suggestions and experience. +- [project-completion.md](project-completion.md): project completion flow — a menu of optional closing actions. - [file-issues.md](file-issues.md): filing a suggestion as an upstream GitHub issue. - [experience-notes.md](experience-notes.md): index of development experience entries under `docs/experiences/`. diff --git a/docs/development/README.zh_CN.md b/docs/development/README.zh_CN.md index 5bd01b5..677cecd 100644 --- a/docs/development/README.zh_CN.md +++ b/docs/development/README.zh_CN.md @@ -25,6 +25,6 @@ - [CI-validation.md](CI-validation.md):Pull Request 与 main 的自动仓库检查、host tests 和固件验证。 - [CI-sync-main.md](CI-sync-main.md):上游同步说明(定期把上游 `FoloToy/ai-passport` 的 `main` 同步到本 fork 的 `main`)。 - [publish-to-community.md](publish-to-community.md):发布到社区说明(把当前固件发布到 AI Passport 社区市场)。 -- [project-completion.md](project-completion.md):发布后收尾说明(建议与经验两条线的总览)。 +- [project-completion.md](project-completion.md):项目开发完成流程说明(一组可选收尾动作)。 - [file-issues.md](file-issues.md):提交 issue 说明(把建议作为上游 GitHub issue 提交)。 - [experience-notes.md](experience-notes.md):开发经验索引(`docs/experiences/` 下经验条目的索引)。 diff --git a/docs/development/file-issues.md b/docs/development/file-issues.md index 4212eea..c465232 100644 --- a/docs/development/file-issues.md +++ b/docs/development/file-issues.md @@ -67,6 +67,6 @@ data, or unsanitized logs. Security vulnerabilities must go through ## Related documents -- Post-release follow-up overview: [project-completion.md](project-completion.md) +- Project completion overview: [project-completion.md](project-completion.md) - Issue skill: [`../../skills/issue-suggestions/SKILL.md`](../../skills/issue-suggestions/SKILL.md) - Firmware publishing: [publish-to-community.md](publish-to-community.md) diff --git a/docs/development/file-issues.zh_CN.md b/docs/development/file-issues.zh_CN.md index eafe048..70af55b 100644 --- a/docs/development/file-issues.zh_CN.md +++ b/docs/development/file-issues.zh_CN.md @@ -55,6 +55,6 @@ issue 用于提交围绕固件、BSP、硬件或文档的用户建议、功能 ## 相关文档 -- 发布后收尾总览:[project-completion.md](project-completion.md) +- 项目开发完成流程总览:[project-completion.md](project-completion.md) - issue skill:[`../../skills/issue-suggestions/SKILL.md`](../../skills/issue-suggestions/SKILL.md) - 固件发布:[publish-to-community.md](publish-to-community.md) diff --git a/docs/development/project-completion.md b/docs/development/project-completion.md index 02196d0..3d7bc5f 100644 --- a/docs/development/project-completion.md +++ b/docs/development/project-completion.md @@ -13,6 +13,10 @@ The completion flow is not a fixed pipeline and is not tied to a release. The developer selects any one or a combination of the six actions, in any order. Each action runs only after the developer confirms it. +All six actions are **optional** — none is mandatory. The README update (action +E) is one of the six; it runs when selected, and it also accompanies archiving +(action D) by default, so archiving a project also refreshes the README. + ## When the completion flow is offered Offer the six-action menu when either signal occurs: @@ -106,6 +110,20 @@ collecting them again: At execution, reuse the profile where it was already collected. If the profile was not collected, fetch the values through the relevant action skill. +## Post-release hardware verification + +When a delivery action (A or B) produced a merged full build, verify it on real +hardware before treating the project as complete. Download the release's merged +full firmware (`FoloToy-AI-Passport-full.bin`, the flashable complete build from +`0x0`), flash it to a device, and confirm it runs normally. Do not treat a +successful build or upload as hardware validation: this step proves the artifact +the release actually points to boots and works on real hardware. The artifact +comes from the release assets (the CI/CD `full.bin`) or, for a Git release with +no CI artifact, the local `full.bin` the developer built. If it does not run, +stop and fix before closing out. See +[`CI-build-and-release.md`](CI-build-and-release.md) for the artifact and +flashing. + ## Shared safety and consent gates Every action follows the same non-negotiable rules: diff --git a/docs/development/project-completion.zh_CN.md b/docs/development/project-completion.zh_CN.md index 4aedbc7..4fd1b44 100644 --- a/docs/development/project-completion.zh_CN.md +++ b/docs/development/project-completion.zh_CN.md @@ -8,6 +8,8 @@ 完成流程不是固定流水线,也不与发布绑定。开发者选择其中任意一项或多项,顺序不限。每项动作只有在开发者确认后才会执行。 +六项动作**全部可选**——没有任何一项是强制的。README 更新(动作 E)是六项之一,选中时执行;它也默认伴随归档(动作 D)一起进行,因此归档项目时会顺带刷新 README。 + ## 何时提供完成流程 出现以下任一信号时,就提供这片选项菜单: @@ -83,6 +85,10 @@ flowchart TD 执行时若 profile 已采集则直接复用;若未采集,则通过对应动作 skill 获取这些值。 +## 发布后的真机验证 + +当交付动作(A 或 B)产出了合并完整构建时,在把项目视为完成前先到真机验证。下载该 release 的合并完整固件(`FoloToy-AI-Passport-full.bin`,从 `0x0` 烧录的完整构建),烧录到设备并确认正常运行。不要把一次成功的构建或上传当作硬件验证:这一步证明 release 实际指向的产物能在真实硬件上启动并工作。产物来自 release 资产(CI/CD 的 `full.bin`),或对无 CI 产物的 Git release,来自开发者本地构建的 `full.bin`。若不能运行,先停下修复,再继续收口。产物与烧录见 [`CI-build-and-release.md`](CI-build-and-release.md)。 + ## 共同的安全与同意门槛 每项动作都遵守下面这些不可协商的规则: diff --git a/docs/development/project-completion/archive-plays.md b/docs/development/project-completion/archive-plays.md index c126676..09090f5 100644 --- a/docs/development/project-completion/archive-plays.md +++ b/docs/development/project-completion/archive-plays.md @@ -20,8 +20,9 @@ The workflow is driven by the `plays-archive` skill. ## Steps 1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). -2. Generate a bilingual AI-functional summary under `plays//` - (`README.md` / `.zh_CN.md`), merging the root README when one exists. +2. Generate a bilingual AI-functional summary under + `plays///` (`README.md` / `.zh_CN.md`), merging the root + README when one exists. 3. Record the publish metadata — the bilingual title and description and the source address — which include the cover image by file name and format, but do not commit the cover image itself. The archive is text-only. diff --git a/docs/development/project-completion/archive-plays.zh_CN.md b/docs/development/project-completion/archive-plays.zh_CN.md index 6f51ed5..3ee2a66 100644 --- a/docs/development/project-completion/archive-plays.zh_CN.md +++ b/docs/development/project-completion/archive-plays.zh_CN.md @@ -16,7 +16,7 @@ ## 步骤 1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 -2. 在 `plays//` 下生成双语 AI 功能总结(`README.md` / `.zh_CN.md`),有根 README 时合并它。 +2. 在 `plays///` 下生成双语 AI 功能总结(`README.md` / `.zh_CN.md`),有根 README 时合并它。 3. 记录发布元数据——双语标题与简介、源码地址,其中包括封面按文件名与格式记录;但不提交封面图本身。档案为纯文本(text-only)。 4. 各自处理每个分支的根 README(必需的 README 同步见 [readme-update.md](./readme-update.md))。 5. 只在专门分支上提交总结;不存固件 `.bin`,也不存封面图。 diff --git a/docs/development/project-completion/publish-to-community.md b/docs/development/project-completion/publish-to-community.md index fb5a5e8..18c2b0e 100644 --- a/docs/development/project-completion/publish-to-community.md +++ b/docs/development/project-completion/publish-to-community.md @@ -14,8 +14,10 @@ committed into the repository. ## Inputs -- A single merged ESP `.bin` flashed from `0x0`. Build it with - `./tools/validate.sh --firmware` or `idf.py build` when needed. +- A single merged ESP `.bin` flashed from `0x0`, built and verified with + `./tools/validate.sh --firmware` (this produces and verifies the merged full + image; do not substitute `idf.py build`, which is only for day-to-day + incremental compilation). - A representative cover image (JPEG / PNG / WebP, up to 10 MiB). - The public HTTPS Git page for the firmware repository, resolved from `git remote -v`. diff --git a/docs/development/project-completion/publish-to-community.zh_CN.md b/docs/development/project-completion/publish-to-community.zh_CN.md index 06afb7a..f3056f6 100644 --- a/docs/development/project-completion/publish-to-community.zh_CN.md +++ b/docs/development/project-completion/publish-to-community.zh_CN.md @@ -10,7 +10,7 @@ ## 输入 -- 单个合并的 ESP `.bin`,从 `0x0` 烧录。必要时用 `./tools/validate.sh --firmware` 或 `idf.py build` 构建。 +- 单个合并的 ESP `.bin`,从 `0x0` 烧录,用 `./tools/validate.sh --firmware` 构建并验证(它产出并校验合并完整镜像;不要用 `idf.py build` 代替,后者只用于日常增量编译)。 - 一张代表产品的封面图(JPEG / PNG / WebP,≤10 MiB)。 - 固件仓库的公开 HTTPS Git 页,从 `git remote -v` 解析。 diff --git a/docs/development/project-completion/readme-update.md b/docs/development/project-completion/readme-update.md index 4329f96..2ff60f5 100644 --- a/docs/development/project-completion/readme-update.md +++ b/docs/development/project-completion/readme-update.md @@ -17,11 +17,13 @@ branches, so root READMEs exist on multiple branches. Handle each branch's root README independently — the `main` README and a `feature/*` branch README are separate decisions. -## When this is required +## When this is recommended -The README update is **required whether or not the application is archived.** -Archiving to `plays/` (action D) is optional — the developer may decline — but -the README must still be updated on the hosting branch and on fork `main` so the +The README update is an **optional** action like the other five, and it is also +the default companion to archiving: when the application is archived to `plays/` +(action D), the README sync runs as part of that action. Archiving itself is +optional — the developer may decline — but whenever a project is completed, the +README should be refreshed on the hosting branch and on fork `main` so the application is registered where it is developed. ## Rules diff --git a/docs/development/project-completion/readme-update.zh_CN.md b/docs/development/project-completion/readme-update.zh_CN.md index fea72ce..9eb268b 100644 --- a/docs/development/project-completion/readme-update.zh_CN.md +++ b/docs/development/project-completion/readme-update.zh_CN.md @@ -10,9 +10,9 @@ fork 的 `main` 与上游保持同步,产品工作放在 `feature/*` 分支上,因此根 README 会存在于多个分支。每个分支的根 README **各自处理**——`main` 的 README 和某个 `feature/*` 分支的 README 是两个独立决定。 -## 何时必须 +## 何时建议 -**无论是否归档,README 更新都是必须的。** 归档到 `plays/`(动作 D)是可选——开发者可以拒绝——但 README 仍须在宿主分支和 fork `main` 上更新,让应用在其开发处被登记。 +README 更新与其它五项一样是**可选**动作,也是归档的默认伴随动作:当应用归档到 `plays/`(动作 D)时,README 同步会作为该动作的一部分执行。归档本身是可选——开发者可以拒绝——但每当项目完成时,都应在宿主分支和 fork `main` 上刷新 README,让应用在其开发处被登记。 ## 规则 diff --git a/docs/development/project-completion/release-update.md b/docs/development/project-completion/release-update.md index 0a6962b..98faeec 100644 --- a/docs/development/project-completion/release-update.md +++ b/docs/development/project-completion/release-update.md @@ -14,14 +14,21 @@ market. ## Steps -1. Commit the change and push it to the fork (`origin`). -2. Create and push a tag to trigger the release workflow. +Each step is an external, authorizing mutation. Confirm each one with the +developer separately — do not treat a single up-front confirmation as covering +commit, push, tag, and release. + +1. Commit the change and push it to the fork (`origin`) — confirm separately. +2. Create and push a tag to trigger the release workflow — confirm separately. 3. Let the tagged build produce the merged firmware `.bin`. -4. Create or update the GitHub/GitLab release with the artifact. The workflow - sets the default release title to the version/tag name; after the release is - up, refine it to the project feature name plus the version number. +4. Create or update the GitHub/GitLab release with the artifact — confirm + separately. The workflow sets the default release title to the version/tag + name; after the release is up, refine it to the project feature name plus the + version number. 5. Write release notes in English (and a Simplified Chinese version where the project is bilingual) covering what is new, how to build, and how to use. +6. Verify the released full build on hardware (see + [Post-release hardware verification](../project-completion.md#post-release-hardware-verification)). ## Rules diff --git a/docs/development/project-completion/release-update.zh_CN.md b/docs/development/project-completion/release-update.zh_CN.md index 4db4659..f40d556 100644 --- a/docs/development/project-completion/release-update.zh_CN.md +++ b/docs/development/project-completion/release-update.zh_CN.md @@ -10,11 +10,14 @@ ## 步骤 -1. 提交改动并推送到 fork(`origin`)。 -2. 创建并推送 tag 以触发发布工作流。 +每一步都是外部、授权的变更。逐项与开发者分别确认——不要用一次笼统确认覆盖 commit、push、tag 与 release。 + +1. 提交改动并推送到 fork(`origin`)——分别确认。 +2. 创建并推送 tag 以触发发布工作流——分别确认。 3. 让 tag 触发的构建产出合并固件 `.bin`。 -4. 用产物创建或更新 GitHub/GitLab release。工作流默认把发布标题设为版本号名;发布后把它完善为「项目功能名称 + 版本号」。 +4. 用产物创建或更新 GitHub/GitLab release——分别确认。工作流默认把发布标题设为版本号名;发布后把它完善为「项目功能名称 + 版本号」。 5. 用英文写发布说明(项目双语处配简体中文版),覆盖新增内容、如何构建、如何使用。 +6. 在真机验证已发布的完整构建(见[发布后的真机验证](../project-completion.zh_CN.md#发布后的真机验证))。 ## 规则 diff --git a/docs/development/publish-to-community.md b/docs/development/publish-to-community.md index fc46873..e77e68c 100644 --- a/docs/development/publish-to-community.md +++ b/docs/development/publish-to-community.md @@ -12,7 +12,7 @@ Use this when the project is being **released** — that is, when the code is fi When the developer says "publish" or "release", the first thing to decide is **where** to publish. Do not assume a route. -- **To the community** — release the firmware to the [AI Passport Community market](https://ai-passport.folotoy.cn). Use the publisher workflow below. See also the post-release follow-up (`docs/development/project-completion.md`) once it is published. +- **To the community** — release the firmware to the [AI Passport Community market](https://ai-passport.folotoy.cn). Use the publisher workflow below. See also the project completion flow (`docs/development/project-completion.md`) once it is published. - **To Git** — publish the finished code to a version-controlled repository. The flow is: commit the finished code, then open a release for it. The release artifact may be produced by the CI/CD pipeline (**recommended**, tag-triggered via `.github/workflows/build-firmware.yml`), or it may be a local `.bin` the developer already built. Follow the repository commit and PR rules (`docs/contribution/commit-and-pr.md`) and the fork workflow (`docs/fork-guide.md`); see [`CI-build-and-release.md`](CI-build-and-release.md) for the automated build and release artifacts. - **Neither yet** — the code is not finished and usable; keep developing, do not publish. diff --git a/docs/development/publish-to-community.zh_CN.md b/docs/development/publish-to-community.zh_CN.md index 38dcc0e..4bd653f 100644 --- a/docs/development/publish-to-community.zh_CN.md +++ b/docs/development/publish-to-community.zh_CN.md @@ -12,7 +12,7 @@ 当开发者说"发布"或"发版"时,第一件事是决定**发到哪里**。不要默认其中一条。 -- **发布到社区** —— 把固件发布到 [AI Passport 社区市场](https://ai-passport.folotoy.cn)。走下面的 publisher 工作流;发布后见发布后收尾(`docs/development/project-completion.md`)。 +- **发布到社区** —— 把固件发布到 [AI Passport 社区市场](https://ai-passport.folotoy.cn)。走下面的 publisher 工作流;发布后见项目开发完成流程(`docs/development/project-completion.md`)。 - **发布到 Git** —— 把开发完成的代码发布到版本仓库。逻辑:先**提交**完成后的代码,再为它**开 release 流程**。release 产物可由 **CI/CD 流水线生成(推荐)**,tag 触发 `.github/workflows/build-firmware.yml` 自动构建;也**可用开发者本地已构建的 `.bin` 文件**。遵循仓库提交与 PR 规则(`docs/contribution/commit-and-pr.md`)与 fork 工作流(`docs/fork-guide.md`);自动构建与产物见 [`CI-build-and-release.md`](CI-build-and-release.md)。 - **还没到发布时机** —— 代码尚未开发完成、不能使用;继续开发,不发布。 diff --git a/plays/README.md b/plays/README.md index 62bac86..2007082 100644 --- a/plays/README.md +++ b/plays/README.md @@ -44,7 +44,6 @@ published or ready to be recorded; do not pre-create empty scaffolding. ``` plays/// README.md / README.zh_CN.md # AI-generated bilingual functional summary - -cover. # cover image, committed (<= 10 MiB) -guide.md (+ .zh_CN.md) # optional manual / how-to, not experience ``` @@ -54,9 +53,10 @@ A single contributor can have several applications under their own folder; the folder splits by author to keep related submissions together instead of spreading them flat across `plays/`. -A play archive stores the application's **introduction and manual** only: the -README functional summary, the cover, and optionally a how-to guide for that app. -It does **not** store reusable development experience; post-release experience +A play archive is **text-only**: it stores the application's **introduction and +manual** — the README functional summary and optionally a how-to guide for that +app. It does **not** store the cover image (recorded only by file name and format +as publish metadata) or reusable development experience; post-release experience entries belong under [`docs/experiences//`](../docs/experiences/). ## What the per-application README contains @@ -73,7 +73,8 @@ artifact. It records: - Source of the application, given as the **source address the developer submitted when publishing** (the HTTPS Git source page), so it can be located precisely. -- The cover image file name and format. +- The cover image file name and format, recorded as publish metadata only — the + cover image itself is **not** committed (the archive is text-only). Write it by summarizing the application's implementation and behavior, in English at the default `.md` path and Simplified Chinese at the paired @@ -81,19 +82,20 @@ English at the default `.md` path and Simplified Chinese at the paired ## Cover image -Place the cover at `plays///-cover.`, -committed -to the repository (like `docs/assets/brand`). Keep it representative and under -10 MiB. +The cover image is a publish artifact, not repository content. Do **not** commit +the cover image into `plays/`; record only its file name and format in the +summary as publish metadata. The image itself lives with the community +publication. -When generating an effect or mockup image of the play, use the official product -references under [`docs/assets/brand/`](../docs/assets/brand/README.md). Always -pass a reference (e.g. `ai-passport-front.png` or a colorway shell render) as -input to the generation call, keep its shell, buttons, ports, and key-ring hole -as they are, and redraw only the reference's screen region into the play's actual -on-screen content. Keep the screen's size, aspect ratio, corners, and position -inside the shell identical to the reference so the play content appears inside -the real AI Passport device rather than as a bare or free-floating image. +When generating a cover for the community publication (not for the archive), use +the official product references under +[`docs/assets/brand/`](../docs/assets/brand/README.md). Always pass a reference +(e.g. `ai-passport-front.png` or a colorway shell render) as input to the +generation call, keep its shell, buttons, ports, and key-ring hole as they are, +and redraw only the reference's screen region into the play's actual on-screen +content. Keep the screen's size, aspect ratio, corners, and position inside the +shell identical to the reference so the play content appears inside the real +AI Passport device rather than as a bare or free-floating image. ## Firmware diff --git a/plays/README.zh_CN.md b/plays/README.zh_CN.md index 106474f..a61e138 100644 --- a/plays/README.zh_CN.md +++ b/plays/README.zh_CN.md @@ -32,7 +32,6 @@ ``` plays/// README.md / README.zh_CN.md # AI 生成的双语功能说明 - -cover. # 封面图,commit(≤10 MiB) -guide.md(+ .zh_CN.md) # 可选的指南/手册,不是经验 ``` @@ -40,9 +39,9 @@ plays/// `` 是应用名(英文小写连字符)。一个贡献者可以在自己的文件夹下有多个应用;文件夹按作者 拆分,把相关提交聚在一起,而不是在 `plays/` 下平铺散开。 -play 档案只存放该应用的**介绍与手册**:README 功能说明、封面,以及可选的应用指南。它**不**存放可复用的 -开发经验;发布后的经验条目归属 -[`docs/experiences//`](../docs/experiences/)。 +play 档案是**纯文本**:只存放该应用的**介绍与手册**——README 功能说明,以及可选的应用指南。 +它**不**存放封面图(仅以文件名与格式作为发布元数据记录),也不存放可复用的开发经验;发布后的经验 +条目归属 [`docs/experiences//`](../docs/experiences/)。 ## 每个应用 README 包含什么 @@ -54,21 +53,21 @@ play 档案只存放该应用的**介绍与手册**:README 功能说明、封 - 应用做什么、功能清单。 - 交互与玩法(按键、屏幕、流程)。 - 应用来源,用**开发者发布时提交的源码地址**(HTTPS Git 源码页)精确定位。 -- 封面图文件名与格式。 +- 封面图文件名与格式,仅作为发布元数据记录——封面图本身**不**提交(档案为纯文本)。 通过总结应用实现与行为来写,默认 `.md` 用英文、配对 `.zh_CN.md` 用简体中文,并在同一次变更 中对齐。 ## 封面图 -封面放在 `plays///-cover.`,commit 进仓库 -(类似 `docs/assets/brand`)。选有代表性、且小于 10 MiB 的图。 +封面图是发布产物,不是仓库内容。**不要**把封面图提交进 `plays/`;只在功能说明里记录其文件名与 +格式作为发布元数据。图片本身随社区发布留存。 -当需要为应用生成效果图或样机图时,参考 [`docs/assets/brand/`](../docs/assets/brand/README.md) -下的官方产品图。生成时必须传一张参考图(如 `ai-passport-front.png` 或某款配色外壳渲染图) -作为生成调用输入,保留其外壳、按键、接口与钥匙扣孔原样,只把参考图的屏幕区域**重绘**成该玩法的 -真实屏显内容。屏幕的尺寸、比例、圆角与外壳内位置与参考保持一致,使玩法内容出现在真实 AI Passport -设备屏幕内,而不是一块裸屏幕或自由漂浮的画面。 +当为**社区发布**(而非归档)生成封面时,参考 +[`docs/assets/brand/`](../docs/assets/brand/README.md) 下的官方产品图。生成时必须传一张参考图 +(如 `ai-passport-front.png` 或某款配色外壳渲染图)作为生成调用输入,保留其外壳、按键、接口与 +钥匙扣孔原样,只把参考图的屏幕区域**重绘**成该玩法的真实屏显内容。屏幕的尺寸、比例、圆角与外壳内 +位置与参考保持一致,使玩法内容出现在真实 AI Passport 设备屏幕内,而不是一块裸屏幕或自由漂浮的画面。 ## 固件 diff --git a/skills/experience-pr/SKILL.md b/skills/experience-pr/SKILL.md index 329b242..2b4d09f 100644 --- a/skills/experience-pr/SKILL.md +++ b/skills/experience-pr/SKILL.md @@ -159,7 +159,7 @@ change affects user-visible behavior, compatibility, or the release workflow. ## Related documents -- Post-release follow-up overview: `docs/development/project-completion.md` +- Project completion overview: `docs/development/project-completion.md` - Experience index: `docs/development/experience-notes.md` - Experience entries: `docs/experiences/` - Firmware publishing: `docs/development/publish-to-community.md` diff --git a/skills/experience-pr/SKILL.zh_CN.md b/skills/experience-pr/SKILL.zh_CN.md index bbdb4e9..e7fbddd 100644 --- a/skills/experience-pr/SKILL.zh_CN.md +++ b/skills/experience-pr/SKILL.zh_CN.md @@ -121,7 +121,7 @@ host-test 工作,因此这些上报为 NOT RUN 并说明原因。仅当变更 ## 相关文档 -- 发布后收尾总览:`docs/development/project-completion.md` +- 项目开发完成流程总览:`docs/development/project-completion.md` - 经验索引:`docs/development/experience-notes.md` - 经验条目:`docs/experiences/` - 固件发布:`docs/development/publish-to-community.md` diff --git a/skills/issue-suggestions/SKILL.md b/skills/issue-suggestions/SKILL.md index 756da11..aebf78d 100644 --- a/skills/issue-suggestions/SKILL.md +++ b/skills/issue-suggestions/SKILL.md @@ -89,7 +89,7 @@ matching entry: ## Related documents -- Post-release follow-up overview: `docs/development/project-completion.md` +- Project completion overview: `docs/development/project-completion.md` - Filing issues: `docs/development/file-issues.md` - Firmware publishing: `docs/development/publish-to-community.md` - Issue template: `.github/ISSUE_TEMPLATE/feature_request.yml` diff --git a/skills/issue-suggestions/SKILL.zh_CN.md b/skills/issue-suggestions/SKILL.zh_CN.md index 7e8630b..a1bd5e4 100644 --- a/skills/issue-suggestions/SKILL.zh_CN.md +++ b/skills/issue-suggestions/SKILL.zh_CN.md @@ -69,7 +69,7 @@ GitHub issue。它只在固件已发布(发布流程见 `docs/development/publ ## 相关文档 -- 发布后收尾总览:`docs/development/project-completion.md` +- 项目开发完成流程总览:`docs/development/project-completion.md` - 提交 issue:`docs/development/file-issues.md` - 固件发布:`docs/development/publish-to-community.md` - issue 模板:`.github/ISSUE_TEMPLATE/feature_request.yml` diff --git a/skills/plays-archive/SKILL.md b/skills/plays-archive/SKILL.md index 0ff2028..09a625f 100644 --- a/skills/plays-archive/SKILL.md +++ b/skills/plays-archive/SKILL.md @@ -1,6 +1,6 @@ --- name: plays-archive -description: After a firmware release, archive the published application into the upstream FoloToy ai-passport repository's plays/ directory with an AI-generated bilingual functional summary and a cover image. +description: After a firmware release, archive the published application into the upstream FoloToy ai-passport repository's plays/ directory with an AI-generated bilingual functional summary (text-only; the cover image is recorded by file name and format, not committed). ---

@@ -81,7 +81,8 @@ publishing artifact). Record: - Source, given as the **source address the developer submitted when publishing** (the HTTPS Git source page), so the application can be located precisely. -- The cover image file name and format. +- The cover image file name and format, recorded as publish metadata only — the + cover image itself is **not** committed (the archive is text-only). If the root README exists, merge its content into the summary rather than ignoring the human-facing description. @@ -89,12 +90,12 @@ ignoring the human-facing description. Write the default `.md` in English and the `.zh_CN.md` in Simplified Chinese, aligned in the same change. -## Add the cover image +## Cover image -Place the cover at -`plays///-cover.`, committed to the -repository. Keep it representative and under 10 MiB. When generating an effect or -mockup image for the play, use the official product references under +The archive is **text-only**: do **not** commit the cover image. Record only its +file name and format in the summary as publish metadata. The image itself lives +with the community publication; if a cover must be generated for the publication +(not the archive), use the official product references under [`docs/assets/brand/`](../../docs/assets/brand/README.md): pass a reference (e.g. `ai-passport-front.png` or a colorway shell render) as input to the generation call, keep its shell, buttons, ports, and key-ring hole as they are, and redraw @@ -105,7 +106,7 @@ convention in [`docs/assets/brand/README.md`](../../docs/assets/brand/README.md) ## Commit -Commit the summary and cover on the dedicated branch (English imperative +Commit the summary on the dedicated branch (English imperative Conventional Commit title, for example `docs(plays): add application archive`). If a root README was created or updated, include it in the same change. Do **not** store the merged @@ -123,6 +124,7 @@ and read it back to confirm. Opening a PR requires separate confirmation. - It does not publish firmware or run the publisher workflow. - It does not modify production source or the firmware. - It does not store the firmware `.bin` binary. +- It does not store the cover image (the archive is text-only). - It does not auto-submit anything without developer review and consent. ## Related documents diff --git a/skills/plays-archive/SKILL.zh_CN.md b/skills/plays-archive/SKILL.zh_CN.md index a1790a4..70d9a82 100644 --- a/skills/plays-archive/SKILL.zh_CN.md +++ b/skills/plays-archive/SKILL.zh_CN.md @@ -1,6 +1,6 @@ --- name: plays-archive -description: 固件发布之后,把已发布的应用归档到上游 FoloToy ai-passport 仓库的 plays/ 目录,附一份 AI 生成的双语功能说明与封面图。 +description: 固件发布之后,把已发布的应用归档到上游 FoloToy ai-passport 仓库的 plays/ 目录,附一份 AI 生成的双语功能说明(纯文本;封面图只记录文件名与格式,不提交)。 ---

@@ -60,16 +60,16 @@ description: 固件发布之后,把已发布的应用归档到上游 FoloToy a - 应用做什么、功能清单。 - 交互与玩法(按键、屏幕、流程)。 - 应用来源,用**开发者发布时提交的源码地址**(HTTPS Git 源码页)精确定位。 -- 封面图文件名与格式。 +- 封面图文件名与格式,仅作为发布元数据记录——封面图本身**不**提交(档案为纯文本)。 若根 README 存在,把它合并进说明,而不是忽略人类可读的描述。 默认 `.md` 用英文、配对 `.zh_CN.md` 用简体中文,并在同一次变更中对齐。 -## 添加封面图 +## 封面图 -封面放在 `plays///-cover.`,commit 进仓库。 -选有代表性且小于 10 MiB 的图。当需要为应用生成效果图或样机图时,参考 +档案为**纯文本**:**不要**提交封面图,只在功能说明里记录其文件名与格式作为发布元数据。图片本身随 +社区发布留存。若需为发布(而非归档)生成封面,参考 [`docs/assets/brand/`](../../docs/assets/brand/README.md) 下的官方产品图:生成时必须传一张参考图 (如 `ai-passport-front.png` 或某款配色外壳渲染图)作为生成调用输入,保留其外壳、按键、接口与 钥匙扣孔原样,只把参考图的屏幕区域**重绘**成该玩法的真实屏显内容,屏幕的尺寸、比例、圆角与外壳内 @@ -77,7 +77,7 @@ description: 固件发布之后,把已发布的应用归档到上游 FoloToy a ## 提交 -在独立分支上提交总结与封面(英文祈使句 Conventional Commit 标题,例如 +在独立分支上提交总结(英文祈使句 Conventional Commit 标题,例如 `docs(plays): add application archive`)。若创建或更新了根 README,一并纳入同一次变更。 **不要**在这里存合并固件 `.bin`;它是构建/发布产物。按 Build、Host tests、Device tests、 Unverified 分别上报。 @@ -91,6 +91,7 @@ Unverified 分别上报。 - 不发布固件、不运行 publisher 流程。 - 不改生产源码、不改固件。 - 不存储固件 `.bin` 二进制。 +- 不存储封面图(档案为纯文本)。 - 未经开发者审查与同意,不自动提交任何内容。 ## 相关文档