Files
ai-passport/docs/fork-guide.md
T
Shinku ddf1f774fd docs(development): rework follow-up into project completion flow
把原有的 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/<username>/ 按内容摘要命名。
- 发布到 Git 动作补充:Release 默认标题为版本号名,发布后由执行者
  完善为「项目功能名 + 版本号」,并在 CI-build-and-release 同步说明。
2026-08-28 10:13:37 +08:00

35 lines
2.6 KiB
Markdown

<p align="right">
<a href="fork-guide.zh_CN.md">简体中文</a> · <strong>English</strong>
</p>
# Fork Workflow
The upstream repository keeps `main` as the current FoloToy baseline. Fork-specific firmware belongs on `feature/*` branches so a fork can continuously synchronize its `main` without mixing product work into the baseline.
## Repository roles
```text
docs/ product, contribution, development, and design documents
components/bsp/ stable board APIs and hardware implementation
main/ LVGL menu and independent demo pages
assets/ reusable fonts, images, music, and sound effects
skills/ reusable AI-agent skills
tests/ host-runnable logic tests
sdkconfig.defaults reproducible ESP32-C3 defaults
```
The root `README.md` path is intentionally available to a fork owner. Upstream's project overview is `docs/README.md`, which GitHub displays when no root README exists. A fork may add its own root README to explain its product without replacing upstream documentation.
## Fork rules
- 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.
- 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.
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/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.