/atopile-dev:board-designfrom atopile-dev
Guides board-level architecture in atopile: instantiating MCUs, regulators, connectors, wiring power rails, and assigning MCU peripherals.
Ships in atopile-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For atopile syntax and patterns, see the ato-language skill. For build workflow, see build-and-test. For creating new shared packages, see creating-packages.
A board is a composition: you instantiate packages (MCU, regulators, connectors, application ICs) and wire them together at the board level. The board module's body should read like a block diagram — major blocks first, then the connections between them.
<board-name>/
<board-name>.ato # Main board module
ato.yaml # Build manifest
layouts/ # KiCad layout files (created by ato build)
parts/ # Board-specific parts (from ato create part)
requires-atopile: ^0.15.7
paths:
src: ./
layout: ./layouts
builds:
<board-name>:
entry: <board-name>.ato:<BoardModule>
hide_designators: true
dependencies:
# Local packages:
- type: file
identifier: <namespace>/<package-name>
path: ../packages/<package-name>
# Registry packages:
- type: registry
identifier: atopile/<package-name>
release: <version>
#pragma experiment("BRIDGE_CONNECT")
#pragma experiment("TRAITS")
import Resistor
import Capacitor
from "<namespace>/<mcu-package>/<mcu-package>.ato" import MyMCU
from "atopile/usb-connectors/usb-connectors.ato" import USBCConn
module MyBoard:
"""One-line description of what this board does."""
# --- Major blocks ---
mcu = new MyMCU
usb = new USBCConn
# --- Power ---
# power_in ~> regulator ~> power_3v3
# power_3v3 ~ mcu.power
# --- Communication / control ---
# usb.usb2 ~ mcu.usb
# app_ic.i2c ~ mcu.i2c[0]
# --- Ground domains tied together ---
# power_hv.lv ~ power_3v3.lv
power_in ~> regulator ~> power_3v3), and connect every block's power interface to the right rail.mcu.i2c[0] for the primary on-board I2C bus, a fixed UART for debug). Document which MCU pins each peripheral consumes so you don't double-assign a pin that's already used by a peripheral.app_ic.i2c ~ mcu.i2c[0], app_ic.spi ~ mcu.spi[0]). For single control lines use a GPIO: connect .line for the signal and set .reference to the rail that defines its logic level.~> for things like current-sense modules in a power path (requires BRIDGE_CONNECT).Watch for shared peripheral pins. On most MCU packages, connecting a high-level peripheral (
mcu.i2c[0]) also consumes the underlying GPIO pins. Keep a list of which pins each peripheral uses and which remain free, and never double-assign.
Boards used in lab / test / field environments expose interfaces that need protection:
Design every board so it can be brought up and verified automatically — firmware flashed, every output exercised and confirmed without human interaction. This means every output action needs a feedback path:
Budget MCU ADC channels and GPIO for self-test. If an output can't be self-tested, document why in the module docstring.
<board-name>/ directoryato.yaml with build target and dependencies<board-name>.ato with pragmas and importsato build to verifyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mawildoer/atopile-agent-skill --plugin atopile-dev8 skills in this plugin
/ato-languageUse when writing, reading, or reviewing .ato files. Triggers on "what interface for X", "how to connect Y", choosing between interface types, parameter constraints, tolerance syntax, or atopile design patterns./build-and-testUse when building, validating, or debugging atopile projects. Triggers on build errors, "ato build", solver failures, "no parts found", package management, creating parts from JLCPCB, or debugging connectivity issues./creating-packagesUse when adding a new IC, component, or subcircuit to an atopile project. Triggers on creating atopile packages, sourcing parts, vendoring an existing package, or deciding whether to make a shared package vs. inline in a board. Also use when you see ato create part or are about to write a new .ato driver module./design-reviewUse when reviewing or completing an atopile package or board design. Triggers on design review, pre-commit check, "is this ready", quality audit, finishing a package implementation, or verifying a design before build./layout-relinkingUse when renaming or refactoring components in .ato files that have existing PCB layout placements. Triggers on "layout broken", "components at origin", "lost placement after rename", "relink layout", or any .ato refactor that changes component names or module structure./lspUse when working with .ato files and you need semantic code intelligence — hover info, diagnostics, go-to-definition, find-references, or symbol inspection. Triggers on questions like "what type is this", "what members does X have", "where is X defined", "what uses Y", checking for parse errors, or understanding atopile module/interface signatures.Other plugins' skills for the same job