← 返回 Skills 市场
547895019

Arduino CLI

作者 547895019 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
183
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install arduino-cli
功能描述
Provides commands and workflows for Arduino CLI. Use when the user wants to create, compile, or upload Arduino sketches, manage boards (list, attach), instal...
使用说明 (SKILL.md)

Arduino CLI Skill

This skill provides guidance for using the arduino-cli to manage Arduino projects, boards, cores, and libraries from the command line.

Quick Reference

1. Configuration & Setup

Initialize the configuration file (usually in ~/.arduino15/arduino-cli.yaml):

arduino-cli config init

Update the local cache of available platforms and libraries (do this first!):

arduino-cli core update-index

2. Board Management

List connected boards to find the port and FQBN (Fully Qualified Board Name):

arduino-cli board list

List all supported boards and their FQBN strings:

arduino-cli board listall \x3Csearch_term>

3. Core (Platform) Management

Search for a core:

arduino-cli core search \x3Ckeyword>

Install a core using its ID (e.g., arduino:samd):

arduino-cli core install \x3Ccore_id>

List installed cores:

arduino-cli core list

4. Sketch Workflow

Create a new sketch:

arduino-cli sketch new \x3CSketchName>

Compile a sketch (requires the board's FQBN):

arduino-cli compile --fqbn \x3CFQBN> \x3CSketchName>

Example: arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch

Upload a sketch to a connected board:

arduino-cli upload -p \x3Cport> --fqbn \x3CFQBN> \x3CSketchName>

Example: arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:samd:mkr1000 MyFirstSketch

5. Library Management

Search for a library:

arduino-cli lib search \x3Ckeyword>

Install a library:

arduino-cli lib install "\x3CLibrary Name>"

Adding 3rd Party Cores (e.g., ESP8266)

To install 3rd party cores, pass the --additional-urls flag to your core commands:

arduino-cli core update-index --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json
arduino-cli core install esp8266:esp8266 --additional-urls https://arduino.esp8266.com/stable/package_esp8266com_index.json

(Alternatively, these URLs can be added to the board_manager.additional_urls array in arduino-cli.yaml)

安全使用建议
This is an instruction-only helper for the arduino-cli tool and appears coherent. Before using it: (1) make sure arduino-cli is installed from a trusted source (the skill assumes the binary exists but doesn't declare it), (2) be aware that upload commands access local serial ports (you may need permission or to run as a user in the dialout/tty group), and (3) when adding third‑party core URLs, verify those URLs (they cause the CLI to download and install platform code). If you need the skill to install arduino-cli for you, look for or request an install spec that uses an official release source.
功能分析
Type: OpenClaw Skill Name: arduino-cli Version: 1.0.0 The skill bundle provides standard documentation and command-line examples for using the legitimate 'arduino-cli' utility. It covers routine tasks such as board management, sketch compilation, and library installation, and includes a well-known, legitimate third-party URL for ESP8266 support in SKILL.md. No malicious code, exfiltration patterns, or harmful prompt-injection attempts were found.
能力评估
Purpose & Capability
The skill's name and description match the instructions (commands for arduino-cli). However, the skill does not declare that the arduino-cli binary is required even though every command assumes it is installed on PATH — this is a minor incoherence (missing declared dependency) rather than a functional mismatch.
Instruction Scope
Instructions stay within the stated purpose (create, compile, upload sketches, manage cores/libraries). They reference the usual config path (~/.arduino15/arduino-cli.yaml), local serial ports (e.g., /dev/ttyACM0), and show how to add third‑party core URLs — all expected. Note: installing third‑party cores means the tool will fetch code from external URLs; the skill's text does not warn about verifying those sources.
Install Mechanism
No install spec and no code files — lowest-risk instruction-only skill. Nothing will be written to disk by the skill itself.
Credentials
No environment variables, credentials, or config paths are requested beyond normal references to the user's Arduino config and serial ports; these are appropriate for the claimed functionality.
Persistence & Privilege
Skill is not always-on and does not request elevated or persistent privileges. It does not modify other skills or system-wide settings according to the provided content.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install arduino-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /arduino-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the Arduino CLI skill. - Provides reference commands for Arduino CLI setup, board management, core/platform management, sketch creation/compilation/upload, and library management. - Includes instructions for adding third-party cores. - Useful for creating, compiling, uploading Arduino sketches, and managing boards, cores, and libraries from the command line.
元数据
Slug arduino-cli
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Arduino CLI 是什么?

Provides commands and workflows for Arduino CLI. Use when the user wants to create, compile, or upload Arduino sketches, manage boards (list, attach), instal... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 183 次。

如何安装 Arduino CLI?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install arduino-cli」即可一键安装,无需额外配置。

Arduino CLI 是免费的吗?

是的,Arduino CLI 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Arduino CLI 支持哪些平台?

Arduino CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Arduino CLI?

由 547895019(@547895019)开发并维护,当前版本 v1.0.0。

💬 留言讨论