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] 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`