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.
4.3 KiB
简体中文 · English
Contributing
Thank you for contributing to FoloToy AI Passport — code, documentation,
firmware, and feedback. This repository is the development baseline for
open-source wearable AI hardware designed for AI agents. It is often forked for
second development; the fork conventions are in
docs/fork-guide.md.
Before you start
- Read
AGENTS.md: it is the authoritative entry and index for the rules an AI agent should follow. It is not a replacement for this guide. - Read
README.mdfor the hardware capability contract, and the AI Hardware Development Guide for the complete hardware context. - Follow
CODE_OF_CONDUCT.mdwhen participating in the community. For ordinary usage questions, seeSUPPORT.md. - Do not commit credentials, tokens, authorization files, or personal data.
- The repository's
mainbranch stays in sync with the upstream baseline; fork users develop feature work infeature/*branches (seedocs/fork-guide.md).
Development and verification
Use ESP-IDF 5.5.3. For a clean-machine setup, follow the environment bootstrap.
Prefer the repository firmware gate for builds and flash its verified merged
image at 0x0. The direct IDF commands below are for incremental development.
source <path-to-esp-idf-v5.5.3>/export.sh
idf.py --version # must report ESP-IDF v5.5.3
./tools/validate.sh --firmware # preferred merged-image build
idf.py set-target esp32c3 # Configure the target chip (fresh checkout / after target change)
idf.py build # Optional incremental application build
idf.py flash monitor # Optional incremental application flash
idf.py fullclean # Clear stale build state (never for user source changes)
The current baseline includes a pure-logic test that runs without hardware:
cc -std=c11 -Wall -Wextra -Werror -Imain \
tests/test_ui_pixel_math.c main/ui_pixel_math.c \
-o /tmp/test_ui_pixel_math
/tmp/test_ui_pixel_math
The repository provides one validation entry point for local development and CI:
./tools/validate.sh --static
./tools/validate.sh --firmware # requires an activated ESP-IDF 5.5.3 environment
./tools/validate.sh # complete gate
Follow the verification requirements in
docs/development/build-and-test.md:
a clean idf.py build is the minimum automated check, not hardware validation.
Record build results and on-device results separately; never present a successful
build as successful hardware validation.
Opening a pull request
- Create a short-lived
feature/*branch frommainand keep each pull request focused on one clear problem. - Use
<type>(<scope>): <short description>for the pull request title, for examplefeat(bsp): ...,docs: .... Available types are defined indocs/contribution/commit-and-pr.md. - Review the complete diff and confirm that it contains no credentials, unrelated generated files, or unintended changes.
- Follow the PR requirements in
docs/contribution/commit-and-pr.md: state the hardware/revision tested, summarize behavior changes, list build and on-device results, link related issues, and record observed on-device results for pin, display-rotation, codec-clock, ADC, or DMA changes. - Wait for CI and review; do not push directly to
mainunless you are a maintainer handling an explicit exception.
Small documentation fixes are welcome as pull requests. For larger changes to hardware, architecture, or user data, please open an issue first to discuss scope and compatibility.
Licensing of contributions
This repository is licensed under MIT. By contributing, you agree that your contribution is submitted under the MIT license terms of the repository.
Security issues
Do not disclose vulnerabilities, credentials, or exploitable details in public
issues, pull requests, or discussions. Follow the private reporting process in
SECURITY.md.