From 1ea38f5197463ec07b71204eefa878b3ed4b6b8d Mon Sep 17 00:00:00 2001 From: Shinku <17696928+Shinku-Chen@users.noreply.github.com> Date: Thu, 27 Aug 2026 02:12:44 +0800 Subject: [PATCH] docs: add fork-guide documentation split and post-release routing Add the documentation-and-experience split to fork-guide (fork-specific product customization stays in the fork; general, upstream-benefiting improvements go upstream), a post-release follow-up row to the AGENTS routing table, and an "archive to plays" step at the end of the community publishing flow so the assistant asks whether to archive a released application. --- AGENTS.md | 1 + AGENTS.zh_CN.md | 1 + docs/development/publish-to-community.md | 12 ++++++++++++ docs/development/publish-to-community.zh_CN.md | 9 +++++++++ docs/fork-guide.md | 2 ++ docs/fork-guide.zh_CN.md | 7 +++++++ 6 files changed, 32 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 08e0061..3297501 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -28,6 +28,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) | | 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 2b6007a..79393e8 100644 --- a/AGENTS.zh_CN.md +++ b/AGENTS.zh_CN.md @@ -28,6 +28,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/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/development/publish-to-community.md b/docs/development/publish-to-community.md index 5f45c1c..16e9c6b 100644 --- a/docs/development/publish-to-community.md +++ b/docs/development/publish-to-community.md @@ -34,3 +34,15 @@ The skill's `SKILL.md` defines the exact workflow: inspect the project, prepare ## How the assistant installs the skill The assistant fetches the official bundle from the URL in the prompt and follows the workflow described in its `SKILL.md`. No skill needs to be kept or committed in this repository; the prompt reproduces the official install source each time. + +## After publishing: archive to plays + +Once the firmware is published, ask the developer whether to archive this application +into the 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. + +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 69e5aff..765a248 100644 --- a/docs/development/publish-to-community.zh_CN.md +++ b/docs/development/publish-to-community.zh_CN.md @@ -39,3 +39,12 @@ skill 的 `SKILL.md` 定义了精确流程:检查项目、准备中英文标 ## 助手如何安装该 skill 助手从提示词里的 URL 拉取官方包,并按其中 `SKILL.md` 描述的工作流执行。本仓库无需保留或提交该 skill;提示词每次都会复现官方安装源。 + +## 发布之后:归档到 plays + +固件发布后,询问开发者是否把该应用归档到仓库的 [`plays/`](../../plays/README.md) +应用档案。若同意,在 `plays//` 下生成该应用的 AI 功能总结(双语 +`README.md` / `.zh_CN.md`),并添加封面图 `plays//-cover.`。 +只提交总结与封面;**不要**在这里存固件 `.bin`。 + +这样发布后的应用能在仓库内留存、便于后续查询。 diff --git a/docs/fork-guide.md b/docs/fork-guide.md index 3e357a3..3486d35 100644 --- a/docs/fork-guide.md +++ b/docs/fork-guide.md @@ -29,4 +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. Use the `experience-pr` skill for post-release experience; see `docs/development/after-release.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 36aa511..88cd9dc 100644 --- a/docs/fork-guide.zh_CN.md +++ b/docs/fork-guide.zh_CN.md @@ -58,3 +58,10 @@ fork 后,`main` 分支**只允许增加/修改根目录的 `README.md` 和 `do - 目录结构约定:如何组织文档与素材子目录。 - AI 使用方法:进入仓库时如何结合上游 `docs/README.md`(或 fork 自建根 README)与本目录补充信息理解项目。 - 边界:该目录仅存在于 fork,内容不得同步回上游 main。 + +## 文档与经验的分区 + +文档与经验遵循同样的分流原则。fork 专属产品定制(架构说明、产品设计、fork 专属素材)留在 +fork,放在 `docs/assets/` 下,不提交回上游。通用、上游也受益的文档或经验改进——持续的硬件事实、 +可复用的接口、能帮助任何 AI Passport 用户的构建或发布流程改进——作为 PR 提交回上游。 +发布后的经验请用 `experience-pr` skill,见 `docs/development/after-release.md`。