diff --git a/docs/development/after-release.md b/docs/development/after-release.md index e6db711..38e3214 100644 --- a/docs/development/after-release.md +++ b/docs/development/after-release.md @@ -23,10 +23,10 @@ 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, prompt the developer to -update it and merge it into the summary; if not, summarize directly. After -archiving, if neither branch has a root README, update (create) it so the -archived application is discoverable from the fork's own README. +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 2: Collect suggestions and file issues diff --git a/docs/development/after-release.zh_CN.md b/docs/development/after-release.zh_CN.md index a99a97f..8c643ee 100644 --- a/docs/development/after-release.zh_CN.md +++ b/docs/development/after-release.zh_CN.md @@ -18,8 +18,8 @@ `.bin`。见 [`../../plays/README.md`](../../plays/README.md)。 生成总结前,先检查 `main` 分支和当前分支**根目录**的 README(`plays-archive` skill):若有 README, -提示开发者更新并把它合并进总结;若没有,直接总结。归档完成后,若两侧分支根目录都无 README, -则更新(创建)它,让归档的应用能从 fork 自己的 README 检索到。 +把它合并进总结;若没有,直接总结。归档完成后对每个分支**各自处理**:没有根 README 的分支创建它, +已有根 README 的分支提示开发者更新它。 ## 轨道 2:收集建议并提交 issue diff --git a/skills/plays-archive/SKILL.md b/skills/plays-archive/SKILL.md index ba9277a..353714a 100644 --- a/skills/plays-archive/SKILL.md +++ b/skills/plays-archive/SKILL.md @@ -48,15 +48,19 @@ Follow the repository rule that the root README path is reserved for the fork owner (see `docs/fork-guide.md`); do not create a root README unless the fork actually owns one. -1. **If a README exists** (on `main` or the current branch): prompt the developer - to update it and read it. When archiving, **merge the README content into the - functional summary** so the summary reflects the human-facing description, not - just the code. +1. **If a README exists** (on `main` or the current branch): when archiving, **merge + the README content into the functional summary** so the summary reflects the + human-facing description, not just the code. A README that already exists is + kept for the branch that owns it. 2. **If no README exists**: summarize directly from the implementation, with no README merge. -3. **After archiving is complete**: if neither `main` nor the current branch has a - root README, update (create) the root README so the archived application is - discoverable from the fork's own README. +3. **After archiving is complete**, handle each branch's root README independently + (not as a single combined decision): + - For a branch with **no** root README, **create** (or update) the README on + that branch so the archived application is discoverable from the fork's own + README. + - For a branch that already **has** a root README, **prompt the developer to + update it** to reflect the new archived application. ## Generate the functional summary diff --git a/skills/plays-archive/SKILL.zh_CN.md b/skills/plays-archive/SKILL.zh_CN.md index 2326de6..8d9bf7d 100644 --- a/skills/plays-archive/SKILL.zh_CN.md +++ b/skills/plays-archive/SKILL.zh_CN.md @@ -39,11 +39,13 @@ description: 固件发布之后,把已发布的应用归档到本仓库的 pla 遵循仓库规则:根 README 路径保留给 fork owner(见 `docs/fork-guide.md`);除非 fork 确实拥有 根 README,否则不要创建。 -1. **若有 README**(`main` 或当前分支有):提示开发者更新并读取它。归档时把 **README 内容合并进 - 功能说明**,让说明既反映人类可读的描述,也反映代码。 +1. **若有 README**(`main` 或当前分支有):归档时把 **README 内容合并进功能说明**,让说明既 + 反映人类可读的描述,也反映代码。已存在的 README 归它所属的分支保留。 2. **若没有 README**:直接从实现总结,不合并 README。 -3. **归档完成后**:若 `main` 和当前分支根目录都**没有** README,则更新(创建)根 README,让归档的 - 应用能从 fork 自己的 README 检索到。 +3. **归档完成后**,对每个分支的根 README **各自处理**(不是一个合并判断): + - 对**没有**根 README 的分支:在**该分支**创建(或更新)README,让归档的应用能从 fork 自己的 + README 检索到。 + - 对已经**有**根 README 的分支:**提示开发者更新它**,以反映新归档的应用。 ## 生成功能说明