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.
2.6 KiB
2.6 KiB
简体中文 · English
工程规范(Development)
本目录存放 AI Passport 的工程开发规范和可复用工作流,按用途分组:AI 开发工作流(ai-guide.md)、工程约定(engineering/)、CI 文档(ci/)、发布/完成流程(release/)。
收录标准
- 收录构建验证、代码风格、注释、测试、资源约束和 AI 开发流程。
ai-guide.md面向 AI 编程助手,允许包含本项目结构和硬件边界。- 每条规则应写清触发条件、必须做什么、禁止做什么、验证方法和例外条件。
- 涉及本板具体硬件事实的结论引用
docs/hardware-design/,不重复。 - 可以由 lint、测试或脚本强制的要求,应同时落实到自动化检查,不能只靠 agent 阅读文字。
- 新增规约时在本文件更新索引。
AI 工作流
- ai-guide.zh_CN.md:AI 开发工作流(面向 AI 编程助手:上下文建立、需求拆解、BSP 边界、验收交付格式)。
工程约定(engineering)
- environment-setup.zh_CN.md:AI 在全新机器上的环境引导,包含国际与中国大陆下载线路。
- build-and-test.zh_CN.md:构建与验证(ESP-IDF 命令、逻辑测试、改动验证要求)。
- ble-recovery-compatibility.zh_CN.md:小程序 BLE 安装所需的产物、分区与 bootloader 强制契约。
- coding-conventions.zh_CN.md:代码约定(语言风格、复用、注释、测试同步、资源约束等)。
CI(ci)
- CI-validation.zh_CN.md:Pull Request 与 main 的自动仓库检查、host tests 和固件验证。
- CI-build-and-release.zh_CN.md:自动构建与发布说明(tag 触发自动编译固件并发布 Release)。
- CI-sync-main.zh_CN.md:上游同步说明(定期把上游
FoloToy/ai-passport的main同步到本 fork 的main)。
发布/完成流程(release)
- publish-to-community.zh_CN.md:发布到社区说明(把当前固件发布到 AI Passport 社区市场)。
- project-completion.zh_CN.md:项目开发完成流程说明(一组可选收尾动作)。
- file-issues.zh_CN.md:提交 issue 说明(把建议作为上游 GitHub issue 提交)。