/atopile-dev:build-and-testfrom atopile-dev
Builds, validates, and debugs atopile hardware projects. Handles build errors, part solver failures, JLCPCB part creation, and connectivity inspection.
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.
ato validate <file.ato> -- quick syntax check. Catches parse errors before a full build. No solver, no parts, no PCB. Use after editing .ato files to confirm they parse cleanly.ato build -- the main command. Runs from the project directory (wherever ato.yaml lives). Stages in order: resolve dependencies, build context, instantiate, verify design, pick parts from JLCPCB, update PCB, generate reports. A successful build means the design is electrically valid and all parts are available.ato build --open -- same as above, then launches KiCad layout editor so you can inspect/route the PCB.ato build -b <name> -- build a specific target from ato.yaml (e.g. ato build -b test). Useful when a project has multiple build targets.ato build --verbose -- runs sequentially without the live display. Better for reading error messages.ato inspect -- debug connectivity. Shows what is connected to a module at a given boundary. Use --inspect <module> --context <parent> to see connections from a specific viewpoint.ato create part -s "<search>" -- search JLCPCB and generate a component package (.ato + KiCad footprint/symbol) in parts/. Interactive: presents matches and lets you pick.Run any command with --help for full flag details.
After a successful build, outputs land in build/builds/<target>/:
| File | Contents |
|---|---|
<target>.bom.csv | Bill of materials -- designators, footprints, manufacturer, LCSC part numbers |
<target>.bom.json | Same BOM in JSON format |
<target>.variables.ato.json | All solved parameter values -- spec vs actual, whether constraints are met |
<target>.power_tree.ato.json | Power tree structure (JSON) |
power_tree.md | Power tree as Mermaid diagram |
<target>.data_interface_tree.ato.json | Data interface topology |
pinout/ | Per-component pinout JSON files |
backups/ | PCB backup snapshots |
The build/cache/ directory stores downloaded datasheets (PDFs) for picked parts.
The most common error. The JLCPCB part solver cannot find a real part matching your parameter assertions. Fix in this order:
resistance = 10kohm matches nothing (0% tolerance). Use resistance = 10kohm +/- 5% or assert resistance within 10kohm +/- 10%.package = "0201" severely limits options. Try "0402" or remove the package constraint entirely.get_hover from the LSP on the parameter to see the effective constraint.max_voltage within 100V +/- 10% on a 0402 cap, nothing exists. Relax or remove secondary constraints.build/builds/<target>/<target>.variables.ato.json to see what the solver computed for each parameter.A design rule check (assert statement) evaluated to false after part picking. The error message names the specific assertion and the values it compared.
get_hover on the parameters involved to see their solved values.Symptoms: "cannot connect X to Y", type mismatch on ~, or missing pins.
ElectricPower ~ Electrical will fail -- you need to connect to the correct sub-interface (e.g. power.hv ~ some_electrical).ato inspect --inspect <module> --context <parent> to see what is actually connected where.~ vs ~> usage. ~> is the bridge-connect operator and requires #pragma experiment("BRIDGE_CONNECT") and the module must have the can_bridge trait.get_hover or get_definition on the component to verify pin names.Symptoms: "module not found", "cannot resolve import", file path errors.
ato.yaml -- is the dependency listed? Is the path correct for type: file deps?ato dependencies sync to install/update dependencies.ato dependencies add <package-name> to add and install.type: file with a relative path from the project root.The part picker queries JLCPCB and can be slow. If it hangs:
--verbose to see which stage is stalling.--keep-picked-parts to reuse previously picked parts and skip re-solving.--frozen mode (CI) fails if the PCB needs changes. Remove --frozen locally to let it update, then commit the result..lck file before building.# ato.yaml dependency types:
dependencies:
- type: registry # From packages.atopile.io
identifier: atopile/netties
release: 0.2.0
- type: file # Local/vendored package
identifier: <namespace>/<package-name>
path: ../packages/<package-name>
| Command | What it does |
|---|---|
ato dependencies add <pkg> | Add a registry package (e.g. atopile/netties) |
ato dependencies add file://<path> | Add a local package |
ato dependencies remove <pkg> | Remove a dependency |
ato dependencies sync | Install/update all deps to match ato.yaml |
ato dependencies sync -U | Upgrade deps, ignoring pinned versions |
ato dependencies list | Show current dependencies |
Use the atopile LSP MCP tools (see the lsp skill) alongside builds:
get_diagnostics -- faster than a full build for catching syntax errors after edits.get_hover -- inspect solved parameter constraints, interface types, and member lists. Essential for debugging "no parts found" and "assertion failed".get_definition -- jump to where an interface or module is defined when you need to understand its structure.get_references -- find everywhere a symbol is used when tracing connectivity issues.| Flag | Use case |
|---|---|
--verbose / -v | See full sequential output instead of live display |
--open | Launch KiCad after build |
--frozen | CI mode -- fail if PCB would change |
--keep-picked-parts | Reuse previously picked parts |
--keep-net-names | Preserve net names from PCB |
--keep-designators | Preserve designators from PCB |
--all | Build all projects found recursively |
-j N | Set max concurrent builds (default: 14) |
What 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./board-designUse when designing a new board or modifying board-level architecture in atopile. Triggers on new board creation, connector wiring, power rail routing, MCU peripheral assignment, or composing packages into a board./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