can

can is a skill for Claude Code from zhinkgit/embeddedskills. It costs 168 tokens per session (1,861 once invoked), scanned A, original, MIT.

A debugging tool for CAN and CAN-FD, communication systems used by vehicles and embedded devices. It can find interfaces, monitor and send messages, record logs, decode DBC database files, and report bus statistics.

In plain words
What is it for?
Use it to inspect CAN traffic, send test frames, filter CAN IDs, decode DBC files, read ASC or BLF logs, and troubleshoot USB-CAN connections.
Why use it?
It brings common CAN testing and analysis tasks into one tool instead of requiring separate utilities for each interface or log format.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to inspect CAN traffic, send test frames, filter CAN IDs, decode DBC files, read ASC or BLF logs, and troubleshoot USB-CAN connections.

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

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 can

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhinkgit/embeddedskills/can"><img src="https://agentmods.dev/badge/skills/zhinkgit/embeddedskills/can.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,861 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00168 $0.01861
Opus 5.5 $0.00067 $0.00744
Sonnet 5.5 $0.00034 $0.00372
Haiku 4.5 $0.00017 $0.00186

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

Security

Grade A, and why

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 1mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/can_decode.py, scripts/can_log.py, scripts/can_monitor.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.

can/SKILL.md · 162 lines

How it starts

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

CAN — 嵌入式 CAN / CAN-FD 调试工具

统一封装接口发现、实时监控、报文发送、日志记录、数据库文件解码和统计分析能力。

配置

环境级配置 (skill/config.json)

仅保留 slcan 相关的环境级配置:

{
  "slcan_serial_port": "",
  "slcan_serial_baudrate": 115200
}
字段 说明 默认值
slcan_serial_port slcan 场景的串口 ""
slcan_serial_baudrate slcan 场景的串口速率 115200

工程级配置 (.embeddedskills/config.json)

工作区下的 .embeddedskills/config.json 存放工程级 CAN 配置:

{
  "can": {
    "interface": "",
    "channel": "",
    "bitrate": 500000,
    "data_bitrate": 2000000,
    "log_dir": ".embeddedskills/logs/can"
  }
}
字段 说明 默认值
interface CAN 后端,如 pcan / vector / slcan ""
channel 通道名,如 PCAN_USBBUS1 ""
bitrate 仲裁域比特率 500000
data_bitrate CAN-FD 数据域比特率 2000000
log_dir 日志输出目录 .embeddedskills/logs/can

参数解析优先级

  1. CLI 参数 (--interface, --channel, --bitrate 等) - 最高优先级
  2. 工程级配置 (.embeddedskills/config.json 中的 can 部分)
  3. 状态文件 (.embeddedskills/state.json 中的历史记录)
  4. 默认值 - 最低优先级

自动扫描行为

当未指定 interface 和 channel 时,脚本会自动扫描系统 CAN 接口,按以下步骤处理:

  1. 扫描系统中所有可用 CAN 接口
  2. 若只找到一个接口 → 自动使用并写入工程配置
  3. 若找到多个接口 → 返回候选列表,等待用户选择
  4. 若未找到接口 → 提示错误,停止执行

子命令

子命令 用途 风险
scan 扫描可用 CAN 接口与 USB-CAN 设备 低
monitor 实时监控总线报文 低
send 发送标准帧 / 扩展帧 / 远程帧 / CAN-FD 帧 高
log 记录总线报文到 ASC / BLF / CSV 文件 低
decode 用 DBC 等数据库文件解码报文或日志 低
stats 统计总线负载、ID 分布和帧率 低

执行流程

  1. 检查 python-can 是否可用,未安装时提示 pip install python-can
  2. 按优先级解析参数:CLI > 工程级配置 > 状态文件 > 默认值
  3. 无子命令时默认执行 scan
  4. monitor / send / log / stats 使用解析后的连接参数
  5. decode 先确认数据库文件和输入源存在
  6. 若未指定 interface/channel,自动扫描系统 CAN 接口:
    • 唯一候选:自动使用并写入工程配置
    • 多候选:返回列表让用户选择
  7. 成功执行后,将确认的参数写回工程配置
  8. send 只要配置可连接就直接执行,不二次确认
  9. 运行对应脚本并输出结构化结果
  10. 失败时优先反馈接口、驱动、比特率和过滤条件问题

脚本调用

所有脚本位于 skill 目录的 scripts/ 下,通过 python 直接调用。 脚本会按优先级从 CLI 参数、工程级配置、状态文件中读取参数。

Read the full file on GitHub · 162 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 · 162 lines · 168 tokens per session scan A a9716730c7bb

Subscribe to this mod's changes

can is a skill published in the GitHub repository zhinkgit/embeddedskills (755 stars, last pushed 1mo ago), licensed MIT. It adds 168 tokens to every session and 1,861 once invoked, about $0.0007 per session on Opus 5.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

x-bug2rag

A knowledge-capture tool that turns reusable bug explanations into a local RAG collection, meaning a searchable store of text that an agent can retrieve later. It records the trigger, incorrect implementation, correct implementation, and observable difference.

KtKID/x-dev-pipeline · 255 tokens

spark-optimization

Optimize Apache Spark jobs with partitioning, caching, shuffle optimization, and memory tuning. Use when improving Spark performance, debugging slow jobs, or scaling data processing pipelines.

NOMARJ/sigil · 37 tokens

mastra-api

Interact with Mastra development server API for debugging agents, viewing conversation threads, listing/inspecting tools and workflows, accessing observability data, and managing Mastra resources. Use when working with Mastra agents and need to inspect runtime state, debug agent errors, view thread history, see…

liatrio-labs/ai-prompts · 80 tokens

ai-tracing-requests

See exactly what your AI did on a specific request. Use when you need to debug a wrong answer, trace a specific AI request, profile slow AI pipelines, find which step failed, inspect LM calls, view token usage per request, build audit trails, or understand why a customer got a bad response. Covers DSPy inspection…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 171 tokens

dspy-assertions

Legacy reference for dspy.Assert and dspy.Suggest, both removed in DSPy 3.x - use dspy.Refine or dspy.BestOfN instead. Use when maintaining a legacy DSPy 2.x codebase that uses dspy.Assert or dspy.Suggest, or migrating from Assert/Suggest to DSPy 3.x. Also used for dspy.Assert, dspy.Suggest, runtime validation for LLM…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 133 tokens

dspy-chatadapter

Deep dive into dspy.ChatAdapter -- the default adapter that formats DSPy signatures into multi-turn chat messages with field delimiters, parses LM responses back into typed Python objects, and falls back to JSONAdapter on failure. Use when you need to understand how DSPy builds prompts, debug why a model ignores…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 152 tokens