简体中文 · 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`](docs/fork-guide.md). ## Before you start - Read [`AGENTS.md`](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.md`](docs/README.md) for the hardware capability contract, and the [AI Hardware Development Guide](docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md) for the complete hardware context. - Follow [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) when participating in the community. For ordinary usage questions, see [`SUPPORT.md`](SUPPORT.md). - Do not commit credentials, tokens, authorization files, or personal data. - The repository's `main` branch stays in sync with the upstream baseline; fork users develop feature work in `feature/*` branches (see `docs/fork-guide.md`). ## Development and verification Use ESP-IDF 5.5.x (known development environment 5.5.3): ```bash get_idf553 # Enter the repository's ESP-IDF 5.5.3 environment idf.py set-target esp32c3 # Configure the target chip (fresh checkout / after target change) idf.py build # Compile firmware and validate dependencies idf.py flash monitor # Flash and open logs idf.py fullclean # Clear stale build state (never for user source changes) ``` The current baseline includes a pure-logic test that runs without hardware: ```bash 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 ``` Follow the verification requirements in [`docs/development/build-and-test.md`](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 1. Create a short-lived `feature/*` branch from `main` and keep each pull request focused on one clear problem. 2. Use `