A full-featured CAN/CAN-FD debugging tool that wraps interface discovery, real-time monitoring, frame transmission, logging, and DBC decoding into a single workflow. It auto-scans USB-CAN adapters (PCAN, Vector, slcan), writes working configs to your project so you don't re-specify channels every time, and handles both arbitration and data bitrates for FD frames. The send command goes straight through once configured, no confirmation prompts, which is efficient but means you should double-check your IDs first. Output is structured JSON or JSON Lines for streaming, and it prioritizes CLI args over project config over defaults, so you can override on the fly. If you're doing embedded CAN work and tired of switching between vendor tools, this consolidates the repetitive stuff.
- skills.sh installs
- 751
- GitHub stars
- 791
- last updated
- Aug 21, 2026
Install
$ npx -y skills add zhinkgit/embeddedskills --skill can --agent claude-codeInstalls into .claude/skills of the current project.
Files
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 |
参数解析优先级
- CLI 参数 (
--interface,--channel,--bitrate等) - 最高优先级 - 工程级配置 (
.embeddedskills/config.json中的can部分) - 状态文件 (
.embeddedskills/state.json中的历史记录) - 默认值 - 最低优先级
自动扫描行为
Sponsors
Details
- Repository
- github.com/zhinkgit/embeddedskills
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026
