tinyusb-integration

tinyusb-integration is a skill for Claude Code, Codex from easyzoom/aix-skills. It costs 42 tokens per session (736 once invoked), scanned A, original, MIT.

An integration guide for TinyUSB, a USB software stack for microcontrollers. It covers USB device and host modes, descriptors, controllers, interrupts, and classes such as serial, storage, keyboard, MIDI, and vendor devices.

In plain words
What is it for?
Use it to add or debug USB on a microcontroller, including CDC serial, mass storage, HID, MIDI, composite devices, and custom USB classes.
Why use it?
It helps diagnose devices that fail to appear on a computer, reset repeatedly, expose the wrong identity, or transfer data incorrectly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to add or debug USB on a microcontroller, including CDC serial, mass storage, HID, MIDI, composite devices, and custom USB classes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/easyzoom/aix-skills/tinyusb-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add easyzoom/aix-skills --skill tinyusb-integration
Clone the repo
git clone --depth 1 https://github.com/easyzoom/aix-skills

Made for: Claude Code, Codex.

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 tinyusb-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/easyzoom/aix-skills/tinyusb-integration/github.svg)](https://agentmods.dev/skills/easyzoom/aix-skills/tinyusb-integration)
Your own site
<a href="https://agentmods.dev/skills/easyzoom/aix-skills/tinyusb-integration"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/tinyusb-integration/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 tinyusb-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/easyzoom/aix-skills/tinyusb-integration"><img src="https://agentmods.dev/badge/skills/easyzoom/aix-skills/tinyusb-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00042 $0.00736
Opus 5 $0.00021 $0.00368
Sonnet 5 $0.00008 $0.00147
Haiku 4.5 $0.00004 $0.00074

Measured 8d ago against content hash 1eb480330395, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tinyusb-integration scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tinyusb-integration/SKILL.md · 85 lines

How it starts

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

TinyUSB Integration

Overview

Use this skill to integrate TinyUSB by separating board support, USB controller driver, descriptors, class drivers, interrupts, clocks, and endpoint buffers. USB bugs are often descriptor or controller-state problems before application logic.

When To Use

Use this skill when:

  • The user wants to add or debug TinyUSB on an MCU.
  • The issue involves USB enumeration, CDC serial, MSC, HID, MIDI, vendor class, device/host mode, descriptors, endpoints, DCD/HCD, or TinyUSB tasks.
  • The target needs a new MCU/board port or custom USB class configuration.

Do not use this skill when board power, USB D+/D- wiring, or clock source is unverified. Use hardware-interface-debug first.

First Questions

Ask for:

  • MCU/board, USB controller, device/host mode, and TinyUSB version.
  • USB class: CDC, MSC, HID, MIDI, vendor, composite, or host stack.
  • RTOS/bare-metal runtime and where tud_task/host task runs.
  • USB clock source, VBUS detect, pull-up control, and interrupt routing.
  • Descriptors and tusb_config.h.
  • Host OS symptoms: no enumeration, code 10, repeated reset, missing COM port, wrong VID/PID, or transfer failure.

Integration Checklist

  1. Prove hardware prerequisites. USB clock, D+/D- wiring, VBUS, pull-up, ESD/protection, and connector orientation must be correct.

  2. Configure tusb_config.h. Enable only needed roles/classes and set endpoint buffer sizes within RAM limits.

  3. Verify descriptors. Device, configuration, interface, endpoint, string, VID/PID, class/subclass/protocol, and composite descriptors must agree.

  4. Run TinyUSB task regularly. In bare metal or RTOS, ensure device/host task and interrupt handling are scheduled correctly.

  5. Check class-specific behavior. CDC needs line coding/control; MSC needs safe block device hooks; HID needs report descriptors and polling interval.

  6. Capture host evidence. Use OS device manager, lsusb, USB logs, or protocol analyzer when enumeration fails.

Read the full file on GitHub · 85 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. 8d ago First seen · 85 lines · 42 tokens per session scan A 1eb480330395

Subscribe to this mod's changes

tinyusb-integration is a skill published in the GitHub repository easyzoom/aix-skills (31 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 736 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.