docs: reorganize reference area and unify directory READMEs

Reorganize the AI-agent documentation by function area:
- Move the plays/ application archive and experiences into docs/reference/, grouped by contributor <username>/ (flat experience entries + application subdirectories), with a single reference/README entry.
- Add a second level under docs/development/ (engineering/, ci/, release/); fold agent-guide into ai-guide; flatten the six project-completion sub-documents into one file.
- Unify each directory to a single README (drop every INDEX); fold assets/{fonts,images,music} README leaves into assets/README; remove the empty docs/software-design/.
- Add an upstream-PR rule: do not add or modify the repository-root README.
- Update all cross-references and bibliographic links (EN/ZH aligned); validate.sh --static passes. The repository-root README is left untouched.
This commit is contained in:
Shinku committed 2026-08-31 15:05:42 +08:00
1 parent 545881ad1d
commit cbede2d2fa
105 files changed
+1025 -1576

No files matched your search

+22 -15
View File
@@ -4,20 +4,27 @@
# Development Guidelines
This directory contains AI Passport engineering rules and reusable workflows. Rules should identify their trigger, required action, prohibited action, validation, and exceptions. Hardware facts belong in `docs/hardware-design/`; automatable requirements must also be enforced by tooling or CI.
This directory contains AI Passport engineering rules and reusable workflows, grouped by purpose: the AI-assisted development workflow (`ai-guide.md`), engineering conventions (`engineering/`), CI documents (`ci/`), and the release/completion flow (`release/`). Rules should identify their trigger, required action, prohibited action, validation, and exceptions. Hardware facts belong in `docs/hardware-design/`; automatable requirements must also be enforced by tooling or CI.
## Documents
## AI workflow
- [agent-guide.md](agent-guide.md): AI-assisted development workflow.
- [environment-setup.md](environment-setup.md): clean-machine bootstrap for AI agents, including international and mainland China download routes.
- [build-and-test.md](build-and-test.md): ESP-IDF build and validation.
- [ble-recovery-compatibility.md](ble-recovery-compatibility.md): mandatory
mini-program BLE install artifact, partition, and bootloader contract.
- [coding-conventions.md](coding-conventions.md): source-code and resource conventions.
- [CI-validation.md](CI-validation.md): pull-request and main-branch checks.
- [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): 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/`.
- [ai-guide.md](ai-guide.md): AI-assisted development workflow.
## Engineering
- [environment-setup.md](engineering/environment-setup.md): clean-machine bootstrap for AI agents, including international and mainland China download routes.
- [build-and-test.md](engineering/build-and-test.md): ESP-IDF build and validation.
- [ble-recovery-compatibility.md](engineering/ble-recovery-compatibility.md): mandatory mini-program BLE install artifact, partition, and bootloader contract.
- [coding-conventions.md](engineering/coding-conventions.md): source-code and resource conventions.
## CI
- [CI-validation.md](ci/CI-validation.md): pull-request and main-branch checks.
- [CI-build-and-release.md](ci/CI-build-and-release.md): tagged firmware builds and releases.
- [CI-sync-main.md](ci/CI-sync-main.md): upstream synchronization for forks.
## Release
- [publish-to-community.md](release/publish-to-community.md): publishing firmware to the AI Passport community market.
- [project-completion.md](release/project-completion.md): project completion flow — a menu of optional closing actions.
- [file-issues.md](release/file-issues.md): filing a suggestion as an upstream GitHub issue.
+23 -16
View File
@@ -4,29 +4,36 @@
# 工程规范(Development)
本目录存放 AI Passport 的工程开发规范和可复用工作流。
本目录存放 AI Passport 的工程开发规范和可复用工作流,按用途分组:AI 开发工作流(`ai-guide.md`)、工程约定(`engineering/`)、CI 文档(`ci/`)、发布/完成流程(`release/`)。
## 收录标准
- 收录构建验证、代码风格、注释、测试、资源约束和 AI 开发流程。
- `agent-guide.md` 面向 AI 编程助手,允许包含本项目结构和硬件边界。
- `ai-guide.md` 面向 AI 编程助手,允许包含本项目结构和硬件边界。
- 每条规则应写清触发条件、必须做什么、禁止做什么、验证方法和例外条件。
- 涉及本板具体硬件事实的结论引用 `docs/hardware-design/`,不重复。
- 可以由 lint、测试或脚本强制的要求,应同时落实到自动化检查,不能只靠 agent 阅读文字。
- 新增规约时在本文件更新索引。
## 文档索引
## AI 工作流
- [agent-guide.md](agent-guide.md):AI 开发工作流(面向 AI 编程助手:上下文建立、需求拆解、BSP 边界、验收交付格式)。
- [environment-setup.zh_CN.md](environment-setup.zh_CN.md):AI 在全新机器上的环境引导,包含国际与中国大陆下载线路。
- [build-and-test.md](build-and-test.md):构建与验证(ESP-IDF 命令、逻辑测试、改动验证要求)。
- [ble-recovery-compatibility.zh_CN.md](ble-recovery-compatibility.zh_CN.md):小程序 BLE
安装所需的产物、分区与 bootloader 强制契约。
- [coding-conventions.md](coding-conventions.md):代码约定(语言风格、复用、注释、测试同步、资源约束等)。
- [CI-build-and-release.md](CI-build-and-release.md):自动构建与发布说明(tag 触发自动编译固件并发布 Release)。
- [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):项目开发完成流程说明(一组可选收尾动作)。
- [file-issues.md](file-issues.md):提交 issue 说明(把建议作为上游 GitHub issue 提交)。
- [experience-notes.md](experience-notes.md):开发经验索引(`docs/experiences/` 下经验条目的索引)。
- [ai-guide.zh_CN.md](ai-guide.zh_CN.md):AI 开发工作流(面向 AI 编程助手:上下文建立、需求拆解、BSP 边界、验收交付格式)。
## 工程约定(engineering)
- [environment-setup.zh_CN.md](engineering/environment-setup.zh_CN.md):AI 在全新机器上的环境引导,包含国际与中国大陆下载线路。
- [build-and-test.zh_CN.md](engineering/build-and-test.zh_CN.md):构建与验证(ESP-IDF 命令、逻辑测试、改动验证要求)。
- [ble-recovery-compatibility.zh_CN.md](engineering/ble-recovery-compatibility.zh_CN.md):小程序 BLE 安装所需的产物、分区与 bootloader 强制契约。
- [coding-conventions.zh_CN.md](engineering/coding-conventions.zh_CN.md):代码约定(语言风格、复用、注释、测试同步、资源约束等)。
## CI(ci)
- [CI-validation.zh_CN.md](ci/CI-validation.zh_CN.md):Pull Request 与 main 的自动仓库检查、host tests 和固件验证。
- [CI-build-and-release.zh_CN.md](ci/CI-build-and-release.zh_CN.md):自动构建与发布说明(tag 触发自动编译固件并发布 Release)。
- [CI-sync-main.zh_CN.md](ci/CI-sync-main.zh_CN.md):上游同步说明(定期把上游 `FoloToy/ai-passport` 的 `main` 同步到本 fork 的 `main`)。
## 发布/完成流程(release)
- [publish-to-community.zh_CN.md](release/publish-to-community.zh_CN.md):发布到社区说明(把当前固件发布到 AI Passport 社区市场)。
- [project-completion.zh_CN.md](release/project-completion.zh_CN.md):项目开发完成流程说明(一组可选收尾动作)。
- [file-issues.zh_CN.md](release/file-issues.zh_CN.md):提交 issue 说明(把建议作为上游 GitHub issue 提交)。
@@ -1,5 +1,5 @@
<p align="right">
<a href="agent-guide.zh_CN.md">简体中文</a> · <strong>English</strong>
<a href="ai-guide.zh_CN.md">简体中文</a> · <strong>English</strong>
</p>
# AI Agent Development Guide
@@ -54,10 +54,10 @@ Only reusable hardware capabilities belong in the BSP. Document blocking behavio
## Material placement
When the developer submits a reusable asset through you — an image, font, audio clip, or similar project material — save it under the repository-root [`assets/`](../../assets/README.md) by default so it stays available for development and later reuse. Place it in the matching subdirectory (`assets/images/`, `assets/fonts/`, `assets/music/`) and, in that subdirectory's README, record the destination, naming, integration method, and source/license. Never mix binary assets with Markdown documentation. Application or experience archive records (cover, manual, summary) belong in `plays/` or `docs/experiences/`, not in `assets/`; deviate from `assets/` only when the developer explicitly directs another location.
When the developer submits a reusable asset through you — an image, font, audio clip, or similar project material — save it under the repository-root [`assets/`](../../assets/README.md) by default so it stays available for development and later reuse. Place it in the matching subdirectory (`assets/images/`, `assets/fonts/`, `assets/music/`) and record the destination, naming, integration method, and source/license in the [`assets/` README](../../assets/README.md). Never mix binary assets with Markdown documentation. Application or experience archive records (cover, manual, summary) belong in `reference/<username>/`, not in `assets/`; deviate from `assets/` only when the developer explicitly directs another location.
## Delivery
The automated gate is not hardware acceptance. Report `Build`, `Host tests`, `Device tests`, and `Unverified` separately. Use the [hardware guide](../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) for the applicable on-device matrix.
Related documents: [build and test](build-and-test.md), [coding conventions](coding-conventions.md), [hardware guide](../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md), and [documentation index](../INDEX.md).
Related documents: [build and test](engineering/build-and-test.md), [coding conventions](engineering/coding-conventions.md), [hardware guide](../hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md), [documentation index](../README.md), and [root `AGENTS.md`](../../AGENTS.md).
Loaded 3 of 105 files, more files were not shown because too many files have changed in this diff. Show more