跳到正文
Skillpedia
部署与云(DevOps)46k · #6334

cardputer-buddy

它能做什么

它指导你的智能体在 Cardputer-Adv 掌上设备完成设置后,更改其上的 MicroPython 应用。适合想在设备上添加或修改应用的创客。

适用场景

  • ✓当你想在 Cardputer 设备上添加一个新应用的时候。
  • ✓当你想推送单个改动的文件到设备,且不重新刷写的时候。
  • ✓当你想查看设备的串口日志,或在设备上运行一条快捷命令的时候。

技能链接

https://github.com/anthropics/claude-plugins-official/blob/main/plugins/cwc-makers/skills/cardputer-buddy/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/anthropics/claude-plugins-official/blob/main/plugins/cwc-makers/skills/cardputer-buddy/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我在 Cardputer 上添加一个新应用,并把它推送到设备上,而不重新刷写?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会使用套件中的脚本,通过 USB 把文件复制到设备、查看日志,或运行一次性命令。它适配设备已使用的应用文件夹结构。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Cardputer Buddy app bundle

The buddy/ directory in the local build-with-claude clone is the MicroPython payload that m5-onboard installs onto /flash/. Work inside that clone.

Device layout

/flash/
├── main.py              launcher menu (replaces UIFlow's boot flow)
├── buddy_*.py           shared libs (BLE, UI, state, protocol, chars)
├── burst_frames.py      sprite frames
└── apps/
    ├── claude_buddy.py  BLE client → Claude Desktop's Hardware Buddy
    ├── hello_cardputer.py
    └── snake.py

main.py scans /flash/apps/ at boot and lists every .py as a menu entry. Drop a file into buddy/device/apps/, push it, and it appears on next boot.

Adding an app

Crib from buddy/device/apps/hello_cardputer.py — smallest example of keyboard polling, font, and exit conventions. Then push without re-flashing:

python3 onboard/scripts/install_apps.py --port <PORT> --src buddy

<PORT> is whatever detect.py reported last run (e.g. /dev/cu.usbmodem1101, /dev/ttyACM0, COM3).

Dev loop tooling (buddy/scripts/)

# Push a subset of files over USB-serial
python3 buddy/scripts/push.py --port <PORT> --files apps/snake.py

# Watch device logs
python3 buddy/scripts/tail_serial.py --port <PORT>

# One-shot REPL exec
python3 buddy/scripts/repl_run.py --port <PORT> --script "import os; print(os.listdir('/flash'))"
常见问题

我需要先设置设备吗?

需要。这个技能适用于设备已经通过 M5Stack 入门技能完成设置之后。

新应用会出现在设备上吗?

会。启动器在设备开机时会列出其 apps 文件夹中的每个应用文件。

它如何连接设备?

它使用 USB 串口,端口会在设置时自动检测。

详情

作者的原始描述

Iterate on the Cardputer-Adv MicroPython app bundle (Claude Buddy, Snake, Hello) after the device is already provisioned via m5-onboard. Use when the user wants to add a new app, push a single changed .py without re-flashing, watch device serial logs, or run a one-shot REPL command. Trigger on "add an app", "push to the cardputer", "tail the device", "run on the device", or follow-up work after /maker-setup.

repo: anthropics/claude-plugins-official

热度

GitHub 星标
46k
排名
#6334
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能