new-device-skill

new-device-skill is a skill for Claude Code from iot-forge/m5stack-skills. It costs 171 tokens per session (2,872 once invoked), scanned A, original, MIT.

A guide for adding M5Stack hardware to this marketplace. M5Stack devices include programmable controller boards, connected peripherals such as sensors, and the Espressif chips inside some boards.

In plain words
What is it for?
Use it when documenting a new M5Stack controller, unit, or chip, including its specifications, development setup, wiring, commands, registers, and example code.
Why use it?
It explains which information belongs in each type of hardware entry and helps keep new device documentation consistent. It also records setup, wiring, communication methods, and debugging details where relevant.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions .claude-plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/validate.py.

Good fit Use it when documenting a new M5Stack controller, unit, or chip, including its specifications, development setup, wiring, commands, registers, and example code.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/iot-forge/m5stack-skills
agentmods
npx agentmods add skills/iot-forge/m5stack-skills/new-device-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-device-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/iot-forge/m5stack-skills/new-device-skill/github.svg)](https://agentmods.dev/skills/iot-forge/m5stack-skills/new-device-skill)
Your own site
<a href="https://agentmods.dev/skills/iot-forge/m5stack-skills/new-device-skill"><img src="https://agentmods.dev/badge/skills/iot-forge/m5stack-skills/new-device-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-device-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/iot-forge/m5stack-skills/new-device-skill"><img src="https://agentmods.dev/badge/skills/iot-forge/m5stack-skills/new-device-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,872 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00171 $0.02872
Opus 5.5 $0.00068 $0.01149
Sonnet 5.5 $0.00034 $0.00574
Haiku 4.5 $0.00017 $0.00287

Measured 1mo ago against content hash 3ca77e604ce8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new-device-skill scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Nuxt SPAs — `curl` and `WebFetch` return an empty shell. Open in a
.claude/skills/new-device-skill/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Building a device skill for this marketplace

This repo covers M5Stack hardware, one skill per product family, working toward the full catalog. The conventions below are load-bearing — several encode failures this project already hit. Read the relevant section before writing, not after.

First: which of the three kinds is this?

They're scoped differently on purpose.

Controller — a board that runs application firmware (Core2, AtomS3, Cardputer Adv, Tab5). Its skill needs pin/peripheral specs and how to set up a dev environment, initialize hardware, and debug bring-up across every framework M5Stack supports for it (usually some mix of Arduino, PlatformIO, ESP-IDF, UIFlow2/MicroPython). These are the heaviest skills.

Unit — a peripheral you talk to from a Controller (a Buzzer, a ToF sensor, a 4Relay board). There's no "which development platform" question — just wiring, protocol, register/command reference, and example host code. Much lighter: one SKILL.md is usually enough.

Chip — the SoC underneath one or more Controllers (ESP32-S3, ESP32-C6). Not a product anyone buys alone, but substantial content: what the silicon itself can do, independent of any board's wiring. M5Stack reuses the same chip across many boards — ESP32-S3 alone covers Cardputer, Cardputer Adv, AtomS3, AtomS3R, CoreS3, StickS3 — so writing this once and having every board skill point into it beats maintaining five drifting copies.

Naming

  • Controller/Unit skill name and folder: m5stack-<slug>, lowercase kebab-case product family name — m5stack-cardputer-adv, m5stack-core2, m5stack-unit-tof, m5stack-unit-4relay.
  • Chip skill name and folder: bare chip slug, no m5stack- prefix — esp32-s3, esp32-c6. They document Espressif silicon, not an M5Stack product, even though this repo maintains them for the M5Stack catalog.
  • For a Unit whose generic name would collide (many vendors ship a "Relay" unit), keep M5Stack's product name as the slug — unit-4relay, not relay-module. That's what a user will actually type or paste.

Read the full file on GitHub · 240 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 240 lines · 171 tokens per session scan A 3ca77e604ce8

Subscribe to this mod's changes

new-device-skill is a skill published in the GitHub repository iot-forge/m5stack-skills (5 stars, last pushed 12d ago), licensed MIT. It adds 171 tokens to every session and 2,872 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.