Arduino CLI Skill
Provide cross-platform arduino-cli workflows and command references.
Resources
references/commands.md- board, core, library, compile, and upload commandsreferences/serial-ports.md- OS-specific serial port discoveryrules/common-pitfalls.md- common command mistakes and recovery guidanceexamples/README.md- runnable command sequences../../docs/board-support/uno-r4-family.md- Uno R4 Minima and Uno R4 WiFi support notes
Workflow
- Identify the user's platform and target board.
- Open
references/serial-ports.mdif the task depends on port discovery. - Open
references/commands.mdfor the exact command family you need. - Check
rules/common-pitfalls.mdbefore suggesting upload or compile fixes. - If the target is Uno R4 family and the problem touches WiFi, firmware bridge,
or OTA-related setup, open
../../docs/board-support/uno-r4-family.md. - Prefer
arduino-cliJSON output when the result will be parsed or reused.
Quick Start
arduino-cli board list
arduino-cli core list
arduino-cli compile --fqbn arduino:avr:uno path/to/sketch
arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno path/to/sketch
Verification
- Confirm the
fqbnmatches the target board. - Confirm the selected serial port exists before upload.
- Prefer command output over remembered defaults when troubleshooting.
See references/commands.md and references/serial-ports.md for detailed examples.