rdk-device

rdk-device is a skill for Claude Code, Codex from D-Robotics/moss. It costs 243 tokens per session (3,392 once invoked), scanned C, original, MIT.

A guide for deploying a developer's own machine-learning model to a D-Robotics RDK board. It converts PyTorch or ONNX files into board-specific BPU files; a BPU is the board's processor for neural-network workloads.

In plain words
What is it for?
Use it to prepare .pt or .onnx models as .bin or .hbm files, set up a board, connect a camera, and diagnose slow or failing inference.
Why use it?
Copying a raw .pt or .onnx file to the board makes it run on the general CPU instead of the BPU, which can make camera inference slow. The guide covers the conversion and on-board debugging path.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/d-robotics/moss/rdk-device
Any agent
npx skills add D-Robotics/moss --skill rdk-device
Clone the repo
git clone --depth 1 https://github.com/D-Robotics/moss

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 rdk-device

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-robotics/moss/rdk-device.svg)](https://agentmods.dev/skills/d-robotics/moss/rdk-device)
Your own site
<a href="https://agentmods.dev/skills/d-robotics/moss/rdk-device"><img src="https://agentmods.dev/badge/skills/d-robotics/moss/rdk-device.svg" alt="Measured on agentmods" height="20"></a>
Per session 243 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,392 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
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 $0.00243 $0.03392
Opus 5 $0.00121 $0.01696
Sonnet 5 $0.00049 $0.00678
Haiku 4.5 $0.00024 $0.00339

Measured 4d ago against content hash a1a4d01ab55e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

rdk-device scanned grade C with 2 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/toolchain_selector.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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

- ❌ Never tell the user to `apt install hb_mapper` **on the board** — it doesn't belong there.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

4. **First config** — `sudo srpi-config` for Wi-Fi / SSH / VNC / locale (not available on Ultra). First boot does ~45s of default setup.
packages/moss-agent/assets/rdk-knowledge/skills/rdk-device/SKILL.md · 126 lines

How it starts

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

RDK Device Deployment

Take a user's trained model from .pt/.onnx to a working on-board BPU deployment, and get a fresh board booted, networked, and running a camera. The single most common failure is copying a .pt/.onnx straight onto the board — it runs on CPU only and the user blames the hardware. Catch that first, then run the toolchain loop.

Sources: official D-Robotics docs (rdk_doc / rdk_x_doc / rdk_s_doc), the OpenExplorer/天工开物 toolchains, and reproduced community cases. Facts are carried over verbatim with provenance; nothing is invented.

The one rule that matters most

A .pt or raw .onnx does NOT use the BPU. PyTorch / ONNX Runtime on an RDK board run on CPU, so the 40+ TOPS NPU sits idle and the user sees 1–2 FPS. When someone says "I deployed YOLOv5 and it's super slow / video is laggy / FPS won't go up / I copied my pt over"interrupt before tuning anything and explain they must run the BPU toolchain (.pt → .onnx → .bin/.hbm). Tuning a CPU-path model is wasted effort.

Board → toolchain cheat-sheet (the foundation)

Confirm the board first (cat /sys/class/socinfo/board_id), then everything downstream follows from this table. Cross-architecture artifacts are never interchangeable — a .bin will not load on Nash, and different march values are mutually incompatible.

Board BPU arch march Host tool Artifact On-board runtime
RDK X3 Bernoulli2 bernoulli2 hb_mapper .bin hobot_dnn (pyeasy_dnn)
RDK X5 Bayes-e bayes-e hb_mapper .bin hbm_runtime (3.5.0+) / pyeasy_dnn (older)
RDK Ultra Bayes bayes hb_mapper .bin hobot_dnn
RDK S100 Nash-e nash-e hb_compile .hbm hbm_runtime
RDK S100P Nash-m nash-m hb_compile .hbm hbm_runtime
RDK S600 Nash nash-p hb_compile .hbm hbm_runtime

march values come from the official FAQ (Super100=Nash-e, Super100P=Nash-m); S600=nash-p confirmed via the LLM SDK's resolve_model_nash-p.md. A quick selector script is in scripts/toolchain_selector.py.

Read the full file on GitHub · 126 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. 4d ago First seen · 126 lines · 0 tokens per session scan C a1a4d01ab55e

Subscribe to this mod's changes

rdk-device is a skill published in the GitHub repository D-Robotics/moss (142 stars, last pushed 8d ago), licensed MIT. It adds 243 tokens to every session and 3,392 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it C with 2 findings (subtle steering, asks for root). 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

integrated-browser

Use this when working on the VS Code integrated browser ("browserView") to understand its architecture and mental model. Covers the embedded Chromium browser, its editor tab, navigation, overlay/layout, sessions, and agent browser tools under src/vs/platform/browserView and src/vs/workbench/contrib/browserView.

microsoft/vscode · 68 tokens

import-prom-rule

Bulk import of a Prometheus alert rule YAML file (create a whole set of rules at once). Dedicated to handling a remote URL or local YAML text, automatically parsing the three formats groups / a plain rules array / a single rule. ⚠️ Do not use this skill for single-rule creation — when the user describes a single alert…

ccfos/nightingale · 125 tokens

pcbway

PCBWay PCB fabrication and assembly — turnkey/consigned assembly, design rules, ordering workflow. Alternative to JLCPCB for manufacturing. Use with KiCad. Use this skill when the user mentions PCBWay, needs turnkey assembly (PCBWay sources parts by MPN), has parts not available on LCSC, needs assembled boards with…

aklofas/kicad-happy · 119 tokens

unifi-protect

How to manage UniFi Protect cameras and NVR — view cameras, smart detections, Find Anything detection search, recordings, snapshots, lights, sensors, Known Faces, license plates, and the Alarm Manager. Use this skill when the user mentions UniFi cameras, security cameras, NVR, recordings, motion detection, person…

sirkirby/unifi-mcp · 112 tokens

tilelang-env-check

TileLang-Ascend 环境检查与配置验证技能。检查代码仓库完整性、编译安装状态、环境变量配置,并运行简单测试验证环境。发现问题会自动调用相关 skill 进行修复,并按依赖顺序重新执行后续步骤。触发关键词:"环境检查"、"检查环境"、"验证环境"、"环境配置"、"环境搭建"、"env check"、"check environment"、"verify environment"、"setup environment"。.

tile-ai/tilelang-ascend · 112 tokens

KernelWiki

Use when the user asks about optimizing NVIDIA Blackwell (SM100, B200) or Hopper (SM90, H100) GPU kernels — tcgen05/TMEM/CLC/NVFP4/2-SM cooperative, warp specialization, FlashAttention-4, DeepGEMM, FlashMLA, MoE, grouped GEMM, CuTe-DSL/PTX/Triton on Blackwell, or wants concrete PR references from…

mit-han-lab/KernelWiki · 143 tokens