Cardputer Buddy

作者 anthropicsb78ac49cdc6b无许可证37K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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.

精选仅含说明Software Development
AI 生成的概览

指导迭代 Cardputer-Adv 的 MicroPython 应用包:添加应用、通过 USB 串口推送文件、查看日志并运行 REPL 命令。

功能
该技能说明安装在 /flash/ 上的 Cardputer-Adv MicroPython 载荷的目录结构,包括启动器 main.py、共享的 buddy_*.py 库以及 apps 目录。它说明如何参照 hello_cardputer.py 示例添加新应用并在不重新刷写的情况下推送,并介绍用于推送选定文件、查看设备串口日志以及执行一次性 REPL 命令的辅助脚本。其产出是设备开发流程的指导与命令,而不是生成的文件。
适用场景
适用于 Cardputer-Adv 设备已通过 m5-onboard 完成配置之后,用户想要添加新应用、在不重新刷写的情况下推送单个修改过的 .py 文件、查看设备串口日志,或在设备上运行一次性 REPL 命令时。
运行要求
需要一台已配置好且可通过 USB 串口访问的 Cardputer-Adv 设备、包含 buddy/ 目录的本地 build-with-claude 克隆、Python 3,以及所引用的脚本(onboard/scripts/install_apps.py、buddy/scripts/push.py、buddy/scripts/tail_serial.py、buddy/scripts/repl_run.py)。该技能本身不附带脚本,仅为说明文档。

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:

bash
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/)

bash
# Push a subset of files over USB-serialpython3 buddy/scripts/push.py --port <PORT> --files apps/snake.py
# Watch device logspython3 buddy/scripts/tail_serial.py --port <PORT>
# One-shot REPL execpython3 buddy/scripts/repl_run.py --port <PORT> --script "import os; print(os.listdir('/flash'))"

来源与署名

来源:anthropics/claude-plugins-official位于plugins/cwc-makers/skills/cardputer-buddy提交b78ac49

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

更多来自 anthropics/claude-plugins-official 的技能

Skill Development

anthropics

精选

指导创建 Claude Code 插件技能,涵盖结构、描述、渐进式披露与验证。

AI & Agents37K今天更新

Plugin Structure

anthropics

精选

指导 Claude Code 插件的结构、清单与组件布局。

AI & Agents37K今天更新

Project Artifact

anthropics

精选

Generate and publish a project status artifact — an opinionated, tabbed status page for a project too big for one update (overview & success criteria, the workstream sequence, next steps, plus background, plan, risks & open questions, and decisions/FAQ when they earn a tab) — published with the built-in Artifact tool to a default-private claude.ai page the user can share with teammates. Use when a piece of work spans several workstreams and you want a shareable overview kept current. Each artifact is backed by a small per-project config in the plugin data dir, so refreshing it re-gathers live state, redeploys the same URL, and reports only the delta. For software projects whose workstreams are PRs, also read swe.md (the X.Y PR-numbering convention; pulling PR state with gh/git; a per-PR detail block). Needs the built-in Artifact tool (claude.ai login). Not for single-PR changes or public docs.

待分类37K今天更新

Command Development

anthropics

精选

指导创建 Claude Code 斜杠命令,涵盖结构、YAML frontmatter、参数与插件功能。

AI & Agents37K今天更新

Playground

anthropics

精选

构建自包含的交互式 HTML 演练场,包含控件、实时预览和可复制的提示词输出。

Design & Creative37K今天更新

M5 Onboard

anthropics

精选

通过 USB 检测 M5Stack ESP32 开发板,刷写 UIFlow 2.0 固件并安装 MicroPython 应用包。

DevOps & Cloud37K今天更新