connectivity-usb-can

connectivity-usb-can is a skill for Claude Code, Codex from beriberikix/zephyr-agent-skills. It costs 65 tokens per session (597 once invoked), scanned A, original, Apache-2.0.

Guidance for adding USB and CAN interfaces to Zephyr RTOS devices. USB connects a device to a computer using standard device classes, while CAN is a bus commonly used by vehicles and industrial equipment.

In plain words
What is it for?
Use it to configure USB CDC ACM, HID, or MSC devices, send and filter CAN messages, and implement buffered USB-to-CAN adapters.
Why use it?
It helps move data reliably between a device and a host computer or CAN network, including when building a USB-to-CAN bridge.

Skill for Claude CodeCodex

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

Good fit Use it to configure USB CDC ACM, HID, or MSC devices, send and filter CAN messages, and implement buffered USB-to-CAN adapters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/beriberikix/zephyr-agent-skills/connectivity-usb-can
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 beriberikix/zephyr-agent-skills --skill connectivity-usb-can
Clone the repo
git clone --depth 1 https://github.com/beriberikix/zephyr-agent-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 connectivity-usb-can

README.md
[![agentmods](https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/connectivity-usb-can/github.svg)](https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/connectivity-usb-can)
Your own site
<a href="https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/connectivity-usb-can"><img src="https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/connectivity-usb-can/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 connectivity-usb-can

Your own site · 80×15
<a href="https://agentmods.dev/skills/beriberikix/zephyr-agent-skills/connectivity-usb-can"><img src="https://agentmods.dev/badge/skills/beriberikix/zephyr-agent-skills/connectivity-usb-can.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 597 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.00065 $0.00597
Opus 5 $0.00032 $0.00298
Sonnet 5 $0.00013 $0.00119
Haiku 4.5 $0.00006 $0.00060

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

Security

Grade A, and why

connectivity-usb-can 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/can_filter_lint.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/connectivity-usb-can/SKILL.md · 62 lines

How it starts

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

Zephyr Connectivity: USB & CAN

Build versatile hardware interfaces using Zephyr's modular USB device stack and robust CAN controller support.

Core Workflows

1. USB Device Stack

Configure and enable standard USB classes for host communication.

  • Reference: usb_device_stack.md
  • Key Tools: CONFIG_USB_DEVICE_STACK, usb_enable(), CDC ACM, HID.

2. USB-to-CAN Integration

Implement high-performance bridge patterns for CAN bus diagnostics and adapters.

  • Reference: usb_to_can.md
  • Key Tools: can_send(), k_msgq, binary packetization, CAN filtering.

Quick Start (USB CDC ACM)

# prj.conf
CONFIG_USB_DEVICE_STACK=y
CONFIG_USB_CDC_ACM=y
#include <zephyr/usb/usb_device.h>

void main(void) {
    usb_enable(NULL);
}

Professional Patterns (Adapter Design)

  • Binary Protocols: Use established protocols like gs_usb for robust data transfer over the USB-to-CAN bridge.
  • Hardware Filtering: Rely on the CAN controller's hardware filters to minimize CPU overhead from irrelevant bus traffic.
  • Thread Safety: Use Zephyr's kernel IPCs (k_msgq, k_fifo) to safely move data between high-priority CAN interrupts and the USB processing thread.

Automation Tools

Examples & Templates

Validation Checklist

  • USB enumeration succeeds and the host sees the expected class interface.
  • CAN frames can be transmitted and received on a known-good test bus.
  • Bridge buffering prevents frame loss under burst traffic conditions.
  • Protocol framing between USB endpoint and CAN payload is decoded consistently on both sides.

Resources

  • References:
    • usb_device_stack.md: Configuring USB classes and descriptors.
    • usb_to_can.md: Adapter patterns and buffering strategies.
  • Scripts:
    • can_filter_lint.py: CAN filter table consistency checker.
  • Assets:
    • can_filters_template.csv: Sample filter definitions.

Read the full file on GitHub · 62 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago First seen · 62 lines · 65 tokens per session scan A 7724c626aff1

Subscribe to this mod's changes

connectivity-usb-can is a skill published in the GitHub repository beriberikix/zephyr-agent-skills (63 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 65 tokens to every session and 597 once invoked, about $0.0003 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-08-30.

Related

Other skills, from other repositories

mobile-hardware-ble-nfc

BLE scanning/connecting/GATT operations with react-native-ble-plx, NFC tag reading/writing with react-native-nfc-manager, permissions, background mode, battery-efficient patterns.

agents-inc/skills · 43 tokens

mactop

Retrieve real-time hardware metrics from Apple Silicon Macs using mactop. Provides CPU, RAM, GPU, power, thermal, network, disk I/O, and Thunderbolt bus information. Use when the user wants system stats, hardware monitoring, or performance metrics on Apple Silicon Macs.

metaspartan/cybara · 60 tokens

home-assistant-integration

Use this skill when creating, scaffolding, reviewing, or maintaining Python Home Assistant custom integrations, including work on customcomponents, manifests, config flows, options flows, config entries, platforms/entities, DataUpdateCoordinator, integration automation triggers, diagnostics, repairs…

denysdovhan/agents · 76 tokens

home-assistant-card

Use when creating, reviewing, debugging, or maintaining Home Assistant custom Lovelace cards or card editors, including custom elements, Web Components, hass data, setConfig, getCardSize/getGridOptions, getConfigElement/getConfigForm, window.customCards, resource registration, HACS card packages, entity display…

denysdovhan/agents · 78 tokens

zephyr-device-drivers

Comprehensive Zephyr device driver expertise covering driver model, device instances, initialization levels, power management, and bus-specific patterns (I2C, SPI, UART, GPIO). Use this skill when you need to: (1) Create custom device drivers from scratch, (2) Use existing driver APIs (GPIO, I2C, SPI, UART, ADC, PWM…

ksachdeva/zephyr-rtos-ai · 141 tokens

zephyr-i2c

Comprehensive Zephyr I2C subsystem expertise for Inter-Integrated Circuit bus communication. Use when: (1) Configuring I2C controllers or devices via devicetree or Kconfig, (2) Implementing synchronous I2C transfers with i2ctransfer/i2cread/i2cwrite, (3) Using register access helpers like…

ksachdeva/zephyr-rtos-ai · 183 tokens