Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

arduinoarduino 开发

Agent Skill

arduino 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

524

周安装

21

GitHub Stars

4

下载量

170
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:arduino(arduino 开发)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/arduino
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill arduino
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill arduino

简介

arduino 技能支持 Arduino 微控制器编程,聚焦 IoT 与嵌入式系统开发。

  • 适用于传感器数据整理(如温湿度)与执行器控制(如 LED、电机)。
  • 利用 Arduino IDE 编译上传 sketch,实现硬件交互逻辑。
  • 安装命令为 npx skills add https://github.com/alphaonedev/openclaw-graph --skill arduino。
  • 需提前连接开发板并配置串口通信参数,确保驱动正常。

SKILL.md

arduino

Purpose

This skill provides tools for programming and managing Arduino microcontrollers, focusing on IoT and embedded systems development. It leverages the Arduino ecosystem to compile, upload, and interact with sketches on hardware like Arduino Uno or ESP32 boards.

When to Use

Use this skill when building IoT prototypes, such as sensor networks or automated devices, that require microcontroller programming. Apply it for tasks like reading data from sensors (e.g., temperature via DHT11) or controlling actuators (e.g., LEDs, motors), especially in projects involving real-time data processing or hardware integration with platforms like Raspberry Pi.

Key Capabilities

  • Compile and upload Arduino sketches to boards using CLI commands.
  • Manage boards, cores, and libraries for various Arduino-compatible hardware.
  • Handle serial communication for debugging or data exchange in IoT setups.
  • Integrate with external sensors and actuators through standard Arduino libraries.
  • Support for multiple platforms, including AVR, ARM, and ESP-based boards.

Usage Patterns

To use this skill, invoke Arduino CLI commands from scripts or directly in AI workflows. Always ensure the Arduino CLI is installed via curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh. For automation, wrap commands in shell scripts or Python subprocess calls. Specify the fully qualified board name (FQBN) for all operations, e.g., "arduino:avr:uno". If integrating into a larger AI agent flow, check for board connectivity first using arduino-cli board list.

Common Commands/API

Use the Arduino CLI for core operations. Key commands include:

  • Install a board core: arduino-cli core install arduino:avr
  • Compile a sketch: arduino-cli compile --fqbn arduino:avr:uno --output-dir /tmp/build path/to/sketch.ino
  • Upload a sketch: arduino-cli upload -b arduino:avr:uno -p /dev/ttyUSB0 path/to/sketch.ino
  • List available boards: arduino-cli board list
  • Add a library: arduino-cli lib install "DHT sensor library"

Code snippets:

  1. Compile and upload a basic blink sketch: void setup() {pinMode(LED_BUILTIN, OUTPUT);} void loop() {digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000);} Run: arduino-cli compile --fqbn arduino:avr:uno blink.ino && arduino-cli upload -b arduino:avr:uno -p /dev/ttyUSB0 blink.ino
  2. Manage libraries in a script: arduino-cli lib search DHT && arduino-cli lib install "DHT sensor library"

Config formats: Use JSON for CLI config files (e.g., arduino-cli config init creates a directories.json). Example snippet for a config file:

{
  "board_manager": {
    "additional_urls": ["https://downloads.arduino.cc/packages"]
  }
}

If Arduino Cloud integration is needed (e.g., for IoT services), set auth via environment variable: export ARDUINO_API_KEY=$ARDUINO_API_KEY.

Integration Notes

Integrate this skill by ensuring Arduino CLI is in your PATH. For cross-platform use, detect the serial port dynamically (e.g., /dev/ttyUSB0 on Linux or COM3 on Windows). When combining with other IoT tools, pipe output to parsers like jq for JSON handling. For example, in a bash script: arduino-cli board list | jq '.boards[] | select(.port == "/dev/ttyUSB0")'. If using Arduino Cloud APIs, authenticate with $ARDUINO_API_KEY and make requests to endpoints like https://api2.arduino.cc/iot/v2/things. Always verify hardware connections before commands to avoid failures.

Error Handling

Always check CLI exit codes; a non-zero code indicates failure (e.g., if [$? -ne 0]; then echo "Compilation failed"; fi). Parse error output for specifics, like missing libraries: "error: 'DHT' not declared". Common issues include incorrect FQBN—verify with arduino-cli board listall—or port conflicts; use ls /dev/tty* to list ports. For upload errors, ensure the board is in bootloader mode. In scripts, wrap commands in try-catch blocks if using languages like Python:

import subprocess
try:
    subprocess.run(['arduino-cli', 'compile', '--fqbn', 'arduino:avr:uno', 'sketch.ino'], check=True)
except subprocess.CalledProcessError as e:
    print(f"Error: {e.output}")

Log detailed errors for debugging IoT deployments.

Graph Relationships

  • Cluster: iot (directly linked to other skills in the iot cluster)
  • Tags: iot (connects to skills with iot tag, e.g., for combined IoT workflows), arduino (links to specialized embedded system skills)
  • Related skills: Any with iot tag, such as those for Raspberry Pi or ESP32, for expanded IoT capabilities

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.91%
按下载量换算64

Claude

27.84%
按下载量换算47

Cursor

16.85%
按下载量换算29

Gemini CLI

9.29%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills