From ddf1f774fd0a023fb68769bb2a5253968cb96554 Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Fri, 28 Aug 2026 10:11:22 +0800 Subject: [PATCH 1/6] docs(development): rework follow-up into project completion flow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 把原有的 after-release 三轨道收尾(归档 plays、提 issue、提经验 PR) 重构为「项目开发完成流程」project-completion:一组六项可选动作菜单, 支持单选/多选,用户确认后才执行。 - 新增 docs/development/project-completion.md(唯一权威总索引): 触发时机、按交付/沉淀分组的六项动作、共享安全与同意门槛、 共享发布属性(Publish Profile)、Mermaid 触发流程图。 - 新增 project-completion/ 下六个动作文档(各配中英双语): 发布到社区市场、发布到 Git 并更新版本、发布经验、归档到 plays、 更新根 README、提交 issue;正文引用现有 skill。 - 删除旧的 after-release.md 及其中文版。 - 将全仓库对 after-release 的引用更新为 project-completion (AGENTS、fork-guide、file-issues、CI-build-and-release、 publish-to-community、INDEX、README、三个 skill 文件)。 - 动作 C(发布经验)的经验条目命名适配 main 现状: docs/experiences// 按内容摘要命名。 - 发布到 Git 动作补充:Release 默认标题为版本号名,发布后由执行者 完善为「项目功能名 + 版本号」,并在 CI-build-and-release 同步说明。 --- AGENTS.md | 2 +- AGENTS.zh_CN.md | 2 +- docs/INDEX.md | 2 +- docs/INDEX.zh_CN.md | 2 +- docs/development/CI-build-and-release.md | 2 +- docs/development/README.md | 2 +- docs/development/README.zh_CN.md | 2 +- docs/development/after-release.md | 99 -------------- docs/development/after-release.zh_CN.md | 73 ---------- docs/development/file-issues.md | 2 +- docs/development/file-issues.zh_CN.md | 2 +- docs/development/project-completion.md | 126 ++++++++++++++++++ docs/development/project-completion.zh_CN.md | 100 ++++++++++++++ .../project-completion/archive-plays.md | 39 ++++++ .../project-completion/archive-plays.zh_CN.md | 33 +++++ .../project-completion/experience.md | 50 +++++++ .../project-completion/experience.zh_CN.md | 39 ++++++ .../project-completion/file-issue.md | 36 +++++ .../project-completion/file-issue.zh_CN.md | 30 +++++ .../publish-to-community.md | 55 ++++++++ .../publish-to-community.zh_CN.md | 45 +++++++ .../project-completion/readme-update.md | 40 ++++++ .../project-completion/readme-update.zh_CN.md | 30 +++++ .../project-completion/release-update.md | 46 +++++++ .../release-update.zh_CN.md | 31 +++++ docs/development/publish-to-community.md | 2 +- .../development/publish-to-community.zh_CN.md | 2 +- docs/fork-guide.md | 2 +- docs/fork-guide.zh_CN.md | 2 +- 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 | 2 +- skills/plays-archive/SKILL.zh_CN.md | 2 +- 35 files changed, 719 insertions(+), 191 deletions(-) delete mode 100644 docs/development/after-release.md delete mode 100644 docs/development/after-release.zh_CN.md create mode 100644 docs/development/project-completion.md create mode 100644 docs/development/project-completion.zh_CN.md create mode 100644 docs/development/project-completion/archive-plays.md create mode 100644 docs/development/project-completion/archive-plays.zh_CN.md create mode 100644 docs/development/project-completion/experience.md create mode 100644 docs/development/project-completion/experience.zh_CN.md create mode 100644 docs/development/project-completion/file-issue.md create mode 100644 docs/development/project-completion/file-issue.zh_CN.md create mode 100644 docs/development/project-completion/publish-to-community.md create mode 100644 docs/development/project-completion/publish-to-community.zh_CN.md create mode 100644 docs/development/project-completion/readme-update.md create mode 100644 docs/development/project-completion/readme-update.zh_CN.md create mode 100644 docs/development/project-completion/release-update.md create mode 100644 docs/development/project-completion/release-update.zh_CN.md diff --git a/AGENTS.md b/AGENTS.md index 1144aff..8701cd8 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/after-release.md` (then the `issue-suggestions` or `experience-pr` skill) | +| Post-release follow-up | `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 7d5d21e..004ab8f 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/after-release.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 eba564c..82aa9c5 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/after-release.md](development/after-release.md) | Post-release follow-up for suggestions and experience | authoritative | +| [development/project-completion.md](development/project-completion.md) | Post-release follow-up for suggestions and experience | 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 89796c3..859baba 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/after-release.zh_CN.md](./development/after-release.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/CI-build-and-release.md b/docs/development/CI-build-and-release.md index 153ef3d..ebe236a 100644 --- a/docs/development/CI-build-and-release.md +++ b/docs/development/CI-build-and-release.md @@ -61,5 +61,5 @@ consistent with `docs/CHANGELOG.md` for user-visible behavior. ## Related documents - Firmware publishing to the community: [publish-to-community.md](publish-to-community.md) -- Post-release follow-up: [after-release.md](after-release.md) +- Post-release follow-up: [project-completion.md](project-completion.md) diff --git a/docs/development/README.md b/docs/development/README.md index fc23503..8b65fed 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. -- [after-release.md](after-release.md): post-release follow-up for suggestions and experience. +- [project-completion.md](project-completion.md): post-release follow-up for suggestions and experience. - [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 81d3531..5bd01b5 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 社区市场)。 -- [after-release.md](after-release.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/after-release.md b/docs/development/after-release.md deleted file mode 100644 index b37a415..0000000 --- a/docs/development/after-release.md +++ /dev/null @@ -1,99 +0,0 @@ -

- 简体中文 · English -

- -# Post-Release Follow-up - -Once a release is complete — whether it was published to the AI Passport -community or to Git — finish the loop with the follow-up actions on this page. -Publishing itself is described in -[publish-to-community.md](publish-to-community.md); this page is the overview of -what happens after that. - -The follow-up works on four independent tracks. Track 1 is a device check; the -rest are driven by repository skills and follow the same safety and consent -gates. None re-publishes firmware. - -## Track 1: Re-flash the released full build and verify - -After the release is 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 the -next tracks. See [`CI-build-and-release.md`](CI-build-and-release.md) for the -artifact and flashing. - -## Track 2: Archive the application to plays - -After publishing, ask the developer whether to archive this application into the -upstream `FoloToy/ai-passport` repository's `plays/` application archive. If -agreed, generate an AI-functional summary under -`plays///` (bilingual `README.md` / `.zh_CN.md`) and add the -cover image as -`plays///-cover.`. Commit only the -summary and cover; do not store the firmware `.bin` here. See -[`../../plays/README.md`](../../plays/README.md). - -Before generating the summary, check the root README of the `main` and current -branches (`plays-archive` skill): if a README exists, merge it into the summary; -if not, summarize directly. After archiving, handle each branch independently: -create the root README on a branch that lacks one, and prompt the developer to -update the README on a branch that already has one. - -## Track 3: Collect suggestions and file issues - -Run the `issue-suggestions` skill to gather the releasing developer's own -improvement points and file the worthwhile ones as feature request issues -against the upstream `FoloToy/ai-passport` project. - -1. Confirm the developer agrees to start the follow-up (project-private content). -2. Confirm a GitHub channel is available (GitHub MCP, a GitHub skill, or `gh`); - otherwise hand the draft to the developer to paste. -3. Collect, deduplicate, categorize, and match against existing issues. -4. Draft a feature request issue and wait for explicit approval before applying. - -## Track 4: Collect development experience and submit a PR - -Run the `experience-pr` skill to capture durable, reusable learnings about the -fork's own `docs/` differences from upstream and propose them as a documentation -PR to the upstream `FoloToy/ai-passport` project. - -1. Confirm the developer agrees to start the follow-up (project-private content). -2. Confirm a GitHub channel is available (GitHub MCP, a GitHub skill, or `gh`); - otherwise hand the draft to the developer to paste. -3. Collect reusable experience from the fork's `docs/` differences, route it - (general, upstream-benefiting experience goes upstream; fork-specific - customization stays in the fork per `fork-guide.md`), and store it as a new - entry under `docs/experiences//` (named after the entry's content - summary in lowercase-kebab-case, plus the `.zh_CN.md` peer, grouped by the - contributing developer's GitHub username), linking it from the - [experience index](experience-notes.md), on a dedicated branch based on the - latest upstream `main`, so the current checkout - stays untouched. -4. Present the change for review, then commit, push to the fork, and open a PR - against the upstream `FoloToy/ai-passport` only after explicit approval. - -## Shared safety and consent gates - -Track 1 is a device check and needs no skill or GitHub channel. Tracks 2–4 -follow the same non-negotiable rules: - -- Confirm consent before starting; this work touches project-private content. -- Confirm a GitHub channel (GitHub MCP, a GitHub skill, or `gh`) before any - submission; if none is available, generate content for manual pasting and stop. -- Do not submit (issue or PR) until the developer has reviewed and authorized it. -- Do not commit on or modify the developer's current branch; carry the PR change on a - dedicated branch or worktree. -- Never include credentials, device QR secrets, private device links, personal - data, or unsanitized logs. - -## Related documents - -- Firmware publishing: [publish-to-community.md](publish-to-community.md) -- Application archive: [`../../plays/README.md`](../../plays/README.md) -- Filing issues: [file-issues.md](file-issues.md) -- Development experience: [experience-notes.md](experience-notes.md) -- Issue and contribution rules: [../contribution/commit-and-pr.md](../contribution/commit-and-pr.md) diff --git a/docs/development/after-release.zh_CN.md b/docs/development/after-release.zh_CN.md deleted file mode 100644 index edaca45..0000000 --- a/docs/development/after-release.zh_CN.md +++ /dev/null @@ -1,73 +0,0 @@ -

- 简体中文 · English -

- -# 发布后收尾 - -一旦 **release 全部完成**——无论发布到 AI Passport 社区还是发布到 Git——就把发布闭环收尾,按本页执行后续工作。发布本身见 -[publish-to-community.md](publish-to-community.md);本页是发布**之后**做什么的总览。 - -收尾沿四条独立轨道进行。轨道 1 是设备检查;其余由仓库内的 skill 驱动并遵循相同的安全与同意门槛。 -都不负责发布固件。 - -## 轨道 1:重刷发布产物并验证 - -release 完成后,下载该 release 的**合并完整固件**(`FoloToy-AI-Passport-full.bin`,可从 `0x0` 烧录的完整版), -刷入设备并确认能正常运行。不要把"构建成功"或"上传成功"当成硬件验证:这一步证明 release 实际指向的产物 -能在真机上启动并正常工作。产物来自 release 资产(CI/CD 的 `full.bin`),若 Git release 无 CI 产物则用 -开发者本地构建的 `full.bin`。若不能运行,先停下来修复再做后面轨道。产物与烧录见 -[`CI-build-and-release.md`](CI-build-and-release.md)。 - -## 轨道 2:把应用归档到 plays - -发布后,询问开发者是否把该应用归档到上游 `FoloToy/ai-passport` 仓库的 `plays/` 应用档案。若同意, -在 `plays///` 下生成该应用的 AI 功能总结(双语 `README.md` / `.zh_CN.md`), -并添加封面图 `plays///-cover.`。只提交总结与封面; -**不要**在这里存固件 `.bin`。见 [`../../plays/README.md`](../../plays/README.md)。 - -生成总结前,先检查 `main` 分支和当前分支**根目录**的 README(`plays-archive` skill):若有 README, -把它合并进总结;若没有,直接总结。归档完成后对每个分支**各自处理**:没有根 README 的分支创建它, -已有根 README 的分支提示开发者更新它。 - -## 轨道 3:收集建议并提交 issue - -运行 `issue-suggestions` skill,收集发布固件的开发者本人的改进点,把有价值的整理成功能 -建议 issue,提交到上游 `FoloToy/ai-passport` 项目。 - -1. 确认开发者同意开始收尾(涉及项目私有内容)。 -2. 确认已有可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`);否则把草案交给开发者手动粘贴。 -3. 收集、去重、分类,并与已有 issue 匹配。 -4. 起草功能建议 issue,应用前等待明确批准。 - -## 轨道 4:收集开发经验并提交 PR - -运行 `experience-pr` skill,把 fork 相对上游 `docs/` 差异对应的持久、可复用的经验固化, -并作为文档 PR 提交到上游 `FoloToy/ai-passport` 项目。 - -1. 确认开发者同意开始收尾(涉及项目私有内容)。 -2. 确认已有可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`);否则把草案交给开发者手动粘贴。 -3. 收集 fork 相对上游 `docs/` 差异里的可复用经验并分流(通用、上游也受益的经验回上游; - 纯 fork 定制按 `fork-guide.md` 留在 fork),保存为 - `docs/experiences//` 下的一个新的条目文件(按条目内容概要命名,小写连字符,并配 - `.zh_CN.md`,按贡献开发者的 GitHub 用户名分组), - 从 [经验索引](experience-notes.md) 链接它,放在以最新上游 `main` 为基线的独立分支上, - 确保当前 checkout 不被改动。 -4. 把变更交给开发者审查,然后在获得明确批准后再 commit、push 到 fork、并向上游 `FoloToy/ai-passport` 开 PR。 - -## 共同的安全与同意门槛 - -轨道 1 是设备检查,不需要 skill,也不需要 GitHub 通道。轨道 2–4 遵守下面这些不可协商的规则: - -- 开始前确认同意;本工作涉及项目私有内容。 -- 任何提交前确认已有可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`);若都不可用,则生成内容供手动粘贴并停止。 -- 在开发者审查并授权之前,不提交(issue 或 PR)。 -- 不在开发者当前分支上提交或修改;PR 变更放在独立分支或 worktree 上承载。 -- 永远不包含凭证、设备 QR 密钥、私密设备链接、个人数据或未脱敏日志。 - -## 相关文档 - -- 固件发布:[publish-to-community.md](publish-to-community.md) -- 应用档案:[`../../plays/README.md`](../../plays/README.md) -- 提交 issue:[file-issues.md](file-issues.md) -- 开发经验:[experience-notes.md](experience-notes.md) -- issue 与贡献规则:[../contribution/commit-and-pr.md](../contribution/commit-and-pr.md) diff --git a/docs/development/file-issues.md b/docs/development/file-issues.md index 5462723..4212eea 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: [after-release.md](after-release.md) +- Post-release follow-up 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 c3f0e48..eafe048 100644 --- a/docs/development/file-issues.zh_CN.md +++ b/docs/development/file-issues.zh_CN.md @@ -55,6 +55,6 @@ issue 用于提交围绕固件、BSP、硬件或文档的用户建议、功能 ## 相关文档 -- 发布后收尾总览:[after-release.md](after-release.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 new file mode 100644 index 0000000..02196d0 --- /dev/null +++ b/docs/development/project-completion.md @@ -0,0 +1,126 @@ +

+ 简体中文 · English +

+ +# Project Completion + +When development on a project is finished, the completion flow offers a menu of +six optional closing actions. This page is the single authoritative index: it +describes the trigger, the six actions grouped by purpose, the shared safety and +consent gates, and the shared publish profile. + +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. + +## When the completion flow is offered + +Offer the six-action menu when either signal occurs: + +- The developer says the project is complete (development is done). +- The developer asks to run any one of the six actions directly. + +In both cases, remind the developer that the following six closing actions are +available, each selectable on its own or with others. + +## The six actions + +The actions are grouped by purpose. Delivery actions publish the result of the +project; recording actions capture documentation and open collaboration. + +### Delivery + +| ID | Action | Reference | +| --- | --- | --- | +| A | Publish to the community market | [publish-to-community.md](project-completion/publish-to-community.md) | +| B | Publish to Git and update the release | [release-update.md](project-completion/release-update.md) | + +### Recording + +| ID | Action | Reference | +| --- | --- | --- | +| C | Publish experience | [experience.md](project-completion/experience.md) | +| D | Archive the application to plays | [archive-plays.md](project-completion/archive-plays.md) | +| E | Update the root README | [readme-update.md](project-completion/readme-update.md) | +| F | File an issue | [file-issue.md](project-completion/file-issue.md) | + +Each action points to a dedicated document in +[`project-completion/`](project-completion/) that names the repository skill or +authoritative document that drives it. The skills are not rewritten here; the +action documents reference them. + +## Trigger flow + +```mermaid +flowchart TD + T1["Developer: the project is complete"] + T2["Developer: run one of the six actions"] + + T1 --> OFFER + T2 --> OFFER + + OFFER["Offer the six closing actions (single or multiple)"] --> CHOOSE{"Developer selects"} + + subgraph DELIVERY["Delivery"] + CHOOSE -- A --> A["Publish to community market"] + CHOOSE -- B --> B["Publish to Git / update release"] + end + + subgraph RECORDING["Recording"] + CHOOSE -- C --> C["Publish experience"] + CHOOSE -- D --> D["Archive to plays"] + CHOOSE -- E --> E["Update root README"] + CHOOSE -- F --> F["File an issue"] + end + + A --> CONFIRM["Developer confirms"] --> DONE(["Done"]) + B --> CONFIRM + C --> CONFIRM + D --> CONFIRM + E --> CONFIRM + F --> CONFIRM + + classDef trigger fill:#f3e8ff,stroke:#8a5bd0,color:#333; + classDef offer fill:#fff3cd,stroke:#e6a817,color:#333; + classDef action fill:#e7f0ff,stroke:#4a74b8,color:#333; + classDef done fill:#e6f7e6,stroke:#4a9e4a,color:#333; + class T1,T2 trigger; + class OFFER,CHOOSE offer; + class A,B,C,D,E,F action; + class DONE done; +``` + +## Published profile + +Publishing to the community collects a set of project attributes. Keep these as +a shared profile so actions C, D, E, and F can reuse the same values instead of +collecting them again: + +- Application name (lowercase-kebab-case). +- Bilingual publish title and description. +- Cover image (`-cover.`, up to 10 MiB). +- Source address: the HTTPS Git page the developer submitted, resolved from + `git remote -v`. +- Firmware path / merged `.bin`. + +At execution, reuse the profile where it was already collected. If the profile +was not collected, fetch the values through the relevant action skill. + +## Shared safety and consent gates + +Every action follows the same non-negotiable rules: + +- Confirm consent before starting; this work touches project-private content. +- Confirm a GitHub channel (GitHub MCP, a GitHub skill, or `gh`) before any + submission; if none is available, generate content for manual pasting and stop. +- Do not submit (issue or PR) until the developer has reviewed and authorized it. +- Do not commit on or modify the developer's current branch; carry the change on a + dedicated branch or worktree. +- Never include credentials, device QR secrets, private device links, personal + data, or unsanitized logs. + +## Related documents + +- Firmware publishing: [publish-to-community.md](publish-to-community.md) +- Fork workflow and root README ownership: [fork-guide.md](../fork-guide.md) +- Commit and pull-request rules: [commit-and-pr.md](../contribution/commit-and-pr.md) diff --git a/docs/development/project-completion.zh_CN.md b/docs/development/project-completion.zh_CN.md new file mode 100644 index 0000000..4aedbc7 --- /dev/null +++ b/docs/development/project-completion.zh_CN.md @@ -0,0 +1,100 @@ +

+ 简体中文 · English +

+ +# 项目开发完成流程 + +当一个项目的开发结束,项目完成流程提供了一个由六项可选动作组成的菜单。本页是唯一权威索引:说明触发时机、按用途分组的六项动作、共同的安全与同意门槛,以及共享的发布属性。 + +完成流程不是固定流水线,也不与发布绑定。开发者选择其中任意一项或多项,顺序不限。每项动作只有在开发者确认后才会执行。 + +## 何时提供完成流程 + +出现以下任一信号时,就提供这片选项菜单: + +- 开发者说项目已完成(开发结束)。 +- 开发者要求直接执行这六项动作中的任意一项。 + +两种情况下都提醒开发者:下面六项收尾动作可用,每项都可单独选择或组合选择。 + +## 六项动作 + +动作用途分组。交付类动作发布项目结果;沉淀类动作捕获文档与开放协作。 + +### 交付 + +| 编号 | 动作 | 参考 | +| --- | --- | --- | +| A | 发布到社区市场 | [publish-to-community.md](project-completion/publish-to-community.md) | +| B | 发布到 Git 并更新版本 | [release-update.md](project-completion/release-update.md) | + +### 沉淀 + +| 编号 | 动作 | 参考 | +| --- | --- | --- | +| C | 发布经验 | [experience.md](project-completion/experience.md) | +| D | 归档应用到 plays | [archive-plays.md](project-completion/archive-plays.md) | +| E | 更新根 README | [readme-update.md](project-completion/readme-update.md) | +| F | 提交 issue | [file-issue.md](project-completion/file-issue.md) | + +每个动作都指向 [`project-completion/`](project-completion/) 下的一份专门文档,文档写明驱动它的仓库 skill 或权威文档。这里不重写 skill;动作文档引用它们。 + +## 触发流程 + +```mermaid +flowchart TD + T1["开发者:项目已完成"] + T2["开发者:执行六项中任意一项"] + + T1 --> OFFER + T2 --> OFFER + + OFFER["提供六项收尾动作(单选或多选)"] --> CHOOSE{"开发者选择"} + + subgraph DELIVERY["交付"] + CHOOSE -- A --> A["发布到社区市场"] + CHOOSE -- B --> B["发布到 Git / 更新版本"] + end + + subgraph RECORDING["沉淀"] + CHOOSE -- C --> C["发布经验"] + CHOOSE -- D --> D["归档到 plays"] + CHOOSE -- E --> E["更新根 README"] + CHOOSE -- F --> F["提交 issue"] + end + + A --> CONFIRM["开发者确认"] --> DONE(["完成"]) + B --> CONFIRM + C --> CONFIRM + D --> CONFIRM + E --> CONFIRM + F --> CONFIRM +``` + +## 共享发布属性 + +发布到社区时会采集一组项目属性。把这些作为共享 profile,让 C、D、E、F 都能复用同一份值,而不是重复采集: + +- 应用名(lowercase-kebab-case)。 +- 双语发布标题与简介。 +- 封面图像(`-cover.`,≤10 MiB)。 +- 源码地址:开发者提交的 HTTPS Git 页,从 `git remote -v` 解析。 +- 固件路径 / 合并 `.bin`。 + +执行时若 profile 已采集则直接复用;若未采集,则通过对应动作 skill 获取这些值。 + +## 共同的安全与同意门槛 + +每项动作都遵守下面这些不可协商的规则: + +- 开始前确认同意;本工作涉及项目私有内容。 +- 任何提交前确认已有可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`);若都不可用,则生成内容供手动粘贴并停止。 +- 在开发者审查并授权之前,不提交(issue 或 PR)。 +- 不在开发者当前分支上提交或修改;变更放在独立分支或 worktree 上承载。 +- 永远不包含凭证、设备 QR 密钥、私密设备链接、个人数据或未脱敏日志。 + +## 相关文档 + +- 固件发布:[publish-to-community.md](publish-to-community.md) +- Fork 工作流与根 README 归属:[fork-guide.md](../fork-guide.md) +- 提交与 PR 规则:[commit-and-pr.md](../contribution/commit-and-pr.md) diff --git a/docs/development/project-completion/archive-plays.md b/docs/development/project-completion/archive-plays.md new file mode 100644 index 0000000..271c86e --- /dev/null +++ b/docs/development/project-completion/archive-plays.md @@ -0,0 +1,39 @@ +

+ 简体中文 · English +

+ +# Action D: Archive the Application to plays + +This action archives a published application into the upstream `plays/` +application archive so it is discoverable in-repository for later querying. It +is one of the six optional closing actions listed in the +[project completion](../project-completion.md). + +The workflow is driven by the `plays-archive` skill. + +## Inputs + +- Application name (lowercase-kebab-case). +- [Published profile](../project-completion.md#published-profile): bilingual title and + description, source address, and cover image. + +## 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. +3. Add the cover image as `plays//-cover.`. +4. Handle each branch's root README independently. +5. Commit only the summary and cover on a dedicated branch; do not store the + firmware `.bin`. +6. After review, open the archive PR against the upstream project. + +## Safety + +- Never store the merged firmware `.bin` in the archive; it is a build artifact. +- Do not submit before developer review and consent. + +## Related documents + +- Application archive convention: [plays/README.md](../../../plays/README.md) +- Skill: [plays-archive](../../../skills/plays-archive/SKILL.md) diff --git a/docs/development/project-completion/archive-plays.zh_CN.md b/docs/development/project-completion/archive-plays.zh_CN.md new file mode 100644 index 0000000..9a50f83 --- /dev/null +++ b/docs/development/project-completion/archive-plays.zh_CN.md @@ -0,0 +1,33 @@ +

+ 简体中文 · English +

+ +# 动作 D:归档应用到 plays + +本动作把已发布的应用归档到上游 `plays/` 应用档案,这样它能在仓库内留存、便于后续查询。它是[项目开发完成流程](../project-completion.md)列出的六项可选动作之一。 + +工作流由 `plays-archive` skill 驱动。 + +## 输入 + +- 应用名(lowercase-kebab-case)。 +- [共享发布属性](../project-completion.md#共享发布属性):双语标题与简介、源码地址、封面图。 + +## 步骤 + +1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 +2. 在 `plays//` 下生成双语 AI 功能总结(`README.md` / `.zh_CN.md`),有根 README 时合并它。 +3. 添加封面图 `plays//-cover.`。 +4. 各自处理每个分支的根 README。 +5. 只在专门分支上提交总结与封面;不存固件 `.bin`。 +6. 经审查后,向上游项目开归档 PR。 + +## 安全 + +- 绝不在档案中保存合并固件 `.bin`;它是构建产物。 +- 未经开发者审查与同意,不提交。 + +## 相关文档 + +- 应用档案约定:[plays/README.md](../../../plays/README.md) +- Skill:[plays-archive](../../../skills/plays-archive/SKILL.md) diff --git a/docs/development/project-completion/experience.md b/docs/development/project-completion/experience.md new file mode 100644 index 0000000..7c5372d --- /dev/null +++ b/docs/development/project-completion/experience.md @@ -0,0 +1,50 @@ +

+ 简体中文 · English +

+ +# Action C: Publish Experience + +This action captures reusable, durable development experience from a release and +proposes it as a documentation pull request to the upstream project. It is one +of the six optional closing actions listed in the [project completion](../project-completion.md). + +The workflow is driven by the `experience-pr` skill. + +## Focus + +Capture the fork's own `docs/` differences from upstream — the documents the +developer created or changed on this fork. Extract only durable, reusable +learnings: + +- What the fork documents or changes that upstream does not, and why. +- Hardware facts, interfaces, timings, resource budgets, or failure behavior. +- Build, validation, or release-flow improvements. +- Generalizations that apply to the next release. + +## Route + +Decide where each learning belongs before submitting: + +- **Upstream the reusable, general experience** — learnings that benefit any + user and belong in the upstream baseline. Submit as a PR to the upstream + project. +- **Keep fork-specific customization in the fork** — product-customized content, + fork-private business rules, or fork-only assets. Do not submit these + upstream; record them locally. + +## Steps + +1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). +2. Compare the fork to upstream to find the `docs/` differences. +3. Extract and route the reusable experience. +4. Write a single entry under `docs/experiences//` (one `.md` file plus + its `.zh_CN.md` peer), named after the entry's content summary in + lowercase-kebab-case, and link it from the experience index. +5. Present the change for review, then commit, push to the fork, and open a PR + only after explicit approval. + +## Related documents + +- Experience index: [experience-notes.md](../experience-notes.md) +- Skill: [experience-pr](../../../skills/experience-pr/SKILL.md) +- Fork workflow: [fork-guide.md](../../fork-guide.md) diff --git a/docs/development/project-completion/experience.zh_CN.md b/docs/development/project-completion/experience.zh_CN.md new file mode 100644 index 0000000..ba2d497 --- /dev/null +++ b/docs/development/project-completion/experience.zh_CN.md @@ -0,0 +1,39 @@ +

+ 简体中文 · English +

+ +# 动作 C:发布经验 + +本动作把一次发布中可复用的、持久的开发经验固化,并作为文档 PR 提交到上游项目。它是[项目开发完成流程](../project-completion.md)列出的六项可选动作之一。 + +工作流由 `experience-pr` skill 驱动。 + +## 聚焦 + +采集 fork 自身相对上游 `docs/` 的差异——开发者在这个 fork 上创建或修改过的文档。只提取持久、可复用的经验: + +- fork 记录了哪些上游没有的东西,以及为什么。 +- 硬件事实、接口、时序、资源预算或失败行为。 +- 构建、校验或发布流程上的改进。 +- 能适用于下一次发布的一般化经验。 + +## 分流 + +提交前先决定每条经验归属: + +- **通用经验回上游**——对任何用户都有益、属于上游基线的经验。作为 PR 提交到上游项目。 +- **fork 私有定制留在 fork**——产品定制内容、fork 私有业务规则或专有资产。不提交上游,记录在本地。 + +## 步骤 + +1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 +2. 对比 fork 与上游,找出 `docs/` 的差异。 +3. 提取并分流可复用经验。 +4. 在 `docs/experiences//` 下写入一个条目(一个 `.md` 文件,配 `.zh_CN.md`),按内容摘要命名(lowercase-kebab-case),并从经验索引链接它。 +5. 把变更交给开发者审查,然后在获得明确批准后再 commit、push 到 fork、并向上游开 PR。 + +## 相关文档 + +- 经验索引:[experience-notes.md](../experience-notes.md) +- Skill:[experience-pr](../../../skills/experience-pr/SKILL.md) +- Fork 工作流:[fork-guide.md](../../fork-guide.md) diff --git a/docs/development/project-completion/file-issue.md b/docs/development/project-completion/file-issue.md new file mode 100644 index 0000000..7889a21 --- /dev/null +++ b/docs/development/project-completion/file-issue.md @@ -0,0 +1,36 @@ +

+ 简体中文 · English +

+ +# Action F: File an Issue + +This action gathers the releasing developer's own improvement points and files +them as feature request issues against the upstream project. It is one of the six +optional closing actions listed in the [project completion](../project-completion.md). + +The workflow is driven by the `issue-suggestions` skill. Issues are filed against +the upstream project, not the fork. + +## Steps + +1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). +2. Collect the developer's own improvement points encountered while developing or + shipping the release. +3. Deduplicate, drop invalid or resolved points, and categorize by affected area. +4. Match against existing issues and PRs; do not create duplicates. +5. Draft a feature request using the upstream issue template. +6. Present the draft and wait for explicit approval before submitting. +7. Submit through the first available GitHub channel and read the created issue + back to confirm. + +## Safety + +- Never include credentials, device QR secrets, private device links, personal + data, or unsanitized logs. +- Security vulnerabilities go through `.github/SECURITY.md`, not a public issue. + +## Related documents + +- Filing issues reference: [file-issues.md](../file-issues.md) +- Skill: [issue-suggestions](../../../skills/issue-suggestions/SKILL.md) +- Issue template: [.github/ISSUE_TEMPLATE/feature_request.yml](../../../.github/ISSUE_TEMPLATE/feature_request.yml) diff --git a/docs/development/project-completion/file-issue.zh_CN.md b/docs/development/project-completion/file-issue.zh_CN.md new file mode 100644 index 0000000..6a57c17 --- /dev/null +++ b/docs/development/project-completion/file-issue.zh_CN.md @@ -0,0 +1,30 @@ +

+ 简体中文 · English +

+ +# 动作 F:提交 issue + +本动作收集发布固件的开发者本人的改进点,把有价值的整理成功能建议 issue,提交到上游项目。它是[项目开发完成流程](../project-completion.md)列出的六项可选动作之一。 + +工作流由 `issue-suggestions` skill 驱动。issue 提交到上游项目,而不是 fork。 + +## 步骤 + +1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 +2. 收集开发者在开发或发布该版本过程中遇到的自身改进点。 +3. 去重、剔除无效或已解决的点,并按影响区域分类。 +4. 与已有 issue 和 PR 匹配;不建重复项。 +5. 使用上游 issue 模板起草功能建议。 +6. 提交前把草案展示给开发者并取得明确批准。 +7. 通过第一个可用的 GitHub 通道提交,并读回创建的 issue 确认。 + +## 安全 + +- 绝不包含凭证、设备 QR 密钥、私密设备链接、个人数据或未脱敏日志。 +- 安全漏洞走 `.github/SECURITY.md`,不通过公开 issue。 + +## 相关文档 + +- 提交 issue 参考:[file-issues.md](../file-issues.md) +- Skill:[issue-suggestions](../../../skills/issue-suggestions/SKILL.md) +- issue 模板:[.github/ISSUE_TEMPLATE/feature_request.yml](../../../.github/ISSUE_TEMPLATE/feature_request.yml) diff --git a/docs/development/project-completion/publish-to-community.md b/docs/development/project-completion/publish-to-community.md new file mode 100644 index 0000000..fb5a5e8 --- /dev/null +++ b/docs/development/project-completion/publish-to-community.md @@ -0,0 +1,55 @@ +

+ 简体中文 · English +

+ +# Action A: Publish to the Community Market + +This action releases the firmware to the AI Passport community market. It is one +of the six optional closing actions listed in the +[project completion](../project-completion.md). + +The workflow is driven by the official publisher skill. Running the prompt once +makes the assistant install the skill from the official bundle; nothing is +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 representative cover image (JPEG / PNG / WebP, up to 10 MiB). +- The public HTTPS Git page for the firmware repository, resolved from + `git remote -v`. + +## Output + +These values form the [published profile](../project-completion.md#published-profile) that +the other closing actions reuse: + +- Application name. +- Bilingual publish title and description. +- Cover image. +- Source address. + +## Steps + +1. Install the publisher skill from the official bundle. +2. Inspect the project and prepare the bilingual title and description. +3. Resolve the HTTPS Git source. +4. Prepare and validate the cover. +5. Authorize through the official site. +6. Preview every field and obtain explicit approval before uploading. +7. Upload and report the response. + +## Safety and boundaries + +- Upload only to `https://ai-passport.folotoy.cn`. Publishing and updating are + external mutations. +- Validation, drafting, and preview that is not confirmed by the developer does + not authorize upload. +- The assistant never requests, receives, or stores authorization credentials. +- Never retry a rejected upload automatically; report the response and resolve + the cause with the developer first. + +## Related documents + +- Community publishing reference: [publish-to-community.md](../publish-to-community.md) diff --git a/docs/development/project-completion/publish-to-community.zh_CN.md b/docs/development/project-completion/publish-to-community.zh_CN.md new file mode 100644 index 0000000..06afb7a --- /dev/null +++ b/docs/development/project-completion/publish-to-community.zh_CN.md @@ -0,0 +1,45 @@ +

+ 简体中文 · English +

+ +# 动作 A:发布到社区市场 + +本动作把固件发布到 AI Passport 社区市场。它是[项目开发完成流程](../project-completion.md)列出的六项可选动作之一。 + +工作流由官方发布 skill 驱动。运行一次提示词,让助手从官方包安装 skill;仓库无需提交任何东西。 + +## 输入 + +- 单个合并的 ESP `.bin`,从 `0x0` 烧录。必要时用 `./tools/validate.sh --firmware` 或 `idf.py build` 构建。 +- 一张代表产品的封面图(JPEG / PNG / WebP,≤10 MiB)。 +- 固件仓库的公开 HTTPS Git 页,从 `git remote -v` 解析。 + +## 输出 + +这些值构成[共享发布属性](../project-completion.md#共享发布属性),供其它收尾动作复用: + +- 应用名。 +- 双语发布标题与简介。 +- 封面图像。 +- 源码地址。 + +## 步骤 + +1. 从官方包安装发布 skill。 +2. 分析项目并整理中英文标题与简介。 +3. 解析 HTTPS Git 源码。 +4. 准备并校验封面。 +5. 经官方站点授权。 +6. 正式上传前,把全部内容展示给开发者并取得明确批准。 +7. 上传并汇报响应。 + +## 安全与边界 + +- 只上传到 `https://ai-passport.folotoy.cn`。发布与更新是外部变更。 +- 未经开发者确认的验证、起草与预览不授权上传。 +- 助手绝不索取、接收或存储授权凭证。 +- 不自动重试被拒的上传;先把响应展示给开发者,查清原因再处理。 + +## 相关文档 + +- 社区发布参考:[publish-to-community.md](../publish-to-community.md) diff --git a/docs/development/project-completion/readme-update.md b/docs/development/project-completion/readme-update.md new file mode 100644 index 0000000..b203b36 --- /dev/null +++ b/docs/development/project-completion/readme-update.md @@ -0,0 +1,40 @@ +

+ 简体中文 · English +

+ +# Action E: Update the Root README + +This action updates the fork's root `README.md` on the relevant branches to +reflect the newly released or archived application. It is one of the six optional +closing actions listed in the [project completion](../project-completion.md). + +The root README path is intentionally reserved for the fork owner. Upstream's +project overview lives at `docs/README.md`; a fork may add its own root README to +explain its product without replacing upstream documentation. + +The fork keeps `main` synced with upstream and puts product work on `feature/*` +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. + +## Rules + +- Only touch fork-owned root READMEs (`README.md` / `README.zh_CN.md`); do not + modify the upstream project overview at `docs/README.md`. +- Check the root README on each relevant branch (`main` and the current + `feature/*` branch), not just one branch. +- Follow the repository language rule: English at the default `.md` path and + Simplified Chinese at the paired `.zh_CN.md`, aligned in the same change. + +## Steps + +1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). +2. For each relevant branch, check whether a fork-owned root README exists. +3. If it exists, update it to include the newly archived application. +4. If it does not exist, create a fork-owned root README describing the product. + +## Related documents + +- Fork workflow and root README ownership: [fork-guide.md](../../fork-guide.md) +- Application archive skill: [plays-archive](../../../skills/plays-archive/SKILL.md) +- Documentation conventions: [doc-conventions.md](../../contribution/doc-conventions.md) diff --git a/docs/development/project-completion/readme-update.zh_CN.md b/docs/development/project-completion/readme-update.zh_CN.md new file mode 100644 index 0000000..180fc9b --- /dev/null +++ b/docs/development/project-completion/readme-update.zh_CN.md @@ -0,0 +1,30 @@ +

+ 简体中文 · English +

+ +# 动作 E:更新根 README + +本动作更新 fork 在相关分支上的根 `README.md`,反映新发布或归档的应用。它是[项目开发完成流程](../project-completion.md)列出的六项可选动作之一。 + +根 README 路径特意留给 fork 所有者。上游的项目概览位于 `docs/README.md`;fork 可以添加自己的根 README 来解释其产品,而不替换上游文档。 + +fork 的 `main` 与上游保持同步,产品工作放在 `feature/*` 分支上,因此根 README 会存在于多个分支。每个分支的根 README **各自处理**——`main` 的 README 和某个 `feature/*` 分支的 README 是两个独立决定。 + +## 规则 + +- 只动 fork 所有的根 README(`README.md` / `README.zh_CN.md`);不修改 `docs/README.md` 的上游项目概览。 +- 检查每个相关分支(`main` 和当前 `feature/*` 分支)上的根 README,而不是只看一个分支。 +- 遵循仓库语言规则:默认 `.md` 用英文,配对的 `.zh_CN.md` 用简体中文,同一变更内对齐。 + +## 步骤 + +1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 +2. 对每个相关分支,检查是否存在 fork 所有的根 README。 +3. 若存在,更新它,纳入新归档的应用。 +4. 若不存在,创建一份 fork 所有的根 README 描述产品。 + +## 相关文档 + +- Fork 工作流与根 README 归属:[fork-guide.md](../../fork-guide.md) +- 应用归档 skill:[plays-archive](../../../skills/plays-archive/SKILL.md) +- 文档规范:[doc-conventions.md](../../contribution/doc-conventions.md) diff --git a/docs/development/project-completion/release-update.md b/docs/development/project-completion/release-update.md new file mode 100644 index 0000000..4b14a32 --- /dev/null +++ b/docs/development/project-completion/release-update.md @@ -0,0 +1,46 @@ +

+ 简体中文 · English +

+ +# Action B: Publish to Git and Update the Release + +This action publishes the firmware or code to a version-controlled repository +and, when intended, updates the GitHub/GitLab release. It is one of the six +optional closing actions listed in the [project completion](../project-completion.md). + +This is the Git publishing path, not the community path. Confirm the destination +first; see [publish-to-community.md](./publish-to-community.md) for the community +market. + +## Steps + +1. Commit the change and push it to the fork (`origin`). +2. Create and push a tag to trigger the release workflow. +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. +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. + +## Rules + +- Follow the repository commit and pull-request rules + ([commit-and-pr.md](../../contribution/commit-and-pr.md)). +- Follow the fork workflow ([fork-guide.md](../../fork-guide.md)). +- A tag-triggered build runs `build-firmware.yml`, which publishes the release + only for a tag. See [CI-build-and-release.md](../CI-build-and-release.md). +- The workflow creates the release with a default title of the version/tag name + (from `softprops/action-gh-release` and `github.ref_name`). After the release + is published, refine the title to the project feature name plus the version + number — for example `Voice Keychain v1.2.0`. The version is the tag, and the + feature name is the application's publish name from the shared + [publish profile](../project-completion.md#published-profile). +- Release notes must explain the build to a user who has not read the + repository: what is new, how to build, and how to use. + +## Related documents + +- Tagged firmware builds and releases: [CI-build-and-release.md](../CI-build-and-release.md) +- Commit and pull-request rules: [commit-and-pr.md](../../contribution/commit-and-pr.md) +- Fork workflow: [fork-guide.md](../../fork-guide.md) diff --git a/docs/development/project-completion/release-update.zh_CN.md b/docs/development/project-completion/release-update.zh_CN.md new file mode 100644 index 0000000..9f96af5 --- /dev/null +++ b/docs/development/project-completion/release-update.zh_CN.md @@ -0,0 +1,31 @@ +

+ 简体中文 · English +

+ +# 动作 B:发布到 Git 并更新版本 + +本动作把固件或代码发布到版本仓库,并在需要时更新 GitHub/GitLab release。它是[项目开发完成流程](../project-completion.md)列出的六项可选动作之一。 + +这是提交到 Git 的路径,不是社区路径。先确认目的地;社区市场见 [publish-to-community.md](./publish-to-community.md)。 + +## 步骤 + +1. 提交改动并推送到 fork(`origin`)。 +2. 创建并推送 tag 以触发发布工作流。 +3. 让 tag 触发的构建产出合并固件 `.bin`。 +4. 用产物创建或更新 GitHub/GitLab release。工作流默认把发布标题设为版本号名;发布后把它完善为「项目功能名称 + 版本号」。 +5. 用英文写发布说明(项目双语处配简体中文版),覆盖新增内容、如何构建、如何使用。 + +## 规则 + +- 遵循仓库提交与 PR 规则([commit-and-pr.md](../../contribution/commit-and-pr.md))。 +- 遵循 fork 工作流([fork-guide.md](../../fork-guide.md))。 +- tag 触发的构建运行 `build-firmware.yml`,它只在 tag 时发布。见 [CI-build-and-release.md](../CI-build-and-release.md)。 +- 工作流创建 release,默认标题为版本号名(来自 `softprops/action-gh-release` 的 `github.ref_name`)。发布后把标题完善为「项目功能名称 + 版本号」,例如 `Voice Keychain v1.2.0`。版本号为 tag,功能名称为共享[发布属性](../project-completion.md#共享发布属性)中的应用发布名。 +- 发布说明必须向未读过仓库的用户解释构建:新增内容、如何构建、如何使用。 + +## 相关文档 + +- 打 tag 构建与发版:[CI-build-and-release.md](../CI-build-and-release.md) +- 提交与 PR 规则:[commit-and-pr.md](../../contribution/commit-and-pr.md) +- Fork 工作流:[fork-guide.md](../../fork-guide.md) diff --git a/docs/development/publish-to-community.md b/docs/development/publish-to-community.md index 415ed0d..fc46873 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/after-release.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 post-release follow-up (`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 f23a613..38dcc0e 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/after-release.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/docs/fork-guide.md b/docs/fork-guide.md index a2bf6b0..756e9a6 100644 --- a/docs/fork-guide.md +++ b/docs/fork-guide.md @@ -29,6 +29,6 @@ The root `README.md` path is intentionally available to a fork owner. Upstream's Use `docs/assets/` for architecture notes, product design, and images that supplement a fork's README. Upstream keeps that directory empty except for `.gitkeep`; fork-private content must not be proposed back to upstream. -Documentation and experience follow the same split. Fork-specific product customization (architecture notes, product design, fork-only assets) stays in the fork under `docs/assets/` and is not proposed back upstream. General, upstream-benefiting documentation or experience improvements — durable facts, reusable interfaces, build or release-flow improvements that help any AI Passport user — are submitted back upstream as a pull request. The `plays/` application archive and the post-release experience notes belong upstream and are proposed back as pull requests. Use the `experience-pr` and `plays-archive` skills for post-release work; see `docs/development/after-release.md`. +Documentation and experience follow the same split. Fork-specific product customization (architecture notes, product design, fork-only assets) stays in the fork under `docs/assets/` and is not proposed back upstream. General, upstream-benefiting documentation or experience improvements — durable facts, reusable interfaces, build or release-flow improvements that help any AI Passport user — are submitted back upstream as a pull request. The `plays/` application archive and the post-release experience notes belong upstream and are proposed back as pull requests. Use the `experience-pr` and `plays-archive` skills for post-release work; see `docs/development/project-completion.md`. All fork documentation follows the repository language rule: English at the default `.md` path and Simplified Chinese at `.zh_CN.md`, with reciprocal switches. diff --git a/docs/fork-guide.zh_CN.md b/docs/fork-guide.zh_CN.md index efa9918..1ae980c 100644 --- a/docs/fork-guide.zh_CN.md +++ b/docs/fork-guide.zh_CN.md @@ -65,4 +65,4 @@ fork 后,`main` 分支**只允许增加/修改根目录的 `README.md` 和 `do fork,放在 `docs/assets/` 下,不提交回上游。通用、上游也受益的文档或经验改进——持续的硬件事实、 可复用的接口、能帮助任何 AI Passport 用户的构建或发布流程改进——作为 PR 提交回上游。 `plays/` 应用档案与发布后的经验沉淀属于上游,作为 PR 提案回上游。发布后的工作请用 -`experience-pr` 与 `plays-archive` skill,见 `docs/development/after-release.md`。 +`experience-pr` 与 `plays-archive` skill,见 `docs/development/project-completion.md`。 diff --git a/skills/experience-pr/SKILL.md b/skills/experience-pr/SKILL.md index 956ba7e..329b242 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/after-release.md` +- Post-release follow-up 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 a5583e4..bbdb4e9 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/after-release.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 de1e9d8..756da11 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/after-release.md` +- Post-release follow-up 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 c0120bf..7e8630b 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/after-release.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 db2e2ad..0ff2028 100644 --- a/skills/plays-archive/SKILL.md +++ b/skills/plays-archive/SKILL.md @@ -128,6 +128,6 @@ and read it back to confirm. Opening a PR requires separate confirmation. ## Related documents - Application archive convention: `../plays/README.md` -- Post-release follow-up overview: `docs/development/after-release.md` +- Post-release follow-up overview: `docs/development/project-completion.md` - Firmware publishing: `docs/development/publish-to-community.md` - Contribution and commit rules: `docs/contribution/commit-and-pr.md` diff --git a/skills/plays-archive/SKILL.zh_CN.md b/skills/plays-archive/SKILL.zh_CN.md index 12ee4f7..a1790a4 100644 --- a/skills/plays-archive/SKILL.zh_CN.md +++ b/skills/plays-archive/SKILL.zh_CN.md @@ -96,6 +96,6 @@ Unverified 分别上报。 ## 相关文档 - 应用档案约定:`../plays/README.md` -- 发布后收尾总览:`docs/development/after-release.md` +- 发布后收尾总览:`docs/development/project-completion.md` - 固件发布:`docs/development/publish-to-community.md` - 贡献与提交规则:`docs/contribution/commit-and-pr.md` From f62dccc47019889ff1b5292db5165eaffa9bbb10 Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Fri, 28 Aug 2026 10:32:14 +0800 Subject: [PATCH 2/6] docs(project-completion): adopt text-only plays archive convention MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 PR #25 的 5 个增强并入 project-completion 的动作文档,保持新版约定一致: - 动作 D(归档到 plays):改为纯文本归档。不再提交封面图,封面按文件名 与格式记录在发布元数据里;档案 text-only。 - 动作 E(更新根 README):README 更新为必须(无论是否归档);明确宿主 feature 分支 + fork main 两处各自处理;fork main 根 README 为项目目录, 完整包含项目 README 内容;README 为 fork 独有内容,直接 merge 不另开 PR。 - 动作 B(发布到 Git):补编译偏好——日常用 idf.py build,发布/交付前 需合并校验的 0x0 全镜像才用 validate.sh --firmware。 --- .../project-completion/archive-plays.md | 17 ++++++++----- .../project-completion/archive-plays.zh_CN.md | 11 ++++---- .../project-completion/readme-update.md | 25 ++++++++++++++++--- .../project-completion/readme-update.zh_CN.md | 12 ++++++--- .../project-completion/release-update.md | 3 +++ .../release-update.zh_CN.md | 1 + 6 files changed, 52 insertions(+), 17 deletions(-) diff --git a/docs/development/project-completion/archive-plays.md b/docs/development/project-completion/archive-plays.md index 271c86e..c126676 100644 --- a/docs/development/project-completion/archive-plays.md +++ b/docs/development/project-completion/archive-plays.md @@ -15,25 +15,30 @@ The workflow is driven by the `plays-archive` skill. - Application name (lowercase-kebab-case). - [Published profile](../project-completion.md#published-profile): bilingual title and - description, source address, and cover image. + description, and the source address. ## 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. -3. Add the cover image as `plays//-cover.`. -4. Handle each branch's root README independently. -5. Commit only the summary and cover on a dedicated branch; do not store the - firmware `.bin`. +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. +4. Handle each branch's root README independently (see + [readme-update.md](./readme-update.md) for the required README sync). +5. Commit only the summary on a dedicated branch; do not store the firmware + `.bin` or the cover image. 6. After review, open the archive PR against the upstream project. ## Safety -- Never store the merged firmware `.bin` in the archive; it is a build artifact. +- Never store the merged firmware `.bin` or the cover image in the archive; the + archive is text-only, and both are build/publish artifacts. - Do not submit before developer review and consent. ## Related documents - Application archive convention: [plays/README.md](../../../plays/README.md) - Skill: [plays-archive](../../../skills/plays-archive/SKILL.md) +- README update (required): [readme-update.md](./readme-update.md) diff --git a/docs/development/project-completion/archive-plays.zh_CN.md b/docs/development/project-completion/archive-plays.zh_CN.md index 9a50f83..6f51ed5 100644 --- a/docs/development/project-completion/archive-plays.zh_CN.md +++ b/docs/development/project-completion/archive-plays.zh_CN.md @@ -11,23 +11,24 @@ ## 输入 - 应用名(lowercase-kebab-case)。 -- [共享发布属性](../project-completion.md#共享发布属性):双语标题与简介、源码地址、封面图。 +- [共享发布属性](../project-completion.md#共享发布属性):双语标题与简介、源码地址。 ## 步骤 1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 2. 在 `plays//` 下生成双语 AI 功能总结(`README.md` / `.zh_CN.md`),有根 README 时合并它。 -3. 添加封面图 `plays//-cover.`。 -4. 各自处理每个分支的根 README。 -5. 只在专门分支上提交总结与封面;不存固件 `.bin`。 +3. 记录发布元数据——双语标题与简介、源码地址,其中包括封面按文件名与格式记录;但不提交封面图本身。档案为纯文本(text-only)。 +4. 各自处理每个分支的根 README(必需的 README 同步见 [readme-update.md](./readme-update.md))。 +5. 只在专门分支上提交总结;不存固件 `.bin`,也不存封面图。 6. 经审查后,向上游项目开归档 PR。 ## 安全 -- 绝不在档案中保存合并固件 `.bin`;它是构建产物。 +- 绝不在档案中保存合并固件 `.bin`,也不保存封面图;档案为纯文本,两者都是构建/发布产物。 - 未经开发者审查与同意,不提交。 ## 相关文档 - 应用档案约定:[plays/README.md](../../../plays/README.md) - Skill:[plays-archive](../../../skills/plays-archive/SKILL.md) +- README 更新(必须):[readme-update.md](./readme-update.md) diff --git a/docs/development/project-completion/readme-update.md b/docs/development/project-completion/readme-update.md index b203b36..4329f96 100644 --- a/docs/development/project-completion/readme-update.md +++ b/docs/development/project-completion/readme-update.md @@ -17,21 +17,40 @@ 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 + +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 +application is registered where it is developed. + ## Rules - Only touch fork-owned root READMEs (`README.md` / `README.zh_CN.md`); do not modify the upstream project overview at `docs/README.md`. - Check the root README on each relevant branch (`main` and the current `feature/*` branch), not just one branch. +- The fork `main` root README is the **catalog of the fork's projects**: it + **fully includes** the content of each project's own README — a complete + description of what the application does and how to use it (its interactions, + modes, keys, persistence, and notes) — not a one-line intro followed by a + branch link. Pull the content from the hosting branch's README. +- The fork root README and the hosting branch's root README are fork-owned + content. Commit them directly (merge) rather than opening a PR; open a PR only + when the change is meant to go upstream. - Follow the repository language rule: English at the default `.md` path and Simplified Chinese at the paired `.zh_CN.md`, aligned in the same change. ## Steps 1. Confirm consent and a GitHub channel (GitHub MCP, a GitHub skill, or `gh`). -2. For each relevant branch, check whether a fork-owned root README exists. -3. If it exists, update it to include the newly archived application. -4. If it does not exist, create a fork-owned root README describing the product. +2. On the hosting `feature/*` branch: create the bilingual README pair if it is + missing, or update it to add or refresh the application's own description. +3. On fork `main`: update the root README pair so the released application is + discoverable from the repository landing page, fully including the hosting + branch's README content. +4. Commit the README updates directly to the branch / fork `main` (fork-owned + content); do not open a PR for this unless it is an upstream change. ## Related documents diff --git a/docs/development/project-completion/readme-update.zh_CN.md b/docs/development/project-completion/readme-update.zh_CN.md index 180fc9b..fea72ce 100644 --- a/docs/development/project-completion/readme-update.zh_CN.md +++ b/docs/development/project-completion/readme-update.zh_CN.md @@ -10,18 +10,24 @@ fork 的 `main` 与上游保持同步,产品工作放在 `feature/*` 分支上,因此根 README 会存在于多个分支。每个分支的根 README **各自处理**——`main` 的 README 和某个 `feature/*` 分支的 README 是两个独立决定。 +## 何时必须 + +**无论是否归档,README 更新都是必须的。** 归档到 `plays/`(动作 D)是可选——开发者可以拒绝——但 README 仍须在宿主分支和 fork `main` 上更新,让应用在其开发处被登记。 + ## 规则 - 只动 fork 所有的根 README(`README.md` / `README.zh_CN.md`);不修改 `docs/README.md` 的上游项目概览。 - 检查每个相关分支(`main` 和当前 `feature/*` 分支)上的根 README,而不是只看一个分支。 +- fork `main` 根 README 是 **fork 项目目录**:它**完整包含**每个项目自己 README 的内容——一个完整描述应用做什么及如何使用的说明(交互、模式、按键、持久化与备注),而不是一行简介再跟一个分支链接。内容从宿主分支的 README 拉取。 +- fork 根 README 与宿主分支的根 README 都是 fork 独有内容。**直接提交(merge)**,不要另开 PR;只有当变更要进上游时才开 PR。 - 遵循仓库语言规则:默认 `.md` 用英文,配对的 `.zh_CN.md` 用简体中文,同一变更内对齐。 ## 步骤 1. 确认同意与可用的 GitHub 通道(GitHub MCP、GitHub skill 或 `gh`)。 -2. 对每个相关分支,检查是否存在 fork 所有的根 README。 -3. 若存在,更新它,纳入新归档的应用。 -4. 若不存在,创建一份 fork 所有的根 README 描述产品。 +2. 在宿主 `feature/*` 分支上:缺 README 则补齐双语 README 对,已经有则更新它,添加或刷新应用自己的描述。 +3. 在 fork `main` 上:更新根 README 对,让发布的该应用能从仓库落地页找到,并**完整包含宿主分支 README 的内容**。 +4. 直接把 README 更新提交到分支 / fork `main`(fork 独有内容);除非是上游变更,否则不为它开 PR。 ## 相关文档 diff --git a/docs/development/project-completion/release-update.md b/docs/development/project-completion/release-update.md index 4b14a32..0a6962b 100644 --- a/docs/development/project-completion/release-update.md +++ b/docs/development/project-completion/release-update.md @@ -30,6 +30,9 @@ market. - Follow the fork workflow ([fork-guide.md](../../fork-guide.md)). - A tag-triggered build runs `build-firmware.yml`, which publishes the release only for a tag. See [CI-build-and-release.md](../CI-build-and-release.md). +- For day-to-day compilation prefer `idf.py build` (fast, incremental); use + `./tools/validate.sh --firmware` only when the merged, byte-verified `0x0` + full image is needed, such as before a release or delivery. - The workflow creates the release with a default title of the version/tag name (from `softprops/action-gh-release` and `github.ref_name`). After the release is published, refine the title to the project feature name plus the version diff --git a/docs/development/project-completion/release-update.zh_CN.md b/docs/development/project-completion/release-update.zh_CN.md index 9f96af5..4db4659 100644 --- a/docs/development/project-completion/release-update.zh_CN.md +++ b/docs/development/project-completion/release-update.zh_CN.md @@ -21,6 +21,7 @@ - 遵循仓库提交与 PR 规则([commit-and-pr.md](../../contribution/commit-and-pr.md))。 - 遵循 fork 工作流([fork-guide.md](../../fork-guide.md))。 - tag 触发的构建运行 `build-firmware.yml`,它只在 tag 时发布。见 [CI-build-and-release.md](../CI-build-and-release.md)。 +- 日常编译优先用 `idf.py build`(快、增量);只有需要合并校验的 `0x0` 全镜像(如发布或交付前)才用 `./tools/validate.sh --firmware`。 - 工作流创建 release,默认标题为版本号名(来自 `softprops/action-gh-release` 的 `github.ref_name`)。发布后把标题完善为「项目功能名称 + 版本号」,例如 `Voice Keychain v1.2.0`。版本号为 tag,功能名称为共享[发布属性](../project-completion.md#共享发布属性)中的应用发布名。 - 发布说明必须向未读过仓库的用户解释构建:新增内容、如何构建、如何使用。 From 11a673bbb32559b822c29bdad863bc699aa017c4 Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Fri, 28 Aug 2026 11:32:29 +0800 Subject: [PATCH 3/6] docs(fork-guide): branch projects from upstream main Require the feature/* branch to be created from a base aligned with FoloToy/ai-passport:main, using the latest upstream main as the branch-off point rather than the fork's own main. A fork main may be stale or unable to sync, so it is not a reliable baseline. Aligns the English and zh_CN fork guides. --- docs/fork-guide.md | 1 + docs/fork-guide.zh_CN.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/fork-guide.md b/docs/fork-guide.md index 756e9a6..21f1a6e 100644 --- a/docs/fork-guide.md +++ b/docs/fork-guide.md @@ -24,6 +24,7 @@ The root `README.md` path is intentionally available to a fork owner. Upstream's - Keep fork `main` synchronized with `FoloToy/ai-passport:main`. - On fork `main`, limit fork-owned content to a root `README.md` pair and `docs/assets/`; develop firmware and other changes on `feature/*` branches and merge by pull request. +- **Before starting a new project, create the `feature/*` branch from a base that stays aligned with `FoloToy/ai-passport:main`.** Use the latest upstream `main` as the branch-off point (e.g. fetch upstream then branch from `upstream/main`), not the fork's own `main` — the fork `main` may be stale or unable to sync. This keeps every new project on the current upstream baseline and avoids basing work on a stale or diverged fork `main`. - Enable GitHub Actions manually after forking. The upstream-sync workflow is disabled by GitHub until the fork owner enables it. - If development must happen directly on `main`, disable `.github/workflows/sync-main.yml` first to prevent automatic merge conflicts. diff --git a/docs/fork-guide.zh_CN.md b/docs/fork-guide.zh_CN.md index 1ae980c..77e303f 100644 --- a/docs/fork-guide.zh_CN.md +++ b/docs/fork-guide.zh_CN.md @@ -41,6 +41,8 @@ sdkconfig.defaults ESP32-C3、USB console、Flash、LVGL 默认配置 fork 后,`main` 分支**只允许增加/修改根目录的 `README.md` 和 `docs/assets/` 目录**(可建自己的说明/README 变体),**不允许改其它任何文件**——这样 fork 的 `main` 与上游保持最新同步、不产生冲突。任何其它修改(固件功能、文档规整等)一律在 `feature/*` 分支进行,用 PR 合并。 +**新开项目开发前**:从**与上游 `FoloToy/ai-passport:main` 保持一致**的基线创建 `feature/*` 分支——即以**上游最新 `main`** 作为分叉点(例如 fetch 上游后基于 `upstream/main` 开分支),而**不要**基于 fork 自己的 `main`。因为 fork 的 `main` 可能过期、或因为各种原因无法成功同步。这样每个新项目都从当前上游基线出发,避免基于过期/分歧的 fork `main`。 + ### 为什么根目录不放置 README **根目录的 `README.md` 是预留给开发者自行放置的,因此上游留空**: 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 4/6] 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` 二进制。 +- 不存储封面图(档案为纯文本)。 - 未经开发者审查与同意,不自动提交任何内容。 ## 相关文档 From afcc218586541776bcc785fadf800334405d39e6 Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Sat, 29 Aug 2026 02:27:05 +0800 Subject: [PATCH 5/6] docs(project-completion): fix stale after-release references The rename to project-completion left four references to the deleted after-release.md: two in the CHANGELOG (en + zh_CN) and two in the post-release-follow-up experience entry's related-documents section. Signed-off-by: Shinku <17696928+Shinku-Chen@users.noreply.github.com> --- docs/CHANGELOG.md | 2 +- docs/CHANGELOG.zh_CN.md | 2 +- docs/experiences/shinku-chen/post-release-follow-up.md | 2 +- docs/experiences/shinku-chen/post-release-follow-up.zh_CN.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 8b46b99..90116cb 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -7,7 +7,7 @@ ## Unreleased - Documented a release-title convention for multi-app releases: name tags as `v-` (e.g. `v0.1.0-voice-keychain`) so the release title carries the version and the app, and confirm the title after the release is published so a release list is scannable by app. -- Added a post-release follow-up workflow: an `issue-suggestions` skill for filing user feedback as issues against the upstream project, an `experience-pr` skill for submitting reusable development experience as a documentation PR, a `docs/experiences/` directory for per-entry experience files, and supporting `after-release`, `file-issues`, and experience-index documents. +- Added a post-release follow-up workflow: an `issue-suggestions` skill for filing user feedback as issues against the upstream project, an `experience-pr` skill for submitting reusable development experience as a documentation PR, a `docs/experiences/` directory for per-entry experience files, and supporting `project-completion`, `file-issues`, and experience-index documents. - Simplified the tracked repository root: moved GitHub-recognized community documents into `.github/`, moved the changelog into `docs/`, updated every reference, and added a root-document allowlist to repository checks. - Repository-wide language policy: every maintained Markdown default `.md` file is English, Simplified Chinese uses a paired `.zh_CN.md`, and both provide language switches. Static checks reject missing peers, missing switches, and Chinese prose in English defaults. - Phase one of the AI development workflow: streamlined task-based context routing, unified local/CI validation, added PR checks and a template, and committed the dependency lock for reproducible builds. diff --git a/docs/CHANGELOG.zh_CN.md b/docs/CHANGELOG.zh_CN.md index 3d9c461..05db7d7 100644 --- a/docs/CHANGELOG.zh_CN.md +++ b/docs/CHANGELOG.zh_CN.md @@ -7,7 +7,7 @@ ## Unreleased - 规定多应用发布的 Release 标题约定:tag 按 `v<版本>-<应用名>`(如 `v0.1.0-voice-keychain`)命名,让 Release 标题同时带版本与应用名;发布成功后核对标题,保证一眼扫 Release 列表就能区分是哪个应用。 -- 新增发布后收尾流程:`issue-suggestions` skill 用于把用户反馈作为 issue 提交到上游项目;`experience-pr` skill 用于把可复用的开发经验作为文档 PR 提交;新增 `docs/experiences/` 目录保存单条经验文件;并配套 `after-release`、`file-issues` 与经验索引文档。 +- 新增发布后收尾流程:`issue-suggestions` skill 用于把用户反馈作为 issue 提交到上游项目;`experience-pr` skill 用于把可复用的开发经验作为文档 PR 提交;新增 `docs/experiences/` 目录保存单条经验文件;并配套 `project-completion`、`file-issues` 与经验索引文档。 - 精简仓库根目录:将 GitHub 可识别的社区治理文档迁入 `.github/`,将变更记录迁入 `docs/`,同步全部引用,并在仓库检查中加入根目录文档白名单。 - 全仓库文档语言规范:所有维护中的 Markdown 默认 `.md` 文件使用英文,简体中文使用配对的 `.zh_CN.md`,双方提供语言切换;静态检查会阻止缺失配对、缺失切换链接或英文默认页混入中文正文。 - AI 开发流程一期:精简按任务加载的上下文入口,统一本地/CI 验证脚本,新增 PR 自动构建与模板,并提交依赖锁文件以提高构建可复现性。 diff --git a/docs/experiences/shinku-chen/post-release-follow-up.md b/docs/experiences/shinku-chen/post-release-follow-up.md index 492c2fe..2eecce1 100644 --- a/docs/experiences/shinku-chen/post-release-follow-up.md +++ b/docs/experiences/shinku-chen/post-release-follow-up.md @@ -58,5 +58,5 @@ change off the developer's current branch. ## Related documents - `docs/development/publish-to-community.md` — the publishing workflow. -- `docs/development/after-release.md` — the three follow-up tracks and gates. +- `docs/development/project-completion.md` — the project completion flow and its gates. - `docs/development/experience-notes.md` — index for this entry. diff --git a/docs/experiences/shinku-chen/post-release-follow-up.zh_CN.md b/docs/experiences/shinku-chen/post-release-follow-up.zh_CN.md index abe5aa1..4741b16 100644 --- a/docs/experiences/shinku-chen/post-release-follow-up.zh_CN.md +++ b/docs/experiences/shinku-chen/post-release-follow-up.zh_CN.md @@ -41,5 +41,5 @@ publisher skill 用设备码流程:跑 `authorize` 会打开官方创作者页 ## 相关文档 - `docs/development/publish-to-community.md` — 发布工作流。 -- `docs/development/after-release.md` — 三条收尾轨道与门槛。 +- `docs/development/project-completion.md` — 项目完成流程与门槛。 - `docs/development/experience-notes.md` — 本条的索引。 From 0d11ee38090ec952d31e04719559fa942db91947 Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Sat, 29 Aug 2026 05:11:08 +0800 Subject: [PATCH 6/6] docs(development): align archive-to-plays step with text-only convention Signed-off-by: Shinku <17696928+Shinku-Chen@users.noreply.github.com> --- docs/development/publish-to-community.md | 13 +++++++------ docs/development/publish-to-community.zh_CN.md | 5 +++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/development/publish-to-community.md b/docs/development/publish-to-community.md index e77e68c..e52eaa8 100644 --- a/docs/development/publish-to-community.md +++ b/docs/development/publish-to-community.md @@ -45,12 +45,13 @@ The assistant fetches the official bundle from the URL in the prompt and follows Once the firmware is published, ask the developer whether to archive this application into the upstream repository's [`plays/`](../../plays/README.md) application -archive. If they agree, generate an AI-functional summary for the application under -`plays///` (bilingual `README.md` / `.zh_CN.md`) and add the -cover image as `plays///-cover.`. -Only commit the summary and cover; do not store the firmware `.bin` here. Use the -`plays-archive` skill, which opens the archive PR against the upstream -`FoloToy/ai-passport`. +archive. If they agree, generate an AI-generated functional summary for the application under +`plays///` (bilingual `README.md` / `.zh_CN.md`). The archive is +**text-only**: record the cover image only by its file name and format as publish +metadata, and do **not** commit the cover image into `plays/` (see the convention in +[`plays/README.md`](../../plays/README.md)). Do not store the firmware `.bin` here +either. Use the `plays-archive` skill, which opens the archive PR against the +upstream `FoloToy/ai-passport`. This keeps the release's application discoverable in-repository for later querying. diff --git a/docs/development/publish-to-community.zh_CN.md b/docs/development/publish-to-community.zh_CN.md index 4bd653f..048a47c 100644 --- a/docs/development/publish-to-community.zh_CN.md +++ b/docs/development/publish-to-community.zh_CN.md @@ -50,8 +50,9 @@ skill 的 `SKILL.md` 定义了精确流程:检查项目、准备中英文标 固件发布后,询问开发者是否把该应用归档到上游仓库的 [`plays/`](../../plays/README.md) 应用档案。若同意,在 `plays///` 下生成该应用的 AI 功能总结(双语 -`README.md` / `.zh_CN.md`),并添加封面图 `plays///-cover.`。 -只提交总结与封面;**不要**在这里存固件 `.bin`。用 `plays-archive` skill,它会向上游 +`README.md` / `.zh_CN.md`)。档案为**纯文本**:封面图只记录文件名与格式作为发布元数据, +**不要**把封面图提交进 `plays/`(约定见 [`plays/README.md`](../../plays/README.md))。 +也不要在这里存固件 `.bin`。用 `plays-archive` skill,它会向上游 `FoloToy/ai-passport` 开归档 PR。 这样发布后的应用能在上游仓库留存、便于后续查询。