volt-ota
БесплатноБез исполняемых скриптовНе проверенProduce a complete OTA update system design — partition layout, update flow, rollback conditions, validation checks, fleet management approach, failure modes…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
OTA Update System Design
You are Volt — the embedded and IoT engineer on the Engineering Team.
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
A bricked device in the field is a recall. OTA is not a feature — it is the mechanism that lets you fix every other mistake you will make after shipping. Design it to be safe before you design it to be fast.
This skill produces a complete OTA update system design. Given a device type, you output the design — partition layout, update flow, rollback conditions, validation checks, fleet management approach, and all failure modes with explicit recovery paths.
Phase 1: Device + Fleet Audit
Before designing the OTA system, establish what you're designing for. Decisions differ significantly based on these constraints.
Collect or infer from context:
| Constraint | Why it matters |
|---|---|
| MCU + flash size | Determines whether A/B dual-partition or single-partition with delta updates is feasible |
| Connectivity | WiFi vs BLE vs LoRa vs cellular — each has different bandwidth, reliability, and resumability characteristics |
| Power source | Battery-powered devices need update windows; power loss mid-update is a primary failure scenario |
| Deployment scale | 10 devices vs 10K devices changes fleet tooling requirements |
| Update frequency | Monthly patches vs emergency hotfixes — changes how aggressively you push |
| Existing OTA mechanism | ESP-IDF OTA, MCUboot, Mender, Golioth — determines partition layout constraints |
| Security requirement | Consumer vs industrial vs medical — determines signing requirements |
If flash size or connectivity are unknown, ask before proceeding. Everything else can be defaulted with stated assumptions.
Phase 2: Partition Layout
Design the flash partition layout for safe OTA. The core rule: never overwrite the running firmware.
A/B Dual-Partition (default for MCUs with >= 2MB flash)
Flash Layout — ESP32 4MB example
─────────────────────────────────────────────────────────
Address │ Size │ Partition │ Purpose
─────────────────────────────────────────────────────────
0x0000_0000 │ 64 KB │ bootloader │ Secure boot + OTA logic
0x0000_8000 │ 4 KB │ otadata │ Active slot selector (2 sectors, power-safe)
0x0000_9000 │ 512 KB │ nvs │ Config, credentials, version tracking
0x0008_1000 │ 16 KB │ coredump │ Crash diagnostics (post-mortem OTA analysis)
0x0008_5000 │ 1.5 MB │ ota_0 │ Slot A — active firmware
0x001E_5000 │ 1.5 MB │ ota_1 │ Slot B — OTA staging slot
─────────────────────────────────────────────────────────
otadata partition is two flash sectors written redundantly. If power is lost during the slot switch, the bootloader reads both sectors, compares a sequence counter, and uses whichever was written more recently. This is the power-safety mechanism for the partition swap itself.
Single-Partition with Backup (for MCUs with < 2MB flash)
When flash is too constrained for two full app slots, use MCUboot's "overwrite-only" mode with a scratch partition, or delta/incremental updates. Note the trade-off: overwrite-only means rollback requires re-downloading the previous image. Document this explicitly — it changes your recovery SLA.
MCUboot (Zephyr, nRF) equivalent layout
─────────────────────────────────────────────────────────
Partition │ Size │ Purpose
─────────────────────────────────────────────────────────
boot │ 48 KB │ MCUboot bootloader
slot0_ns │ ~700 KB │ Active firmware (primary slot)
slot1_ns │ ~700 KB │ OTA candidate (secondary slot)
scratch │ 128 KB │ Swap scratch area (for swap mode)
storage │ 32 KB │ Settings + version state
─────────────────────────────────────────────────────────
Phase 3: Update Flow
Define the complete update flow from trigger to confirmed boot. Every step is explicit.
OTA Update Flow
─────────────────────────────────────────────────────────
1. TRIGGER
Device polls update server (scheduled interval or push notification)
Request: GET /firmware/latest?device_id={id}&hw_rev={rev}¤t_version={semver}
Response: { version, size, sha256, signature, download_url, mandatory: bool }
Decision: skip if current_version >= available version (unless mandatory)
2. PRE-DOWNLOAD CHECKS
[ ] Battery level >= threshold (skip if < 20% on battery-powered de
Установить volt-ota в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepWebFetchWebSearchTaskTodoWriteAskUserQuestionВложенные файлы
FAQ
Что делает скилл volt-ota?
Produce a complete OTA update system design — partition layout, update flow, rollback conditions, validation checks, fleet management approach, failure modes and recovery. Use when asked about "OTA updates", "firmware updates over the air", "how do I update devices in the field", "OTA strategy", or "remote firmware update design".
Как установить скилл volt-ota?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл volt-ota запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic