cuyamaca-arduino-flash

Compile and flash approved Arduino sketches to connected boards via arduino-cli.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/yuyanghu06/cuyamaca --skill cuyamaca-arduino-flash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cuyamaca-arduino-flash
Source: https://github.com/yuyanghu06/cuyamaca/tree/main/.claude/skills/cuyamaca-arduino-flash
Command: npx skills add https://github.com/yuyanghu06/cuyamaca --skill cuyamaca-arduino-flash

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Integrates arduino-cli into the Cuyamaca workflow to compile and flash approved Arduino sketches to connected boards, enabling a seamless end-to-end pipeline from code generation to deployment.

Core Features & Use Cases

  • Arduino-CLI detection & auto-installation: automatically locate or install arduino-cli on first run.
  • Board detection & targeting: enumerate connected boards, fetch FQBNs, and auto-fill manifest details.
  • Core management: install required cores automatically for supported boards.
  • Compile & flash pipeline: compile the sketch and flash to the selected port with progress indicators.
  • Pre-flash checks & UX: validate that a sketch is approved, a board is connected, and the port is available before flashing.
  • Use case: When you want to push a generated sketch to a real board without leaving the app.

Quick Start

Approve the prepared sketch in Phase 4 and click Approve & Flash to automatically compile and upload it to the connected Arduino.

Frequently Asked Questions about cuyamaca-arduino-flash

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate compiling and flashing Arduino sketches to connected boards?

Automating Arduino flashing requires integrating arduino-cli to detect connected boards, install required cores, compile sketches, and upload to the selected port with progress reporting. This pipeline validates sketch approval, board connection, and port availability before execution.

Does arduino-cli need to be installed before flashing an Arduino board?

No, arduino-cli does not need to be pre-installed. The flashing pipeline auto-detects an available arduino-cli binary and automatically installs it on first run if missing, streamlining the initial setup process.

How do I detect connected Arduino boards and get their FQBNs for flashing?

Board detection enumerates connected Arduino boards via arduino-cli, fetches their Fully Qualified Board Names (FQBNs), and auto-fills manifest details to target the correct device during the compile and flash pipeline.

What prerequisites are required to flash an Arduino sketch through a Rust backend?

Flashing requires Phase 4 outputs including sketch generation, approval, and tools.json, alongside a UI exposing detect_boards and flash_sketch commands through a Rust backend to trigger the arduino-cli pipeline.

Why does my Arduino flash fail before uploading to the port?

Flashing fails if pre-flash checks detect an unapproved sketch, no connected board, or an unavailable port. The pipeline validates these conditions before compiling to ensure a safe upload process.