Bias toward caution over speed. For trivial tasks, use judgment.
step → verify plan.git worktree add .worktrees/<branch> -b <branch>; never switch the primary checkout. Symlink deps_all paths from tools/get_deps.py to the primary checkout; replace a symlink and rerun get_deps.py only for a different revision.read-doc to check Calibre first; report missing documents. Search its database, never the library tree.hw/bsp/, docs/reference/boards.rst; classes: src/class/; core/config: src/tusb.h, src/tusb_option.h, each example's src/tusb_config.h; build/deps: tools/build.py, tools/get_deps.py; unit tests: test/unit-test/project.yml.snake_case helpers, UPPER_CASE macros, tud_/tuh_ public APIs, TU_ macros.TU_ASSERT() for error checks; check return values.#if CFG_TUSB_MCU guards. Include order: C stdlib → tusb common → drivers → classes.CLAUDE.md and .claude/{agents,skills,workflows} canonical; preserve AGENTS.md -> CLAUDE.md and .agents -> .claude..codex/agents/<role>.toml to load .claude/agents/<role>.md; keep adapters thin and never duplicate role bodies.code-simplifier wraps bundled /simplify in Claude; Codex keeps its standalone equivalent in TOML./codex:review for independent read-only review, /codex:adversarial-review to challenge a design, and /codex:rescue for bounded implementation or diagnosis..claude/workflows/. Use code-verify with provider: 'codex' (default), 'claude', or 'both'; validate/full-check use reviewProvider. Keep workflow nesting to one level and the Codex subprocess in .claude/agents/codex-code-verifier.md.Build all examples for a board from the repo root; preserve cmake-build-<board> for HIL:
cmake -S examples -B examples/cmake-build-adafruit_metro_rp2350 -DBOARD=adafruit_metro_rp2350 -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel cmake --build examples/cmake-build-adafruit_metro_rp2350 ninja -C examples/cmake-build-adafruit_metro_rp2350 cdc_msc-jlink # Flash with J-Link ninja -C examples/cmake-build-adafruit_metro_rp2350 cdc_msc-openocd # Or OpenOCD
cmake --build examples/cmake-build-adafruit_metro_rp2350 --target cdc_msc.. "$IDF_PATH/export.sh" before build/flash/monitor; run idf.py -DBOARD=<board> build in the ESP-IDF example.-DCMAKE_BUILD_TYPE=Debug -DLOG=2 -DLOGGER=rtt.pre-commit run --all-files (includes unit tests).build-doc.code-size.pre-pr when workflows are available.pr-babysit (.claude/workflows/pr-babysit.js) to drive reviews and CI to green. If workflows are unavailable, use gh pr checks <num> and gh pr view <num> --comments; fix failures, push, and resolve review threads.superpowers:writing-plans for one handoff per topic at docs/superpowers/followup/pr<NNN>-<topic>.md (NNN = originating PR). Include evidence, remaining work, and why deferred; delete when its PR lands.