/platformio:platformiofrom platformio
Builds, flashes, monitors, tests, and debugs firmware for ESP32, Arduino, STM32, RP2040, and other PlatformIO-supported boards. Drives PlatformIO MCP tools for parsed errors, memory usage, and boot-log verdicts.
Ships in platformio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The platformio MCP server gives you hands on the board. Use its tools instead of running pio in a shell: they return parsed errors, memory usage, and boot-log verdicts instead of 40 KB of compiler noise.
pio_system_info once. If ok is false, relay the install hint and stop. It also lists installed platforms and tools (name, version, path), so use it to check a toolchain is present without needing a project.pio_project_envs(project_dir) to learn the envs, board, and monitor speed. Pass an absolute project_dir to every later call.pio_list_boards(query) to find the board id, then pio_project_init. Never hand-write platformio.ini for a new project.pio_build(project_dir, env). Read errors first: each has file, line, column, message. Fix them in source, build again. Ignore warnings unless asked.pio_build(project_dir, envs=["a", "b"]). Envs build in order and a failure does not stop the rest. Read failed_envs and each entry in results (ok, errors, memory); status is success, partial, or failed. Use env or envs, never both.memory.flash.percent and memory.ram.percent tell you how full the part is. Above 90% flash, call pio_size_report before adding features.pio_flash_and_verify(project_dir, env, expect="<line the firmware prints when healthy>", timeout_s=30).verdict is pass, fail, timeout, or upload_failed.
fail: the boot log matched a crash signature. decoded.frames already holds function, file, and line for every address. Open the top resolved frame and fix the cause.timeout: nothing matched. Check lines; if empty, the baud is wrong or the board prints on another port. Try pio_list_devices and pass monitor_port.upload_failed: read upload.summary. Usual causes: wrong port, board in a monitor session, boot button needed.pio_upload + pio_monitor_capture when you need raw output without a verdict.pio_monitor_start returns a session_id; pio_monitor_read(session_id, cursor, wait_for=regex) blocks until the pattern arrives. Keep the returned cursor for the next read.wait_for never matches, the result is ok: false with error: pattern_timeout (or session_closed when the port dropped). lines still holds what arrived. Read them: a boot loop or crash means decode it or reflash with pio_flash_and_verify; otherwise widen the regex and read again from the same cursor.pio_monitor_stop) before any flash. pio_upload refuses while a session holds the port.Guru Meditation, Backtrace:, HardFault, or abort() was called: call pio_decode_backtrace(project_dir, env, text=<the output>) or pass session_id. Quote the resolved function (file:line) chain to the user and fix the first frame that is in project code, not in the framework.pio_test(project_dir, env) runs Unity tests. Native envs run on the host; embedded envs run on the board.pio_check(project_dir, env) returns cppcheck / clang-tidy defects by severity. Fix high first.pio_pkg_search(query) then pio_pkg_install(spec, project_dir, env). This edits platformio.ini for you; do not edit lib_deps by hand as well.upload_failed with port_error set: read port_diagnosis.hint. If held_by_session, retry with stop_open_sessions=true; if held_by_processes, ask the user to close that program; no_response means the board is not in bootloader mode.pio_port_diagnose(port) answers the same question before flashing.pio_upload_ota(host="<ip or name.local>", auth="<password>"). no_response means ArduinoOTA.handle() is not running; device_rejected means the partition table has no OTA slot, so run pio_partition_table.board_build.partitions, or when a flash succeeds but the device misbehaves: pio_partition_table(project_dir, env, read_device=true). Fix issues in severity order; device_table_mismatch is fixed by a full pio_upload, never by pio_run_target("program").pio_coredump(project_dir, env); with the coredump extra installed the result already holds the crashed task and backtrace.pio_memory_watch(session_id, seconds=30). leak_suspected and the per-task stack table tell you what to fix; if formats is empty, add the instrumentation_hint snippet to the firmware and flash again.pio_power_profile(source="serial" | "ppk2", seconds=30, voltage_mv=3300); use trigger with the firmware's monitor session_id to start at a known point.pio_deps_check(project_dir, env, build=true). name_collision is resolved by pinning owner/Name@version or deleting the duplicate; never by reordering lib_deps alone.pio_debug_start(project_dir, env) (flashes and halts at the init break), then pio_debug_cmd(session_id, "break src/main.cpp:42"), "continue", "bt", "p variable", "next". continue blocks until a stop or timeout_s; send "interrupt" to halt a running target. pio_debug_stop before any flash.If a tool returns error: "policy_denied", the server runs with PLATFORMIO_MCP_POLICY=build_only or read_only. Tell the user which action was blocked and do not try to work around it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub powerdragonfire/platformio.mcp --plugin platformioOther plugins' skills for the same job