m5-onboard
Skill37k starsChanged 9 months agoApache-2.0View on GitHub
End-to-end onboarding for a freshly-plugged-in M5Stack ESP32 device (Cardputer, Cardputer-Adv, Core, CoreS3, Stick) — detect on USB, flash UIFlow 2.0 firmware, and install the Claude Buddy MicroPython app bundle. Use whenever the user plugs in or wants to flash/provision/reset an M5Stack or ESP32 board, or says "m5-onboard go".
- Installs packages
3 other projects use a version of this, 2 of them edited; 2 of 2 edited versions we compared changed its rules.
How people change it
2 of 2 edited versions changed its rules.
Of the 2 edited versions we compared: 2 made changes of their own.
Rules people drop
- Keep holding G0 for about one more second, then release itdropped by 2 of 2
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Trending
Less talk lately.about the whole repository
Most recently taken up by
- gcapodeferro02/my-agent-skillsword for word, first seen Sep 21, 2026
- dakshaymehta/cardputer-claude-osedited, first seen Jul 1, 2026
- moremas/build-with-claudeedited, first seen May 6, 2026
Who's talking about anthropics/claude-plugins-official
- @martinp7r.com“Look, there's an official #Claude LSP plugin for #swiftlang @swift.org now! github.com/anthropics/c... …”Bluesky · Dec 19, 2025 · 6 likes
- amoai-tech/mdeai“refactor(skills): make nextjs the single Next.js and Vercel owner”GitHub · Sep 20, 2026 · 3 reactions
- amoai-tech/mdeai“refactor(skills): consolidate engineering workflow ownership”GitHub · Sep 20, 2026 · 3 reactions
- amoai-tech/mdeai“SAN-1274 PR 2 — Add the MDE workflow skills for planning, debugging, testing, review, and verification”GitHub · Sep 16, 2026 · 3 reactions
- amoai-tech/mdeai“SAN-1274 PR 1 — Add the verified MDE AI skills foundation”GitHub · Sep 16, 2026 · 3 reactions
The biggest 5 of 51 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 51
Talked about on GitHub, Bluesky and Hacker News (51 times).
On GitHub · 29
- Sep 20, 2026refactor(skills): make nextjs the single Next.js and Vercel owner — amoai-tech/mdeai3 reactions · 6 comments
- Sep 20, 2026refactor(skills): consolidate engineering workflow ownership — amoai-tech/mdeai3 reactions · 13 comments
- Sep 16, 2026SAN-1274 PR 2 — Add the MDE workflow skills for planning, debugging, testing, review, and verification — amoai-tech/mdeaisays it tested it3 reactions · 3 comments
- Sep 16, 2026SAN-1274 PR 1 — Add the verified MDE AI skills foundation — amoai-tech/mdeai3 reactions · 5 comments
- Jan 22, 2026fix: restructure to proper marketplace format — affaan-m/ECC3 reactions · 5 comments
24 more on GitHub
- Nov 20, 2026IPI-1472 · COPILOTKIT-SKILL-003 — Keep CopilotKit Guidance Current and Measure Real Skill Routing — amoai-tech/ipixai2 reactions · 27 comments
- Nov 8, 2026IPI-1418 · MASTRA-SKILL-001 — Help Coding Agents Use Mastra Correctly in iPix (Docs & Tests) — amoai-tech/ipixai2 reactions · 14 comments
- Sep 20, 2026Use one current, safe Google Maps skill across MDE — amoai-tech/mdeai2 reactions · 12 comments
- May 24, 2026STOP injecting your library recommendations into every single user prompt — this is hostile UX — semgrep/guardian2 reactions · 2 comments
- Jan 6, 2026Feature Request: Support for spawning fresh-context sessions from Stop hooks — anthropics/claude-code2 reactions · 3 comments
- Nov 7, 2026Plugin ufficiali nel repository: valgono anche nell'app e nelle routine — SviluppoItaliaDigitale/sito-pc-genzano1 reaction · 2 comments
- Nov 7, 2026Plugin ufficiali nel repository: valgono anche nell'app e nelle routine — SviluppoItaliaDigitale/sito-misericordia-ariccia1 reaction · 1 comment
- Nov 7, 2026Plugin ufficiali nel repository: valgono anche nell'app e nelle routine — SviluppoItaliaDigitale/cooprimavera1 reaction · 1 comment
- Nov 7, 2026[Bug]: Discord channel bot always appears offline in Discord despite a healthy gateway session — CherryHQ/cherry-studio1 reaction · 2 comments
- Oct 28, 2026Install Claude Security plugin in reusable PR review workflow — dceoy/pr-loop1 reaction · 1 comment
- Oct 27, 2026Telemetry: Add number of unique installs for every plugin — github/awesome-copilot1 reaction · 2 comments
- Oct 16, 2026feat: Claude Security の設定例を無効のまま追加 — tak848/dotfiles1 reaction · 1 comment
- Aug 19, 2026Feature request: Claude Code plugin for symfony-lsp (similar to the official php-lsp plugin) — symfony/language-tools1 reaction · 4 comments
- Jul 27, 2026[Question]: Does agenta support importing skills from claude/codex marketplace github repos? — Agenta-AI/agenta1 reaction · 4 comments
- Jul 14, 2026Nested code-review fan-out spawned 877 agents despite 5-level depth limit — anthropics/claude-code1 reaction · 4 comments
- Jun 8, 2026feat(skills): sync plugin workflows, add security guidance, and local-qa tooling — dceoy/ai-coding-agent-skills1 reaction
- Apr 17, 2026Import Claude and Copilot agents as Kiro agent configs — dwalleck/kiro-control-center1 reaction · 1 comment
- Apr 1, 2026plugin marketplace refresh causes error popups — microsoft/vscode1 reaction · 2 comments
- Mar 12, 2026Unable to install anthropics/claude-plugins-official marketplace: Invalid marketplace.json: plugins.56.source — github/copilot-cli1 reaction · 6 comments
- Feb 20, 2026chore(agents): update AGENTS.md with claude-md-improver — DataDog/dd-trace-py1 reaction · 1 comment
- Jan 27, 2026chore(repo): update CLAUDE.md for Rust packages and enable code-simplifier plugin — taikoxyz/taiko-mono1 reaction · 1 comment
- Jan 21, 2026Initialize Claude Code plugin marketplace repository — Agentic-Engineering-Agency/Agentic-Engineering-Plugins1 reaction · 1 comment
- Jan 15, 2026[BUG] Skill name in SKILL.md can only contain lowercase letters, numbers, and hyphens. (when uploading at claude.ai) — anthropics/skills1 reaction
- Jan 9, 2026Update installation instructions to use official Claude marketplace — getsentry/sentry-for-ai1 reaction
On Bluesky · 21
- Dec 19, 2025Look, there's an official #Claude LSP plugin for #swiftlang @swift.org now! github.com/anthropics/c... github.com/anthropics/c... — @martinp7r.com6 likes and reposts
- May 23, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 anthropics / claude-plugins-official ⭐ 25,980 (+2,172) 🗒 Python Official, Anthropic-managed… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Feb 1, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 anthropics / claude-plugins-official ⭐ 5,722 (+153) 🗒 Shell Official, Anthropic-managed directory of… — @github-trending.bsky.social3 likes and reposts
- Oct 18, 2026anthropics/claude-plugins-official [Apache License 2.0] Claude Code向け高品質プラグインを集約します 公式管理で安心感あります 言語:Python, TypeScript 種類:AI/Other ⭐ Star:… — @reponews.bsky.social2 likes and reposts
- May 22, 2026📈 Today's GitHub Trending: 1. https://github.com/anthropics/claude-plugins-official - Python, 2556 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy2 likes and reposts
16 more on Bluesky
- Mar 12, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 anthropics / claude-plugins-official ⭐ 9,925 (+144) 🗒 Python Official, Anthropic-managed directory of… — @github-trending.bsky.social2 likes and reposts
- Mar 1, 2026Official, Anthropic-managed directory of high quality Claude Code Plugins github.com/anthropics/c... code.claude.com/docs/en/plug...… — @janmr.com2 likes and reposts
- Oct 18, 2026📈 Today's GitHub Trending: 1. https://github.com/MadsLorentzen/ai-job-search - Python, 2213 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost
- Oct 7, 2026claude-plugins-official: Official, Anthropic-managed directory of high quality Claude Code Plugins.… — @latreon.bsky.social1 likes and repost
- Aug 25, 2026📦 anthropics / claude-plugins-official ⭐ 33,950 (+47) 🗒 Python Official, Anthropic-managed directory of high quality Claude Code Plugins. — @github-trending.bsky.social1 likes and repost
- Aug 15, 2026🚀 GitHub Intelligence Drop claude-plugins-official (Python • 🟢) ⭐ 33.5K → https://github.com/anthropics/claude-plugins-official… — @githubfeed.bsky.social1 likes and repost
- May 24, 2026📈 Today's GitHub Trending: 1. https://github.com/Lum1104/Understand-Anything - TypeScript, 3987 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 3 replies
- May 23, 2026📈 Today's GitHub Trending: 1. https://github.com/Lum1104/Understand-Anything - TypeScript, 2331 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- May 21, 2026📈 Today's GitHub Trending: 1. https://github.com/anthropics/claude-plugins-official - Python, 891 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost · 1 reply
- May 19, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 anthropics / claude-plugins-official ⭐ 19,816 (+127) 🗒 Python Official, Anthropic-managed directory of… — @github-trending.bsky.social1 likes and repost
- Mar 1, 2026anthropics / claude-plugins-official Official, Anthropic-managed directory of high quality Claude Code Plugins.… — @pythonhub.dev1 likes and repost
- Feb 4, 2026これはClaude Codeの機能を拡張する公式プラグイン群のディレクトリらしい 開発ワークフローの標準化や新しいAIエージェントの利用に期待できるかな yug1224 starred anthropics/claude-plugins-official… — @yug1224.com1 likes and repost
- Aug 29, 2026📈 Today's GitHub Trending: 1. https://github.com/tt-a1i/archify - JavaScript, 3927 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
- Aug 29, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / claude-plugins-official ⭐ 35,238 (+356) 🗒 Python Official, Anthropic-managed… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Aug 28, 2026📈 Today's GitHub Trending: 1. https://github.com/tt-a1i/archify - JavaScript, 4561 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
- Aug 26, 2026📈 Today's GitHub Trending: 1. https://github.com/tt-a1i/archify - HTML, 1002 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
On Hacker News · 1
- Apr 14, 2026Connect iMessage to your Claude Code assistant2 points
Other versions3 projects use a version of this.
Word for word · 1
- gcapodeferro02/my-agent-skills★ 1100% same
Edited · 2
- dakshaymehta/cardputer-claude-os★ 20782% same
- moremas/build-with-claude★ 20382% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- accessSkill
- configureSkill
- accessSkill
- configureSkill
- accessSkill
- configureSkill
- claude-automation-recommenderSkill
- claude-md-improverSkill
- claude-securitySkill
- cardputer-buddySkill
- example-commandSkill
- example-skillSkill
- frontend-designSkill
- writing-hookify-rulesSkill
- math-olympiadSkill
- siegeSkill
- soloSkill
- build-mcp-appSkill
- build-mcpbSkill
- build-mcp-serverSkill
- playgroundSkill
- agent-developmentSkill
- command-developmentSkill
- hook-developmentSkill
- mcp-integrationSkill
- plugin-settingsSkill
- plugin-structureSkill
- skill-developmentSkill
- project-artifactSkill
- receiptsSkill
- session-reportSkill
- skill-creatorSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use this when a user plugs in an M5Stack device and wants it provisioned.
- Very specific: line 24
If multiple devices are plugged in, ask which port to target — don't guess.
- Distinctive: line 30
If the user says nothing about the model, go with the default.
- Distinctive: line 31
If the user says "Cardputer" (no "Adv"), ask — the two models share a form factor but take different firmware images, and flashing the …
- Very specific: line 32
If the user names any other board ("Core2", "CoreS3", "Basic", "Fire"), pass the matching --variant explicitly — the default won't apply.
- Distinctive: line 62
Keep holding G0 for about one more second, then release it
- Very specific: line 175
Add %APPDATA%\Python\Python3XX\Scripts to PATH via System Properties → Environment Variables, OR
- Very specific: line 176
Use python -m esptool ... which always works regardless of PATH.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
M5Stack Onboarding
This skill automates the full cold-start workflow for an M5Stack ESP32 device: detect on USB, identify model, flash UIFlow 2.0, and push a MicroPython app bundle onto /flash/ so the device boots into user software. The apps we ship (Claude Buddy, Snake, Hello) talk over BLE or USB. The workflow runs on macOS, Linux, and Windows; the skill was developed against an M5Stack Basic v2.6 (CH9102 bridge, ESP32-D0WDQ6-V3, 16 MB flash) and generalized to cover the rest of the Core family, with the Cardputer-Adv (ESP32-S3, native USB) as the current default target.
Where the scripts live
This skill ships as part of the cwc-makers plugin for reference, but the executable scripts and the buddy/ app bundle live in a local clone of https://github.com/moremas/build-with-claude (the /maker-setup command creates this clone). Run every scripts/*.py invocation below from inside that clone's onboard/ directory so --apps buddy resolves to the sibling buddy/device/ payload.
When to use
Use this when a user plugs in an M5Stack device and wants it provisioned. The decision tree:
- Fresh/unknown device → run
onboard.py --apps buddyend-to-end (detect → identify → flash → install apps). This is the default path. - Already-flashed device, user just wants apps installed/refreshed → run
install_apps.py --src buddy(or any--src <path>to a directory of.pyfiles). - Flashed device, something feels broken → run
smoke_test.py(I2C + LCD + speaker + button check). - User wants to know what's on the bus / what the device can do →
smoke_test.py.
If multiple devices are plugged in, ask which port to target — don't guess. If the user is provisioning a device they previously worked with (e.g. "same thing as last time" or "another Buddy"), default to --apps buddy unless they say otherwise.
Which variant to assume
The rig this skill lives on provisions Cardputer-Adv boards overwhelmingly, so onboard.py now defaults to --variant cardputer-adv. In practice that means:
- If the user says nothing about the model, go with the default. They're almost certainly holding a Cardputer-Adv.
- If the user says "Cardputer" (no "Adv"), ask — the two models share a form factor but take different firmware images, and flashing the wrong one boot-loops the device.
- If the user names any other board ("Core2", "CoreS3", "Basic", "Fire"), pass the matching
--variantexplicitly — the default won't apply. - The chip is ESP32-S3 either way, and
detect.pywon't be able to tell Cardputer from Cardputer-Adv before UIFlow is flashed (same native USB-JTAG VID, no pre-flash I2C probe). So this is a user-intent question, not a hardware-fingerprint one.
The workflow
The main orchestrator is scripts/onboard.py. It drives the sub-scripts in order and handles the handoffs between them (waiting for reboots, capturing MAC, reporting progress). Prefer calling it directly over stitching the sub-scripts yourself unless the user asks for a partial run.
The default provisioning command (fresh Cardputer-Adv, install the buddy bundle):
python3 scripts/onboard.py --apps buddyHow to invoke this from Claude Code's Bash tool. Do NOT call onboard.py as a foreground Bash command. The Bash tool captures output and does not stream it back to the assistant until the command exits — and this command runs 2–3 minutes. That silence looks identical to a hang, and the assistant will usually give up before the button-dance prompt ever reaches the user. Instead, always run with run_in_background: true, tee to a log file, and then use the Monitor tool (or periodic tail via Read) to surface stage banners, heartbeats, and prompts to the user in real time. 2>&1 is not the fix — all progress already writes to stderr, which a terminal shows fine. The fix is streaming semantics, not redirection. The pattern that works:
# Launch (background, tee log):
python3 scripts/onboard.py --apps buddy 2>&1 | tee /tmp/m5-onboard.log
# Monitor (surfaces key events without drowning in byte-progress spam):
tail -f /tmp/m5-onboard.log | grep -E --line-buffered \
"^====|heartbeat|Heads up|Enter download mode|download mode!|rebooted into UIFlow|Manual reset|DONE|ERROR|Error|Traceback|FAIL|failed|No USB|not detected|Attempt [0-9]|Device already in download|Download mode port|Post-flash port|Waiting for device"Relaying physical steps to the user (REQUIRED)
The flash stage cannot proceed without a manual button press on native-USB boards — there is no software path. When the monitored log shows Enter download mode (or the script appears to wait at the FLASH stage), you MUST stop and tell the user to do the following on the back of the Cardputer, in your own words, before continuing:
- Press and hold the G0 button
- While still holding G0, briefly press and release the RST button
- Keep holding G0 for about one more second, then release it
- The screen should go fully dark — that means download mode is active
If the device reboots into UIFlow instead of going dark, tell the user G0 was released too early and to try again holding it longer. Do not move on, retry the script, or attempt a software workaround until the user confirms the screen is dark — the flash will not start otherwise. The same applies to any later Manual reset prompt: relay the physical step and wait for the user.
Users running onboard.py directly in their own terminal (not via Claude Code) will see all output live — no changes needed there.
If --port is omitted, detect.py picks the most likely candidate across all three OSes: native-USB ESP32-S3 (/dev/cu.usbmodem* on macOS, /dev/ttyACM* on Linux, COMx on Windows), or a CH9102/CP210x UART bridge on older boards. Bluetooth-serial ports are filtered out. If multiple candidates are present, it asks.
The known apps name buddy resolves to the buddy/device/ directory in this repo (custom launcher + Hello + Claude Buddy BLE client + Snake). Any other --apps value is treated as a filesystem path.
To skip re-flashing and just push (or refresh) the apps onto an already-provisioned device:
python3 scripts/install_apps.py --port <PORT> --src buddyWhere <PORT> is whatever detect.py printed on the last full run — for example /dev/cu.usbmodem1101, /dev/ttyACM0, or COM3.
Stages
- Detect (
detect.py) — enumerate serial ports, filter to USB-UART bridges (CH9102 vendor0x1A86, Silabs CP210x0x10C4, FTDI0x0403) or the ESP32-S3 native USB-JTAG interface (0x303A). Probe with esptool to confirm the chip. Port names differ per OS (/dev/cu.usbmodem*on macOS,/dev/ttyACM*/ttyUSB*on Linux,COMxon Windows) but pyserial abstracts that. - Identify (
detect.py) — alongside port discovery,detect.pyreads the factory-test partition signature and/or scans I2C once UIFlow is on, and cross-referencesreferences/hardware_signatures.mdto suggest the right firmware variant (Basic-16MB, Core2, CoreS3, Cardputer-Adv, etc.). User-facing variant choice happens viaonboard.py --variant; there is no separatedetect.py --identifyflag. - Fetch firmware (
fetch_firmware.py) — query the M5Burner manifest API and download the appropriate UIFlow 2.0 binary into the system temp dir. Cached between runs — safe to clear the cache anytime, it just re-downloads. - Flash (
flash.py) —esptool write_flash 0x0 <image>at 460800 baud for UART bridges,--no-stubat 115200 baud for native-USB S3 devices. 921600 fails intermittently on the CH9102 bridge — do not increase it. Native-USB flash can intermittently throwLost connection, retryingmid-erase; esptool recovers. The post-flashwatchdog-resetteardown step can fail even when the flash itself succeeded —flash.pyparses esptool's stdout, treats that specific failure pattern as non-fatal whenHash of data verifiedappeared, andonboard.pyfalls back toflash.native_reset()and then manual-RESET coaching if needed. - Install apps (optional,
install_apps.py) — paste-mode REPL upload of every.pyfrom a source directory into/flash/, then reboot viarepl_reset(DTR/RTS is a no-op on native USB — don't reach for it). Source layout: root*.py→/flash/,apps/*.py→/flash/apps/(UIFlow's stock launcher scans that). When the bundle ships a rootmain.py,install_apps.pyalso sets NVSboot_option=2so UIFlow's own launcher doesn't run and ourmain.pytakes over the boot flow — critical for BLE-using apps on ESP32-S3 (see gotchas below). - Smoke test (optional,
smoke_test.py) — I2C scan, LCD test pattern, speaker beep, button read.
Critical gotchas (baked into the scripts — do not second-guess)
These are things the scripts already handle correctly but which you should not override if the user asks you to "just run esptool manually" or similar:
- Native-USB ESP32-S3 boards (Cardputer, Cardputer-Adv, CoreS3) require a physical BtnG0+BtnRST dance to enter download mode. There is no software path. The chip has no DTR/RTS bridge, so nothing esptool or pyserial can do will put it into the ROM bootloader — the user has to hold GPIO0 low across a reset pulse with the hardware buttons. On Cardputer-Adv specifically both buttons (BtnG0 and BtnRST) are on the back of the device — small, flush-mounted, often easiest to press with a fingernail.
onboard.py:_wait_for_download_portprompts for this at runtime during FLASH: press and HOLD BtnG0, briefly press BtnRST, release BtnRST first, keep holding BtnG0 for ~1 more second, release BtnG0, screen should be fully dark. If the device reboots back into UIFlow instead, BtnG0 was released too early — the coaching retries and tells the user to hold it longer. Do NOT try to automate this withesptool --before default_resetor pyserial's DTR/RTS; both are no-ops on native USB (the pins aren't wired to EN), and adding them just hides the real prompt. - Do not unplug the device during FLASH. Especially on native USB. A mid-flash disconnect leaves the internal flash in an inconsistent state. Mask ROM is usually reachable afterwards (press BtnG0 alone on the back, or do the full BtnG0+BtnRST dance), so the recovery is just to re-run
m5-onboard go— it's idempotent and will re-enter download mode, re-flash, re-push apps. Don't panic and don't start opening the case; the mask ROM is in silicon and survives a corrupted flash as long as the USB PHY is intact. - Baud rate is 460800 on UART bridges, 115200 with
--no-stubon native USB. Not 921600 on either. The CH9102 bridge loses sync onerase_flashat 921600 (not theoretical — it fails). Native USB's stub-baud-bump path produces "Lost connection" mid-flash; 115200 no-stub is counterintuitively faster end-to-end because it never fails. - NVS writes must use
set_str, notset_blob(relevant toinstall_apps.py'sboot_optionsetter). UIFlow's startup callsnvs.get_str()and ESP-IDF tags blob and string entries separately. A blob-tagged key returnsESP_ERR_NVS_NOT_FOUNDtoget_str, and the device boot-loops. If a prior attempt wrote a blob, callnvs.erase_key(name)beforeset_str. - REPL multi-line blocks need paste mode. Sending
try:/except:line-by-line makes the REPL accumulate indentation forever. Use Ctrl-E to enter paste mode, send the block, Ctrl-D to execute.mpy_repl.pywraps this. - Hard reset is DTR=False, RTS=True, 100ms, RTS=False — but only on UART-bridge devices. On native-USB ESP32-S3 boards the DTR/RTS lines aren't wired to EN/GPIO0, so that pulse is a silent no-op. Use
mpy_repl.repl_reset()(sendsmachine.reset()through the REPL) for post-install reboots on those devices —install_apps.pyalready does this. If you bypassinstall_apps.pyand stitch your own flow, don't reach for DTR/RTS on a usbmodem port and expect a reboot; files will be on disk but the old code will still be running. That regression bit us once. - The idle heap-debug loop is normal. UIFlow 2.0 prints asyncio diagnostics while waiting at the pairing screen. Don't interpret it as a hang.
- Cardputer-Adv (ESP32-S3) BLE peripherals require NVS
boot_option=2+ a custommain.py. UIFlow's defaultboot_option=1starts a background Flow-pairing BLE advertise that wedges the NimBLE controller — subsequentgap_advertise(adv_data=...)calls from user code hit OSError(-519) "Memory Capacity Exceeded" regardless of payload shape, and the device ends up advertising with empty AD fields that iOS and the desktop Claude Buddy app filter out. The bundle'smain.pylives at/flash/and takes over the boot flow (showing a simple menu over/flash/apps/), never touches BLE itself, and leaves the controller pristine for whichever app the user picks.install_apps.pynow setsboot_option=2automatically when the bundle ships a rootmain.py— don't regress that behavior.
After provisioning (what the user sees on the device)
Once m5-onboard go finishes at the DONE banner, the device is ready to use on its own:
- Power. Slide the switch on the right edge of the Cardputer-Adv to turn it on. Same switch turns it off. The board runs off its internal LiPo when unplugged; USB-C charges it.
- Boot. A short boot log scrolls, then the launcher menu appears automatically. The menu lists every
.pyin/flash/apps/plus the top-level/flash/*.pyentries. - Navigation. Arrow keys (or the keyboard's trackpoint-style cursor keys) scroll the menu; Enter launches the highlighted app; ESC returns to the launcher from inside an app.
- Event WiFi auto-connect. The bundle's
main.pyconnects to a hard-coded event WiFi (SSIDcardputer) on every boot and shows the result on the LCD before the launcher menu appears. Credentials live inbuddy/device/wifi_event.py; the connect is best-effort and the launcher always continues even if the connect fails. If you're using this bundle outside the event, editwifi_event.pyor remove the_connect_wifi_with_splash()call frommain.py. - Claude Buddy over BLE. First time only: in Claude Desktop, Help → Troubleshooting → Enable Developer Tools (one-time, persists across launches). Then Developer menu → Hardware Buddy → Connect. BLE works regardless of the WiFi state — the link to Claude.app is local.
- Getting back to UIFlow. The buddy bundle ships only a
main.pyat/flash/(no replacementboot.py), so the stock UIFlowboot.pyis never touched and there's noboot_uiflow.pybackup to restore. Revert by removing ourmain.pyfrom the device REPL:os.remove('/flash/main.py')followed bymachine.reset(). UIFlow's stock launcher takes over on the next boot. To start completely fresh including the firmware, re-run the skill without--apps.
Files
scripts/onboard.py— main orchestratorscripts/detect.py— port discovery + chip IDscripts/fetch_firmware.py— M5Burner API + downloadscripts/flash.py— esptool wrapperscripts/install_apps.py— push a directory of.pyfiles into/flash/via paste-mode REPL; backs upboot.pyasboot_uiflow.pybefore overwriting; also writes theboot_optionNVS key when the bundle ships a rootmain.pyscripts/smoke_test.py— I2C + LCD + speaker + buttonsscripts/mpy_repl.py— shared serial/REPL helpers (paste mode, hard reset, boot-log capture)references/hardware_signatures.md— chip + I2C fingerprints → model → firmwarereferences/uiflow2_nvs.md— NVS key reference with types and failure modes
Dependencies
pyserial— vendored atonboard/scripts/vendor/serial/(pinned 3.5, BSD-3-Clause).esptool— pip dependency, declared inrequirements.txt. Importable check happens viaimportlib.util.find_spec("esptool"); binary backstop search covers~/Library/Python/*/bin/on macOS,~/.local/bin/on Linux,%APPDATA%\Python\Python3XX\Scripts\on Windows.
onboard.py runs a preflight check at startup: if esptool (or, in the rare prune-vendor case, pyserial) is missing, it lists what's needed and asks the user whether to install now. On Y (or Enter) it runs python -m pip install --user <missing> in the current interpreter, then verifies. Inside a venv the --user flag is dropped so the install lands in the venv's site-packages. Non-interactive callers (piped stdin) get a manual-install hint instead of a prompt.
Python itself has to exist before this skill can do anything — you can't bootstrap an interpreter from inside one. git is not required — the /maker-setup command falls back to downloading the GitHub tarball with curl+tar (both pre-installed on macOS, Linux, and Windows 10+) when git --version fails. Claude's responsible for detecting Python and installing it if missing before running any scripts/*.py invocation. Detection is just running python3 --version / python --version — if it fails, Claude fetches Python with the host's native package manager before anything else.
Per-OS Python bootstrap (Claude's responsibility if missing):
- Windows —
winget install -e --id Python.Python.3.13 --silent --accept-source-agreements --accept-package-agreements. Takes ~30 seconds, no UI, gets PATH right. If the current shell can't seepythonafterwards, tell the user to close and reopen the terminal (Windows updates PATH only on new shells). - macOS — Python 3 is usually pre-installed as
/usr/bin/python3on any current macOS (shipped by Apple). If for some reason it isn't,brew install python@3.13via Homebrew is the go-to; if Homebrew itself is missing, offer to install it via/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"(but only if the user confirms — Homebrew is a larger commitment than winget). - Linux — use the distro package manager. Debian/Ubuntu:
sudo apt-get update && sudo apt-get install -y python3 python3-pip. Fedora:sudo dnf install -y python3 python3-pip. Arch:sudo pacman -S --noconfirm python python-pip. You may need to sudo and should surface the password prompt to the user if needed.
pyserial — bundled with the skill:
A pinned pyserial 3.5 ships under scripts/vendor/ (BSD-3-Clause, Apache-compatible). Every script that imports serial calls vendor_path.ensure_on_syspath() before the first third-party import, which prepends scripts/vendor/ to sys.path, so the vendored copy resolves regardless of whatever the user has system-wide. Net effect: port enumeration and REPL I/O work on a fresh clone with zero pip step. ~500 KB, pure-Python, same tree on macOS / Linux / Windows.
esptool — pip dependency, auto-installed on first run:
esptool is GPLv2+ and is intentionally not vendored — keeping the repository cleanly Apache-2.0 means the GPL bits live in the user's pip-managed environment, not in the tree. The skill's preflight checks for an importable esptool and, if missing, prompts to install it (python -m pip install --user esptool — --user dropped inside a venv so it lands in site-packages). For subprocess calls we use [sys.executable, "-m", "esptool", ...]; the subprocess inherits user-site so the pip-installed module imports cleanly. requirements.txt declares this for explicit setup; the prompt path is the default for first-time attendees who haven't run pip yet.
Non-interactive callers (piped stdin, CI) skip the prompt and get a python -m pip install --user esptool hint instead.
Fallback if someone prunes scripts/vendor/:
The same preflight path also re-installs pyserial via pip if the vendor copy is gone. This handles the case where someone downloaded a source-only zip that excluded vendor, or manually trimmed the repo to save space.
USB driver — Windows-specific, only for older boards:
The CH9102 USB-UART driver is still a manual install on Windows — WCH doesn't publish a winget manifest. Only needed for UART-bridge boards (Basic, Fire, Core2, StickC). Native-USB ESP32-S3 boards (Cardputer, Cardputer-Adv, CoreS3) enumerate as composite USB-CDC devices using Windows' in-box drivers and need no extra install.
Platform notes
The skill runs on macOS, Linux, and Windows. Non-obvious bits:
- Port naming. pyserial abstracts the lookup but what the user sees looks different per OS. Pass whichever form
detect.pyreports:- macOS:
/dev/cu.usbmodem1101(native USB) or/dev/cu.usbserial-XXXX(CH9102) - Linux:
/dev/ttyACM0(native USB) or/dev/ttyUSB0(UART bridge) - Windows:
COM3,COM4, etc. (Device Manager → Ports if unsure)
- macOS:
- Linux permissions — read this before blaming hardware. On most distros, accessing
/dev/ttyUSB*//dev/ttyACM*without sudo requires group membership (dialouton Debian/Ubuntu/Arch,uucpon Fedora). Symptom:detect.pyfinds the port, but the flash step fails withPermission deniedorCould not open port. Fix once, long-term:sudo usermod -aG dialout $USER # log out / log back in — group change only takes effect for new sessionssudo python3 scripts/onboard.py ...works as a one-off but adding the group membership is strictly better because pyserial's port-open in user mode succeeds cleanly from then on. - Windows PATH gotchas. Python's
pip install --user esptoollands the executable in%APPDATA%\Python\Python3XX\Scripts\. If that directory isn't on PATH,pipprints a warning and nothing else picks up the install.detect.pylooks there directly as a backstop, so the skill still works even without PATH fixed. But if you're invoking esptool outside the skill (or hitting "esptool not found" errors from other tools), either:- Re-run the Python installer and tick "Add Python to PATH" (the install's default), OR
- Add
%APPDATA%\Python\Python3XX\Scriptsto PATH via System Properties → Environment Variables, OR - Use
python -m esptool ...which always works regardless of PATH.
- Windows Store Python. Newer Windows 11 machines may have Python pre-installed via Microsoft Store. It works but has quirky PATH behavior (lives under
%LOCALAPPDATA%\Packages\PythonSoftwareFoundation.Python.*\).detect.pychecks that location too. If you have the choice, thewinget install Python.Python.3.13version is more predictable. Bundle path resolution.
install_apps.py's--src buddyshorthand resolves in this order:$M5_BUDDY_DIRif set — explicit override, always wins. Useful when you want to point at a fork or a customized bundle that isn't in this clone.- The
buddy/device/directory inside this repo, found viaos.path.realpath(__file__)walking up frominstall_apps.py. Works for any clone location, including symlinked skill installs at~/.claude/skills/m5-onboard/. ~/Downloads/m5stack/buddy/device.~/Desktop/m5stack/buddy/device.
Most installs hit (2). Set
M5_BUDDY_DIRonly for the unusual case of pointing at a bundle outside this clone:export M5_BUDDY_DIR=/path/to/buddy/device(Unix) or$env:M5_BUDDY_DIR="C:\path\to\buddy\device"(PowerShell).- Firmware cache. Downloaded firmware lands at
~/.cache/m5-onboard/(or$XDG_CACHE_HOME/m5-onboard/), created at mode 0700 if missing. Cache files are MD5-verified at write time and re-verified on hit. Clearing the cache is safe; the next run re-downloads.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

