Skip to the content
2 layers100 × 84 mmFpga audio, the printed circuit board in 3D

Container-based toolkit for circuit design: datasheets, SPICE simulation and KiCad review

Size
100 × 84 mm
Copper layers
2
Thickness
1.6 mm
Parts
40
Nets
54
Pads
163
Tracks, vias
810, 77
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
27 Jul 2026
Updated
2 Nov 2026

Overview

Fpga audio is an open-source printed circuit board by sabas0ba, from the sabas0ba/kicad_skills repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 100 × 84 mm with 40 parts on 54 nets, routed with 810 tracks and 77 vias.

It is built around the PCM5102APW and SMAJ5.0A. Its parts include 17 capacitors, 6 resistors, 4 ICs, 3 connectors and 1 diode. It belongs with the audio and music and fPGA and programmable logic boards and the FPGA and CPLD boards of this library.

Main components

2

README

README.md

kicad_skills — a containerised circuit-design toolkit

CI pins KiCad 10.0.4 | 9.0.9 Python 3.13 License

eda is a command-line toolkit for circuit design work: reading datasheets, simulating analog circuits with ngspice, reviewing KiCad schematics and PCB artwork, and producing the fabrication package.

Everything runs inside a container. KiCad, ngspice and the Python dependencies are never installed on the host — the only host requirements are docker and bash. The KiCad release is a build argument, so it can be pinned per project.

It is an ordinary CLI that prints JSON and exits non-zero on errors, so it works the same from a terminal, a Makefile, a CI job, or a coding assistant. The repository also ships usage guides for each area — plain Markdown, worth reading on their own, and installable into whatever layout your assistant expects.

bash
./bin/eda.sh doctor                                   # builds the image on first use
./bin/eda.sh gate        hardware/ --policy ai-generated --text   # pass or fail, and why
./bin/eda.sh report      hardware/ -o build/report    # everything, on one page
./bin/eda.sh sch review  hardware/ --text
./bin/eda.sh pcb review  hardware/ --text
./bin/eda.sh sim run     sim/filter.cir -o sim/out
./bin/eda.sh datasheet parse docs/datasheets/lm321.pdf -o /tmp/ds

Install

Into an existing board project, as a submodule

bash
cd ~/projects/my-board
git submodule add https://github.com/sabas0ba/kicad_skills tools/kicad_skills
./tools/kicad_skills/bin/install-skills.sh

That drops a one-line bin/eda.sh shim so the ./bin/eda.sh … commands work verbatim from your project root and links the usage guides into the standard layouts discovered by Codex, compatible assistants, and Claude Code:

text
my-board/
├── bin/eda.sh                                    shim -> tools/kicad_skills/bin/eda.sh
├── .agents/skills/kicad-pcb-review/SKILL.md ->   ../../../tools/kicad_skills/docs/guides/kicad-pcb-review.md
├── .claude/skills/kicad-pcb-review/SKILL.md ->   ../../../tools/kicad_skills/docs/guides/kicad-pcb-review.md
├── hardware/my-board.kicad_pro
└── tools/kicad_skills/                           the submodule

Commit bin/eda.sh so everyone who clones the project gets it. Upgrading is git submodule update --remote — the symlinks follow, with no re-install. The generated skill layouts are outside the submodule, so add .agents/skills/ and .claude/skills/ to the parent project's .gitignore unless the project chooses to track those adapters.

FlagEffect
--no-guidesjust the CLI shim, nothing else
--dest DIRanother tool's directory (e.g. --dest .cursor/rules)
--copyvendor the guides instead of symlinking (Windows checkouts)
--force / --uninstallreplace what is already there / reverse the install

The guides themselves need no install — they are Markdown in tools/kicad_skills/docs/guides/, readable as they are.

Then, from your project root:

bash
./bin/eda.sh doctor                       # builds the image on first use (~5 min)
./bin/eda.sh report hardware/ -o build/report

Or standalone

No install step is needed to try it — clone and run:

bash
git clone https://github.com/sabas0ba/kicad_skills && cd kicad_skills
./bin/eda.sh doctor            # {"kicad_cli": "10.0.4", "ngspice": "...", "ok": true}
./bin/eda.sh report ~/projects/my-board/hardware -o /tmp/report

bin/eda.sh mounts the git repository root that contains the current directory at /work, runs as your uid/gid (no root-owned files), and gives the container no network. To work on the toolkit itself, see AGENTS.md.

If you drive this clone with Codex, another Agent Skills-compatible assistant, or Claude Code, make skills mirrors the guides into the layouts they discover. Those directories are generated and git-ignored — the guides live in docs/guides/.

What it does

mermaid
flowchart LR
    PDF[datasheet PDF] --> DS[eda datasheet]
    DS -->|part values| SIM[eda sim]
    SIM -->|verified circuit| SCH[eda sch review]
    SCH -->|netlist + ERC| PCB[eda pcb review]
    SCH --> GATE[eda gate]
    PCB --> GATE
    GATE -->|pass| FAB[eda pcb fab]
    SCH --> REP[eda report]
    PCB --> REP
    SIM --> REP
    REP --> HTML[report.html + PNG + PDF + GLB]
AreaWhat it doesOne commandGuide
DatasheetsText, parameter tables, embedded figures and rendered page images from a PDFeda datasheet parse lm321.pdf -o out/guide
Simulationngspice op/dc/ac/tran/noise, THD, Monte Carlo tolerance analysis, temperature sweeps — with measurements and plotseda sim run filter.cir -o out/guide
Schematic reviewComponents, nets and hierarchy from .kicad_sch; ERC plus decoupling / floating-input / annotation / pull-up checks, drawing readability (grid, junctions, overlap, page) and part specification (ratings, derating, part numbers)eda sch review hardware/ --textguide
Board reviewDRC, schematic parity, track widths, drills, exact board-edge clearance, ground pour, silkscreen over pads, placement grid and rotation, track stubs and acute corners, decoupling vias; current capacity, resistance and impedance from the stackup — closed forms, or a 2D field solve with --solve; a steady-state temperature map and heating curve for stated dissipations (pcb thermal); near- and far-end crosstalk of the coupled runs from solved line matrices (pcb crosstalk); layer plots and 3D renderseda pcb review hardware/ --textguide
Design gateOne pass/fail verdict over ERC, DRC and both reviews against a stated policy; readability, layout-practice and part-specification rules; waivers that must carry a reasoneda gate hardware/ --policy ai-generatedguide
FabricationGerbers, Excellon drill, pick-and-place, BOM, STEP/IPC-2581, zipped with a manifesteda pcb fab hardware/ -o fab/guide
The containerBuild, pin, verify and troubleshoot the toolchaineda doctorguide

Examples

Review a board and see why — findings are structured, so they can be filtered, counted and gated on in CI; --text is the human digest.

console
$ ./bin/eda.sh pcb review hardware/ --text
## summary: error=1, warning=3, info=4

## findings
  ERROR   board.copper_outside_outline: 46 copper item(s) lie outside the board outline
  WARNING board.edge_clearance: 2 copper item(s) within 0.3 mm of the board outline
  WARNING layout.decoupling_distance [U3.14 / +3V3]: C12 is 8.4 mm away
  INFO    board.size: board outline is 63.5 x 40.6 mm

Exit code is 2 when a review found errors, so eda pcb review hardware/ is also a CI gate; -o report.json keeps the structured version.

Hold a generated design to a standard — a review lists what is wrong; a gate says whether that is acceptable, against a policy the project committed to.

console
$ ./bin/eda.sh gate hardware/ --policy ai-generated --text
# gate FAIL: hardware/ against policy 'ai-generated'

## after the policy: error=11, warning=0, info=2
  over the limit: 11 error(s), 0 allowed

## blocking
  ERROR   schematic/readability.off_grid_pin: 12 pin(s) are off the 1.27 mm grid -
          wires that meet them look connected and are not (reported as warning)
  ERROR   schematic/spec.voltage_derating [/:C7]: C7 is rated 6.3 V and sits on a 12 V rail
  ERROR   board/silk.over_pad: 4 silkscreen item(s) print across a pad (reported as warning)

## waived
  drc.lib_footprint_mismatch: our footprints are project-local copies

None of that is something ERC or DRC has an opinion about, which is exactly why a design can be ERC-clean, DRC-clean and still be one no engineer would sign. (reported as warning) is the policy at work — and a waiver without a stated reason is refused, so nothing is passed over quietly.

eda gate --list-rules prints the whole contract: every rule, the exact condition that makes it fire, the threshold that tunes it and its default, and the policies under which it blocks. It is assembled from the rule modules, and tests/test_rule_spec.py reads their source, so a rule the catalogue does not describe — or an entry no rule produces — fails the build. See the design gate guide for the evaluation rules and the exit codes.

Simulate before committing to a part value — the −3 dB corner, the phase margin and the tolerance spread come back as numbers, not a picture to squint at.

console
$ ./bin/eda.sh sim montecarlo sim/rc.cir -o sim/mc \
    --vary R1=1% --vary C1=10% --metric 'ac.v(out).f_minus_3db_hz' --trials 200
{"metric": "ac.v(out).f_minus_3db_hz", "nominal_metric": 997.7,
 "statistics": {"samples": 200, "mean": 1001.1, "stdev": 35.5,
                "p05": 940.1, "median": 1000.7, "p95": 1064.0, "spread_pct": 20.4},
 "sensitivity": {"explained_pct": 99.7, "parameters": [
     {"parameter": "C1", "contribution_pct": 99.3, "elasticity": -0.99},
     {"parameter": "R1", "contribution_pct":  0.7, "elasticity": -0.96}]},
 "failures": [], "histogram": "sim/mc/histogram.png", "csv": "sim/mc/trials.csv"}

The 10 % capacitor is the entire spread; the 1 % resistor is noise. That is the line item worth changing, and it came out of the trials that were already run.

Read a datasheet without opening a viewer — page images for the curves, tables for the numbers.

console
$ ./bin/eda.sh datasheet find docs/lm321.pdf "supply current"
[{"page": 3, "line": "Supply Current  IS  VS = 5 V, no load  0.43  0.75  mA"}]
$ ./bin/eda.sh datasheet pages docs/lm321.pdf -o out/ --pages 7 --dpi 200

One command for the whole project — see the worked example below.

bash
./bin/eda.sh report hardware/ -o build/report --glb
open build/report/report.html

What the gate is worth, in pictures

Five complete designs are generated by tools/make_examples.py and shipped twice: once as the generator first left them, and once after eda gate had been run and every finding answered. Same circuit, same nets, same parts — the difference is entirely what the gate had an opinion about.

A schematic. The Pico carrier. On the left: an empty title block, not one note, and eighteen power symbols pointing in four different directions. On the right: a title that says what the board is, fifteen notes recording why the values are what they are, and every power symbol upright:

as generatedafter the gate
Pico carrier schematic, as generatedPico carrier schematic, gated

A board. The 12 V → 5 V buck. On the left: no ground pour, not one via, every track 0.25 mm whatever it carries, and nothing on the silkscreen at all. On the right: the plane poured on both faces and stitched with 79 vias, power copper at 1.0 mm and tapered into every land, screw holes that clear an M3 washer, and a regulator tab relieved so a reflow oven can still solder it:

as generatedafter the gate
buck-5v front copper, as generatedbuck-5v front copper, gated

And the motor driver, which went from one track width for the whole board to fifteen — motor outputs, logic and the charge pump each sized for what they carry — and gained the plane its H-bridge returns through:

as generatedafter the gate
motor driver front copper, as generatedmotor driver front copper, gated

The scoreboard, under each project's own policy:

designas generatedafter the gate
buck-5vFAIL — 45 blockingPASS
motor-driverFAIL — 43 blockingPASS
pico-carrierFAIL — 50 blockingPASS
opamp-filterFAIL — 33 blockingPASS
fpga-audioFAIL — 34 blockingPASS

All five gated boards are clean under KiCad's own DRC on both versions in the matrix, with nothing unconnected, and every finding that remains is a waiver carrying the sentence that excuses it.

examples/ is the long version: all five designs, both faces of every board, a third column showing what the generator produces today (the reviews went into the generator, not into patches on its output), and REVIEW.md — twenty rounds of a reviewer reading the boards, and what each finding became: a rule, a fix, or a waiver with its argument.

Pinning the KiCad version

bash
KICAD_VERSION=10.0.4 make build     # default, current stable
KICAD_VERSION=9.0.9  make build     # a second image for older projects
KICAD_VERSION=9.0.9 ./bin/eda.sh pcb review board.kicad_pcb

Each version produces its own image tag (eda-toolkit:<version>) so several can coexist. Tags: https://hub.docker.com/r/kicad/kicad/tags. KiCad upgrades project files in place when it opens something older than itself, so match the version to the project.

CI runs the whole suite against both 10.0.4 and 9.0.9, because "the KiCad version is configurable" is a claim that has to be backed up. It is what caught these, all of which are handled at runtime rather than pinned away:

  • pcb export pdf --scale, pcb export gerbers --check-zones, pcb drc --refill-zones and pcb export stats are KiCad 10 additions. The wrapper asks the binary what it supports (kicad_cli.supports) instead of keeping a version table, so an untested release degrades rather than crashes.
  • ngspice never initialises the imaginary half of an AC sweep's frequency column. ngspice 44 leaves a denormal there and taking the magnitude looks fine; the ngspice 39 that ships with KiCad 9 left -1.8e199, and every frequency measurement became nonsense. Only the real part is defined.

Adding a version is a digest in docker/kicad-digests.txt plus an entry in the workflow matrix — tests/test_pinning.py fails if the two disagree.

Worked example: a real board

Everything below is actual output from the Open Air Max demo project that ships with KiCad (210 footprints, 4 layers, a 3-sheet hierarchical schematic) — a far better test of "does this help?" than a two-resistor fixture. One command produced all of it:

bash
./bin/eda.sh report openair-max/ -o build/report --dpi 150 --glb
text
build/report/
├── report.html          the page below, self-contained
├── report.md            same content, for a PR comment or a commit message
├── report.json          every finding, machine readable
├── bom.csv
├── schematic/           schematic.pdf + one PNG per sheet + contact sheet
└── board/               6 view plots, 4 per-layer plots, 3 renders,
                         contact-sheet.png, board.glb, the PDFs behind them

The board at a glance — 13 plots and renders tiled into one image, so "is anything on the wrong layer" is one look, not thirteen file-opens:

board contact sheet

3D, for the things no 2D plot shows — connector orientation, component collisions, which side is which. --glb additionally writes a board.glb that GitHub and every browser render interactively:

3D render

The schematic, rasterised per sheet plus a real PDF (sheet 1 of 3):

schematic sheet 1

And the verdict, abridged from report.md — note the collapsing: 199 identical drill violations are one line, not 199:

markdown
## Verdict
* schematic: 3 error, 19 warning, 4 info
* board: 8 error, 26 warning, 6 info
* 99.45 x 72.0 mm, 4 layers, 210 footprints, 156 nets, 410 vias

## Board findings
| severity | rule | where | message |
| --- | --- | --- | --- |
| error   | `drc.drill_out_of_range` | 199 locations | 199 occurrences. First: Hole size out of range (min hole 0.5080 mm; actual 0.4000 mm) |
| error   | `drc.clearance`          | 13 locations  | 13 occurrences. First: Clearance violation (clearance 0.1000 mm; actual 0.0910 mm) |
| error   | `drc.zones_intersect`    | Zone [BAT-] on F.Cu, priority 5 | Copper zones intersect (must have distinct priorities) |
| warning | `drc.parity.net_conflict`| Pad 6 of I2C3 on B.Cu | Pad net doesn't match net given by schematic (GND) |
| warning | `drc.silk_edge_clearance`| 8 locations   | 8 occurrences. First: Silkscreen clipped by board edge |

Simulation

The same "show, don't describe" applies to analog work. An AC sweep of the RC reference circuit, and 200 Monte Carlo trials of the same circuit with 1 % resistors and 10 % capacitors:

sim run (AC)sim montecarlo
AC sweepMonte Carlo
json
{"nominal_metric": 997.7,
 "statistics": {"samples": 200, "mean": 1001.1, "stdev": 35.5,
                "p05": 940.1, "median": 1000.7, "p95": 1064.0, "spread_pct": 20.4}}

The 10 % capacitor sets the spread: ±1 % on the resistor barely moves it. That is the kind of answer that changes a BOM line.

Provenance and licensing of these images: docs/examples/README.md.

Command reference

text
eda doctor                                    tool versions in the environment
eda gate         TARGET [--policy NAME|FILE] [--text] [--threshold KEY=VALUE]
                        [--collapse N] [-o verdict.json]
eda gate         --list-policies | --list-rules [--text]
eda diff         OLD NEW -o DIR [--dpi 150] [--no-images]
eda report       TARGET -o DIR [--dpi 200] [--glb] [--simulation NETLIST]
                              [--no-3d] [--no-per-layer] [--no-bom] [--title T]

eda datasheet info   PDF
eda datasheet find   PDF QUERY... [--regex]
eda datasheet text   PDF [--pages 1-5] [--layout] [--ocr]
eda datasheet tables PDF [--pages 5]
eda datasheet images PDF -o DIR [--pages]
eda datasheet pages  PDF -o DIR [--pages] [--dpi 200]
eda datasheet parse  PDF -o DIR [--renders] [--ocr]

eda sim lint     NETLIST
eda sim run      NETLIST -o DIR [--no-plots] [--timeout S]
eda sim montecarlo NETLIST -o DIR --vary R1=1% --metric ac.v(out).f_minus_3db_hz [--trials N]
eda sim temperature NETLIST -o DIR [--temperatures -40 25 85] [--metric ...]
eda sim measure  RAW [--thd SIGNAL --fundamental HZ] [--skip S]
eda sim plot     RAW -o DIR [--signals ...]
eda sim netlist  SCHEMATIC -o FILE           export a SPICE deck from KiCad

TARGET accepts a .kicad_sch/.kicad_pcb file, a .kicad_pro, or a project directory. All commands print JSON by default (the review commands also take --text for a human readable digest) and exit 2 when a review found errors.

Environment variables

VariableEffect
KICAD_VERSIONKiCad release / image tag to use (default 10.0.4)
EDA_IMAGEoverride the image name entirely
EDA_NETWORK1 gives the container network access (default: offline)
EDA_MOUNThost directory to mount at /work (default: git root or $PWD)
EDA_ENV_PASSTHROUGHextra environment variable names to forward
EDA_DOCKER_ARGSextra arguments for docker run

Using it in CI

The reviews are exit-code gates, so a board can be checked on every push the way code is. In a project that added this as a submodule:

yaml
# .github/workflows/hardware.yml
- uses: actions/checkout@... # with: submodules: true
- name: Gate the design
  run: ./bin/eda.sh gate hardware/ --policy hardware/gate.toml --text
- name: Review the board
  if: always()
  run: |
    ./bin/eda.sh sch review hardware/ --text
    ./bin/eda.sh pcb review hardware/ --text
- name: Build the report
  if: always()
  run: ./bin/eda.sh report hardware/ -o build/report
- uses: actions/upload-artifact@...
  if: always()
  with: { name: hardware-report, path: build/report }

On a pull request the more useful question is what changed. eda diff answers it against the design rather than the file: a moved component rewrites thousands of coordinates in the .kicad_pcb, and a text diff cannot tell that apart from a rerouted net.

yaml
- name: What changed
  run: |
    git worktree add /tmp/base "$GITHUB_BASE_REF"
    ./bin/eda.sh diff /tmp/base/hardware hardware/ -o build/diff
    cat build/diff/diff.md >> "$GITHUB_STEP_SUMMARY"
markdown
## Connectivity
* **VCC**: gained U3.14, lost -
## Components
* **R7**: value '10k' -> '4k7'
## Board
* moved: U3 (5.0 mm), C12 (1.2 mm)
## Artwork
* `copper-front`: 0.28% of pixels changed

Both drawings are rendered and compared too — the schematic sheets and the board plots. What only the old revision had is drawn in red, what only the new one has in green, over a faded copy of the new drawing, so a part that moved reads as red where it was and green where it is now. Where the change is a speck on an A4 sheet, a zoomed crop is written alongside the full page:

schematic: C2 moved, R1 re-valuedboard: the same R1 move
schematic diffboard diff

Exit 0 clean, 1 on a usage error, 2 when a review found errors. Loosen or tighten what counts as an error with --threshold KEY=VALUE, or post-process report.json if you want your own policy. This repository's own CI reviews its test fixture and uploads the report the same way — see ci.yml.

Nothing needs the network at run time, so the container stays offline unless you ask for EDA_NETWORK=1.

Using it with a coding assistant

The toolkit is a CLI: any assistant that can run a shell command can drive it, and the JSON output is meant to be parsed rather than screen-scraped. What makes the difference in practice is not the commands but knowing how to use them — which is what docs/guides/ is for. Those guides cover the review methodology, what each finding means, and what the tool cannot judge for you.

  • Codex and Agent Skills-compatible assistants discover .agents/skills/<name>/SKILL.md.
  • Claude Code discovers .claude/skills/<name>/SKILL.md.
  • bin/install-skills.sh creates both layouts as symlinks by default. Run it in this checkout or in a project that uses the submodule. This checkout ignores the generated adapters; a parent project must ignore or track its own copies.
  • A tool with another layout — use ./bin/install-skills.sh --dest .cursor/rules --copy; specifying --dest installs only that layout.
  • Anything that reads a repository can instead read docs/guides/ or AGENTS.md, which names the guides.
  • No assistant at all — they are ordinary Markdown, written to be read.

Contributor and agent instructions for this repository itself live in AGENTS.md (CLAUDE.md is a pointer to it, not a second copy).

eda gate is the other half of that story. An assistant that generates a design will read a page of warnings and move on unless something says which of them were allowed to survive; the gate is that statement, and its exit code is the loop condition. The design gate guide describes the generate → gate → fix loop.

eda report exists largely for this use case: an assistant working headlessly can produce one page — renders, findings, BOM, simulation plots — that a human can check at a glance instead of taking a summary on trust.

How it fits together

text
bin/eda.sh            host wrapper: docker run, uid mapping, network policy, path rewriting
bin/install-skills.sh CLI shim + renders docs/guides/ into an assistant's layout
docker/Dockerfile     kicad/kicad:<version> + ngspice + an isolated virtualenv
src/eda_toolkit/
├── cli.py                 the `eda` command
├── gate.py                policies, waivers, and the one pass/fail verdict
├── report.py              the one-command report: collect, then render md/html
├── datasheet/             PDF text, table, image and page extraction
├── spice/                 ngspice runner, raw-file parser, measurements, plots
└── kicad/                 s-expression parser, schematic/board models,
                           outline geometry, kicad-cli wrapper, review rules,
                           renderers, fabrication package
tests/                     pytest suite + fixtures + smoke test
docs/guides/               the usage guides - prose, and the source of truth
docs/examples/             committed output, so the README shows rather than tells
AGENTS.md                  contributor / agent instructions (CLAUDE.md points here)

Design notes:

  • KiCad is the source of truth where it can be: ERC, DRC, netlist export and plotting all go through kicad-cli. The hand-written parsers add what the CLI does not expose (geometry, stackup, pad positions, properties) and provide a pure-python fallback so the library, and the test-suite, still work without KiCad installed.
  • Review = rules + pictures. The rule engine produces structured findings; the renderers produce PNGs so the parts a rule cannot judge (placement, routing quality, silkscreen legibility, signal flow) can be looked at. This matters most when the work is headless: eda report exists so whoever is driving - a person on a CI artifact, or an assistant mid-task - can see the design instead of taking a JSON summary on faith.
  • Geometry is measured, not approximated. Board-edge clearance is computed against the flattened Edge.Cuts geometry, arcs and circles included, with an inside/outside test that survives cutouts and the seams where two outlines meet. A bounding box gets a round board, a notch or a mounting hole wrong in both directions.
  • Findings are typed (rule, severity, message, location, details) and every rule is a small function registered in a list — adding a check is a dozen lines plus a test.
  • The knowledge is in Markdown, not in prompts. The judgement calls that make a review useful live in docs/guides/ as prose, so they are reviewable in a diff and usable by a person, a script or any assistant. One tool's directory layout is generated from them, never the other way round.

Review quality

The rules were tuned by running them over the 18 KiCad demo projects that ship with the image (/usr/share/kicad/demos), which is a far harsher corpus than the test fixture. That pass produced three fixes:

  • KiCad's global library tables are now seeded from Python, not only by the container entrypoint. Without them every symbol reports "the current configuration does not include the library ...", which was 1965 findings of pure noise across the corpus.
  • Power symbols are recognised by KiCad's real invariant - the # reference prefix - not just by a power: library id. Older projects were reporting every GND symbol as a component with no footprint.
  • net.single_pin is graded by whether the net was named by the designer, and any rule that fires more than six times is folded into one finding with a count. On interf_u the review went from 113 warnings to 2.

Re-run it after changing a rule:

bash
docker run --rm -v "$PWD:/work" -w /work -e PYTHONPATH=/work/src \
  --entrypoint python3 eda-toolkit:10.0.4 tools/review_demos.py /tmp/out

Reproducibility

Every external input is pinned, and the pins are enforced by tests/test_pinning.py (which runs in CI):

InputPin
KiCad base imagemanifest digest, per version, in docker/kicad-digests.txt
pip / uvexact version + wheel SHA-256 (ARG PIP_*, docker/uv-bootstrap.txt)
Build backendexact version in [build-system] requires + wheel SHA-256 in docker/build-backend.txt — uv.lock cannot cover it, so the image installs it separately and builds with --no-build-isolation-package
Python packagesuv.lock - exact versions + artifact hashes for the whole tree, installed with uv sync --frozen
GitHub Actions40 character commit SHA, with the tag in a trailing comment
CI runnerubuntu-24.04, never -latest; Python 3.13.5

Keeping them current:

  • Dependabot (.github/dependabot.yml) opens weekly PRs for uv.lock and the actions.
  • make check-pins (and the manually dispatched pins.yml workflow) covers what Dependabot cannot parse: the KiCad image digest and the pip/uv bootstrap wheels. When upstream moved, the workflow pushes the update to automation/refresh-pins and links to the PR creation page in its run summary — opening the PR stays a human act. The default KiCad release is never bumped automatically.

To change a dependency, edit pyproject.toml and regenerate the lock:

bash
make lock          # uv lock
make rebuild

To use another KiCad release, add its digest to docker/kicad-digests.txt (the file documents the one-liner) and build with KICAD_VERSION=<version>. The build fails loudly if a version has no pinned digest.

Testing

bash
make test          # everything, inside the container
make test-coverage # the same, with a coverage report
make test-host     # pure-python subset on the host (needs a local venv)
make lint          # ruff
make smoke         # end-to-end: every top-level command
make skills        # mirror guides into .agents/skills and .claude/skills
make site          # render the GitHub Pages site into _site/

CI (.github/workflows/ci.yml) runs on every push and pull request:

JobWhat it proves
unitruff (lint + format) and the pure-python suite against the hash-pinned dependency set
container (KiCad 10.0.4)the full suite, coverage and the smoke test inside the freshly built image
container (KiCad 9.0.9)the same, one KiCad major behind - the toolkit really is version-portable

Both container jobs upload eda report output for the example project, so every run leaves behind a page you can look at. Nothing in CI touches the network beyond pulling the pinned base image and the locked wheels.

The suite covers the s-expression parser, schematic and board models, the outline geometry (arcs, circles, cutouts, seams), every review rule, the report renderers, the submodule installer, the ngspice raw-file parser (ASCII/binary, real/complex), the measurement maths (checked against analytically known circuits), the datasheet PDF extraction (against a generated PDF), and the CLI. Tests that need kicad-cli or ngspice are marked and skipped automatically outside the container.

Integration tests run the real tools: KiCad ERC and DRC on the example project, a deliberately introduced short to prove DRC catches it, netlist comparison between kicad-cli and the fallback extractor, layer/3D rendering, and an RC filter whose simulated −3 dB corner is compared against 1/(2πRC).

Limitations

  • Getting datasheet PDFs is out of scope - the container has no network. Save the PDF into the repository first, then parse it.
  • Embedded-image extraction only recovers raster images. Most datasheet figures are vector art — render the page instead (datasheet pages).
  • sim netlist (KiCad → SPICE) only produces a usable deck when the schematic carries Spice model fields.
  • The review rules encode common practice, not your fab's or your project's rules. Thresholds are adjustable (--threshold); the defaults are conservative low-cost-fab values.
  • OCR of scanned datasheets needs tesseract, installed only if a Debian mirror is reachable at build time (WITH_OCR=0 to skip). Everything else works without it.

Parts

40
QtyValueFootprintReferences
11100nCapacitor_SMD:C_0603_1608MetricC2, C4, C5, C6, C7, C8, C9, C10, C11, C15, C16
410kResistor_SMD:R_0603_1608MetricR1, R2, R4, R6
4M3MountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
32u2Capacitor_SMD:C_0603_1608MetricC12, C13, C14
3FiducialFiducial:Fiducial_1mm_Mask2mmFID1, FID2, FID3
2220uCapacitor_SMD:C_0603_1608MetricC1, C3
1100RResistor_SMD:R_0603_1608MetricR3
110uCapacitor_SMD:C_0603_1608MetricC17
112MHzOscillator:Oscillator_SMD_Abracon_ASE-4Pin_3.2x2.5mmX1
133RResistor_SMD:R_0603_1608MetricR5
13V3 INTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2_1x02_P5.00mm_HorizontalJ1
1500mAFuse:Fuse_1206_3216MetricF1
1AP2112K-1.2Package_TO_SOT_SMD:SOT-23-5U3
1AUDIO OUTConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ2
1PCM5102APackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU2
1SMAJ5.0ADiode_SMD:D_SMAD3
1SPI PROGConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ3
1W25Q32JVPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU4
1iCE40UP5KPackage_DFN_QFN:QFN-48-1EP_7x7mm_P0.5mm_EP3.5x3.5mmU1

More from sabas0ba/kicad_skills

5
  • 2 layers54 × 38 mmOpamp filter, the printed circuit board in 3D

    Opamp filter

    sabas0ba/kicad_skills

    Container-based toolkit for circuit design: datasheets, SPICE simulation and KiCad review

    30 parts1Apache-2.0
  • 2 layers88 × 38 mmBuck-5v, the printed circuit board in 3D

    Buck-5v

    sabas0ba/kicad_skills

    Container-based toolkit for circuit design: datasheets, SPICE simulation and KiCad review

    20 parts1Apache-2.0
  • 2 layers68 × 46 mmMotor driver, the printed circuit board in 3D

    Motor driver

    sabas0ba/kicad_skills

    Container-based toolkit for circuit design: datasheets, SPICE simulation and KiCad review

    19 parts1Apache-2.0
  • 2 layers68 × 46 mmMotor driver, the printed circuit board in 3D

    Motor driver

    sabas0ba/kicad_skills

    Container-based toolkit for circuit design: datasheets, SPICE simulation and KiCad review

    19 parts1Apache-2.0
  • 2 layers80 × 60 mmPico carrier, the printed circuit board in 3D

    Pico carrier

    sabas0ba/kicad_skills

    Container-based toolkit for circuit design: datasheets, SPICE simulation and KiCad review

    15 parts1Apache-2.0

Similar boards

  • 6 layers243.8 × 243.8 mmRaven, the printed circuit board in 3D

    Raven

    agranlund/raven

    Homemade MC68060 + DSP56303 Atari-compatible computer. Hardware, firmware, and software stack

    331 parts87
  • 2 layers54 × 60.5 mmTape, the printed circuit board in 3D

    Tape

    jrowny/mixtape2

    My second iteration of a cassette-style mp3 player

    38 parts82MIT
  • 2 layers140 × 170 mmCdi, the printed circuit board in 3D

    Cdi

    ThroatyMumbo/NESCD

    An unofficial CD drive add-on for the NES.

    28 parts78MIT
  • 2 layers232 × 134 mmType2 v2, the printed circuit board in 3D

    Type2 v2

    Alxdreee/TYPE-2

    Touch-capacitive polyphonic synthesizer powered by ESP32-S3

    18 parts68GPL-3.0
  • 2 layers55 × 100 mmESP32AY revD2, the printed circuit board in 3D

    ESP32AY revD2

    djspawnbrest/ESP32AY

    ZxPod - ESP32 based AY multiformat player

    138 parts59GPL-3.0
  • 2 layers76 × 63.5 mmPicoTracker, the printed circuit board in 3D

    PicoTracker

    xiphonics/picoTracker-pcb

    Buy the official kit at xiphonics store # Trademark Notice

    98 parts36CC0-1.0
  • 4 layers40 × 100 mmJPL.mp3, the printed circuit board in 3D

    JPL.mp3

    jpetkauskas/JPL.mp3

    Files for ESP32 based MP3 player

    72 parts33

Questions

How big is the Fpga audio PCB?

It measures 100 × 84 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Fpga audio use?

40 parts, built around the PCM5102APW and SMAJ5.0A. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Fpga audio KiCad files?

From the sabas0ba/kicad_skills repository on GitHub, at the commit this page was made from: the board is examples/fpga-audio/as-generated/fpga-audio.kicad_pcb and its schematic examples/buck-5v/as-generated/buck-5v.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Fpga audio design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).