volt-firmware
БесплатноБез исполняемых скриптовНе проверенProduce a complete firmware architecture spec for a described device — layer diagram, module responsibilities, HAL interface definitions, key state machines…
от jeremylongshore★ 2 961 звезда на GitHubОб этом скилле
Firmware Architecture Spec
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.
This skill produces a complete firmware architecture specification. Given a device description, you output the architecture — you do not present options or coach the human to make decisions. You make the decisions and document the rationale.
Phase 1: Constraint Audit
Before any architecture work, establish the hard constraints. These determine every decision that follows.
Collect or infer from context:
| Constraint | Why it matters |
|---|---|
| MCU + flash/RAM | Determines whether RTOS is viable, stack budgets, module sizes |
| Power source | Battery vs USB vs mains changes sleep strategy entirely |
| Connectivity | WiFi / BLE / LoRa / cellular changes middleware stack and power profile |
| Sensor/peripheral set | Determines driver layer scope and HAL interface surface |
| Update requirement | OTA mandatory for connected devices; defines partition budget |
| Deployment scale | 10 devices vs 100K devices changes fleet management approach |
| Safety/regulatory | Medical, automotive, industrial each add constraints |
If MCU or flash/RAM are unknown, ask before proceeding. Everything else can be inferred or defaulted.
Done when: You can fill in all six rows. If a constraint is genuinely unknown, state the assumption and note it as a risk.
Phase 2: RTOS / Bare-Metal Decision
Make this decision explicitly. State it with rationale. Do not present it as a user choice.
Bare-metal (super-loop or interrupt-driven) when:
- Single primary task, simple event handling
- Hard real-time loop with microsecond timing (motor control, signal generation)
- RAM < 32KB — RTOS task stacks consume memory that isn't available
- Early prototype validating concept before committing to an architecture
RTOS (FreeRTOS or Zephyr) when:
- Multiple independent concurrent concerns: network, sensors, UI, power management
- Blocking I/O that would stall a super-loop (TCP/IP, BLE stack, MQTT client)
- Product will run for years and firmware will grow — RTOS provides structure before the codebase becomes unmaintainable
- Task-level watchdog monitoring and priority-based scheduling are required
Output: One sentence decision + one sentence rationale. Example: "Use FreeRTOS. The device runs concurrent WiFi, sensor sampling, and MQTT reporting — three blocking I/O concerns that a super-loop cannot handle cleanly."
Phase 3: Layer Diagram + Module Responsibilities
Output the firmware layer diagram with the specific modules for this device.
┌──────────────────────────────────────────────────┐
│ Application Layer │
│ [List specific modules: e.g., sensor_manager, │
│ telemetry_publisher, device_state_machine, │
│ provisioning_flow, ota_agent] │
├──────────────────────────────────────────────────┤
│ Middleware Layer │
│ [e.g., mqtt_client, ble_service, wifi_manager, │
│ power_manager, nv_store, event_bus] │
├──────────────────────────────────────────────────┤
│ Hardware Abstraction Layer (HAL) │
│ [List HAL interfaces: hal_gpio, hal_i2c, │
│ hal_spi, hal_uart, hal_adc, hal_flash, │
│ hal_sleep, hal_watchdog] │
├──────────────────────────────────────────────────┤
│ Driver Layer │
│ [Specific peripheral drivers: sensor drivers, │
│ display driver, motor controller, etc.] │
├──────────────────────────────────────────────────┤
│ Hardware / BSP │
│ [MCU SDK, board support package, pin map] │
└──────────────────────────────────────────────────┘
HAL rule: Nothing above the HAL line imports platform SDK headers (esp_*, stm32*, nrf_*). The HAL is the only boundary that touches hardware. This rule is what makes unit testing possible without hardware.
For each module in the Application and Middleware layers, specify:
- Responsibility: What it owns (one sentence)
- Inputs: What it consumes (events, sensor readings, commands)
- Outputs: What it produces (messages, state changes, actions)
- RTOS task or ISR context (if RTOS): priority level, stack size estimate
Phase 4: HAL Interface Definitions
For each HAL interface required by this device, define the function signatures and error contract.
Format each interface as a C header stub:
// hal_i2c.h — example
typedef en
Установить volt-firmware в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashGlobGrepWebFetchWebSearchTaskTodoWriteAskUserQuestionВложенные файлы
FAQ
Что делает скилл volt-firmware?
Produce a complete firmware architecture spec for a described device — layer diagram, module responsibilities, HAL interface definitions, key state machines, RTOS decision. Use when asked to "design firmware architecture", "plan embedded firmware", "architect an IoT device", "how should I structure this firmware", or given a device description and asked what the firmware should look like.
Как установить скилл volt-firmware?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл volt-firmware запускает скрипты?
Нет, скилл состоит только из инструкций (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