一键导入
flash
Build and flash firmware to Pico2. Use after code changes to deploy to hardware.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build and flash firmware to Pico2. Use after code changes to deploy to hardware.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Firmware-change discipline for Raiden Pico — ANY change to the firmware (src/*.c, src/*.pio, include/*.h that alters the built raiden_pico.uf2's behavior or output) MUST bump the firmware version string in the SAME change. The version is what the VERSION command prints, in src/command_parser.c. Invoke whenever you edit firmware source, or are about to build + flash a firmware change.
CLI discipline for Raiden Pico. (1) Every command/sub-command/argument MUST emit an explicit error on unrecognized, mistyped, or malformed input — never silently no-op or fall through to a wrong/default branch. (2) Every CLI add/change/rename MUST update the config_none pytest regression tests AND the docs/HELP in the same change. Invoke whenever you add, change, rename, or review a CLI command path in src/command_parser.c (verbs, sub-commands, argument parsing, dispatch branches) or the matchers in command_parser_match / match_and_replace.
GPIO pin-assignment rules for Raiden Pico (RP2350). Invoke whenever you add, change, move, or claim a GPIO pin — e.g. editing pin
Keep requirements.txt and requirements-dev.txt in sync with the actual third-party Python imports across the repo. Invoke whenever you add, remove, or move a Python `import` of a non-stdlib package in any .py file — especially before committing changes that touch .py files. The repo's dependency graph on GitHub reads these manifests.
Fetch open GitHub issues for the current repo so we catch problems users have reported. Use at least once per working day, ideally at the start of a session, and again when the user mentions "issues", "bugs", "reports", or asks "anything new?".
| name | flash |
| description | Build and flash firmware to Pico2. Use after code changes to deploy to hardware. |
| disable-model-invocation | true |
| allowed-tools | Bash |
Build and flash firmware to the Pico2:
python3 -c "import serial, time; s = serial.Serial('/dev/ttyUSB0'); s.dtr = True; time.sleep(0.5); s.dtr = False; s.close()" && sleep 5 && cd /home/addy/work/claude-code/raiden-pico/build && make flash
cd /home/addy/work/claude-code/raiden-pico/build && PICO_SDK_PATH=/home/software/unpacked/pico-sdk cmake -DPICO_BOARD=pico2 ..
then retry step 1.All commands must include explicit cd /home/addy/work/claude-code/raiden-pico/build && prefix. Never use rm -rf without a full absolute path.