Agent skill

matlab-create-custom-arduino-library

Use when the user wants to use Arduino sensors or peripherals from MATLAB that are not directly supported by the MATLAB Support Package for Arduino Hardware. Triggers on requests to create, wrap, or expose a custom Arduino library to MATLAB. Also triggers on indirect questions like "How do I read humidity in MATLAB?" or "How do I display text on an LCD from MATLAB?" where the answer requires a custom Arduino add-on library. class, C++ header files, DependentLibraries, arduinoioaddons namespace, I2C/SPI/GPIO peripheral wrappers.

matlabgithub.com/matlabGitHub ↗
claude-codecodexcopilotNOASSERTION
Install
npx skills add matlab/matlab-agentic-toolkit --skill matlab-create-custom-arduino-library --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 5
SKILL.md size: 13 KB
Bundled scripts: none
Version: 1.0
Declared author: MathWorks
Path: skills-catalog/test-and-measurement/matlab-create-custom-arduino-library/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 868
Language: MATLAB

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Create Custom Arduino Library Help the user interface with Arduino sensors or peripherals from MATLAB by creating a custom arduino library that bridges MATLAB and Arduino C++ code. ## When to Use - User wants to read sensors not natively supported (DHT11, DHT22, IMU, air quality) - User wants to control peripherals not natively supported (OLED displays, motor drivers, NeoPixels) - User asks "How do I use [sensor/actuator/peripheral] from MATLAB with Arduino?" - User wants to wrap an existing Arduino C++ library for MATLAB access - User mentions `LibraryBase`, `arduinoioaddons`, or custom addon creation ## When NOT to Use - Peripheral is already supported natively (use `listArduinoLibraries` to check) - User needs to discover or connect to an Arduino board (see `matlab-connect-arduino`) - User wants generic I2C/SPI communication (built-in) - User wants to deploy standalone Arduino code (no MATLAB connection) - User wants Simulink Arduino deployment (different workflow) - User wants to fix Arduino hardware setup screens ## Workflow **MANDATORY GATE — do not skip, but keep it fast:** Before creating a custom addon, you MUST run Steps 0 and 1 below. These are quick checks (one MATLAB

What's inside
Steps it walks through
  1. When to Use
  2. When NOT to Use
  3. Workflow
  4. STEP 0: Check Native Support (ALWAYS DO FIRST)
  5. STEP 1: Search File Exchange (MathWorks contributions only)
  6. STEP 2: Gather Required Inputs
  7. STEP 3: Install Third-Party Arduino Library
  8. STEP 4: Scaffold the Add-On
  9. STEP 5: Configure the MATLAB Class
  10. STEP 6: Write the C++ Header
  11. STEP 7: Verify
  12. MATLAB Class Property Rules
  13. DependentLibraries Decision Table
  14. LibraryHeaderFiles Format
Ships with 4 files
  • manifest.yaml
  • references/bus-conflicts.md
  • references/common-errors.md
  • references/cpp-patterns.md
More from matlab-agentic-toolkit
All skills →
About this skill
What does the matlab-create-custom-arduino-library skill do?

Use when the user wants to use Arduino sensors or peripherals from MATLAB that are not directly supported by the MATLAB Support Package for Arduino Hardware. Triggers on requests to create, wrap, or expose a custom Arduino library to MATLAB. Also triggers on indirect questions like "How do I read humidity in MATLAB?" or "How do I display text on an LCD from MATLAB?" where the answer requires a custom Arduino add-on library. class, C++ header files, DependentLibraries, arduinoioaddons namespace, I2C/SPI/GPIO peripheral wrappers.

How do I install it?

Run `npx skills add matlab/matlab-agentic-toolkit --skill matlab-create-custom-arduino-library --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From matlab/matlab-agentic-toolkit, a repository with 868 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going