Skip to content
Back to skills

Board Review

ASecurity

This skill should be used when the user asks to "review my PCB", "check the schematic", "is this board ready to order" or "check firmware pins against the board", for a KiCad, EasyEDA or Altium board before ordering or after changes. It measures the files and reports findings by severity with evidence.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspythongoexpresscode-reviewgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 18 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add gkochievi/boulder-hardware-skills --skill board-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Board Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Board Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gkochievi-board-review/badge)](https://www.skillsdirectory.com/skills/gkochievi-board-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: board-review
description: This skill should be used when the user asks to "review my PCB", "check the schematic", "is this board ready to order" or "check firmware pins against the board", for a KiCad, EasyEDA or Altium board before ordering or after changes. It measures the files and reports findings by severity with evidence.
---

# Board review

Review a board against its requirements, the `pcb-design` rules and its own files, and report only what the files show.

## 1. Collect the inputs

Find and read what exists; ask for what is missing (schematic is the minimum):

- Requirements: supply, loads, environment, enclosure, quantity, assembly route, mains or not.
- Schematic (KiCad project, PDF or netlist) and the part table / BOM with LCSC numbers.
- PCB: KiCad project (`.kicad_pcb`), or Gerbers + drill, or PDF plots / renders.
- CPL, fab and stackup settings.
- Firmware pin map (`config.h` or equivalent).
- For generated projects: the project files (`config.py`, `netlist.py`, `parts.json`, `placement.py`) and the build logs.
- Helpers from other skills: `kicad-projects/scripts/kicad_project.py info` / `check` (inventory, missing fields, lock files, parity) and `diff` (what changed since the last reviewed revision); `parts-sourcing/scripts/bom_check.py` (stock, lifecycle and single-source risk of the BOM); `kicad-library/scripts/lib_check.py` (custom footprints against their datasheet numbers); `engineering-calculators` to recheck widths, regulators and heat.

## 2. Measure with tools, not by eye

When a KiCad project is available, use KiCad itself in the workspace (`kicad-generator/references/tooling-setup.md`) and the review scripts (`references/automated-checks.md`):

- `scripts/kicad_review.py <project dir> --kicad-cli` runs KiCad 10's ERC and DRC with schematic parity (`--exit-code-violations`, JSON reports) and its own detectors on the S-expression files: decoupling distance per IC power pin, exposed-pad thermal vias, I2C pull-ups, USB-C CC resistors, ESD near connectors, crystal load capacitors, reset and regulator capacitors, power track widths, USB pair skew, edge clearance, fiducials, BOM completeness, and three EMC checks (ground pours stitched and without islands, fast nets over gaps in the next layer's copper, a ground via next to every via of a fast net). Its findings are candidates: confirm each one in the files and the datasheet before reporting it.
- It needs no KiCad Python: KiCad's SWIG `pcbnew` module is deprecated since KiCad 9 and KiCad 7's module cannot read KiCad 10 boards. Use `scripts/kisexp.py` for custom measurements (pad positions, track widths per net, zones), shapely for distances between nets (mains spacing, hot-loop size).
- Render top and bottom (`kicad-cli pcb render` in KiCad 10, or `kicad-cli pcb export svg` and a browser screenshot) and look at them.
- For each LCSC number: open the LCSC page and compare manufacturer part, package, stock; date the check. Track datasheets in a manifest with `scripts/datasheets.py` (no distributor APIs; downloads only from a URL the user gives).
- For a critical analog or power block, export the SPICE netlist and simulate it (`circuit-simulation`).
- Compare the firmware pin map with the schematic net by net.

Cite the evidence for every finding (net, reference, coordinate, measured value, page checked).

## 3. Go through the checklist

Use `pcb-design/references/design-review-checklist.md` section by section, with the detailed reference for each area:

| Area | Reference |
|---|---|
| Stackup, return paths, decoupling, USB / RF routing, pours | `pcb-design/references/stackups-and-routing.md` |
| Currents, vias, thermal, regulators | `pcb-design/references/power-and-thermal.md` |
| Protection, mains spacing, relays, optocouplers | `pcb-design/references/protection-and-mains-safety.md` |
| MCU minimum circuit: power, reset, boot / strapping, clocks, programming pins, USB, 5 V tolerance | `microcontrollers` references for the family (`esp-family.md`, `stm32.md`, `avr-and-arduino.md`, `rp2040-rp2350.md`, `nrf52-nrf54.md`, `samd-ch32-and-others.md`); `pcb-design/references/esp32-hardware.md` for ESP32-S3 layout |
| Part values and circuits: dividers, pull-ups, MOSFET drive, flyback, op-amps, regulators, batteries, motor drivers, bus levels | `electronics-fundamentals` references |
| Displays, sensors, radios, storage, audio, RTC: levels, I2C address clashes, placement, obsolete parts | `peripherals` references |
| Fab rules, assembly, BOM / CPL | `pcb-design/references/jlcpcb-dfm-assembly.md`, `kicad-generator/references/production-files.md` |
| Parts, derating, availability | `pcb-design/references/part-selection.md` |
| Flex or single-sided boards | `pcb-design/references/flex-and-single-sided.md` |
| Known failure patterns | `kicad-generator/references/lessons-learned.md` |

For a large board, split the review by area across parallel agents with the same facts sheet (requirements, file paths, pin map), then verify each reported finding yourself before reporting it.

## 4. Report

- Findings most severe first (Blocker / Major / Minor / Note), each with location, evidence, consequence, fix and confidence, as described at the top of the checklist.
- Run every finding that cites a datasheet through `scripts/review_gate.py`: it checks the quoted text against the PDF (`pdftotext`) and quarantines findings whose quote is not there. Report quarantined findings only after fixing the evidence.
- A short list of what was checked and found correct.
- What could not be checked and why (no PCB file, page unavailable, needs a measurement or a real part).
- A verdict: ready to order, ready after the listed fixes, or not ready.

When the Engineering plugin is installed, use `/engineering:code-review` for the firmware part and `/engineering:deploy-checklist` for the order itself. Fix findings only after the user agrees, unless they asked for fixes; then rebuild, re-run the checks and report what changed.

## References and scripts

| File | Use for |
|---|---|
| `references/automated-checks.md` | what each detector checks and where its threshold comes from, false positives and suppressions, the evidence gate, kicad-cli 10 ERC / DRC locally and in CI |
| `scripts/kicad_review.py` | automated candidate findings plus KiCad 10 ERC / DRC (`--kicad-cli`), JSON output, thresholds in `boulder.toml [board_review]` |
| `scripts/corpus_run.py` | run `kicad_review.py` over a list of public KiCad projects at pinned commits and report crashes, run times and how often each rule fires (`examples/corpus/corpus.txt`: 24 projects, 72 boards read without a crash in November 2026) |
| `scripts/review_gate.py` | verify datasheet quotes in findings against the PDFs; verified / quarantined / unverifiable |
| `scripts/datasheets.py` | datasheet manifest: import parts from a schematic or BOM, add, verify hashes, list missing |
| `scripts/kisexp.py` | KiCad S-expression parser and board / schematic models (standard library only) |
| `examples/ci/kicad-checks.yml` | GitHub Actions job on the `kicad/kicad:10.0` image: ERC, DRC with parity, review script, Gerbers / BOM, artifacts |

## Next step

When this is done, say what comes next: fix blockers and majors in the design files and review again; then `parts-sourcing` for stock on the order day, and the order by a person.

Files in this skill

  • SKILL.md7.2 KB
  • examples/ci/kicad-checks.yml5.8 KB
  • examples/corpus/corpus.txt2.2 KB
  • references/automated-checks.md51.6 KB
  • scripts/corpus_run.py11 KB
  • scripts/datasheets.py23.3 KB
  • scripts/kisexp.py51.8 KB
  • scripts/review_gate.py19.8 KB
  • scripts/tests/conftest.py1.2 KB
  • scripts/tests/fixtures/broken/broken.kicad_pcb50.5 KB
  • scripts/tests/fixtures/broken/broken.kicad_pro673 B
  • scripts/tests/fixtures/ch32v003/1_power.kicad_sch53.5 KB
  • scripts/tests/fixtures/ch32v003/2_mcu.kicad_sch67.3 KB
  • scripts/tests/fixtures/ch32v003/CH32V003-Template.kicad_pro9.1 KB
  • scripts/tests/fixtures/ch32v003/CH32V003-Template.kicad_sch2.4 KB
  • scripts/tests/fixtures/ch32v003/CH32V003-Template.kicad_sym31.9 KB
  • scripts/tests/fixtures/ch32v003/CH32V003-Template.net38.8 KB
  • scripts/tests/fixtures/ch32v003/CH32V003-Template.pretty/C_0805_2012Metric.kicad_mod3.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.