Use for any PCB work in KiCad or Altium — requirements, part selection, schematic capture, placement, stackup and DRC rules, routing, simulation, silkscreen, fab outputs, or reviewing an existing board. Enforces human-readable schematics, datasheet-verified design, phase gates with independent review, and PCB view publishing.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Pcb Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sequoia-hope-pcb-design)
---
name: pcb-design
description: Use for any PCB work in KiCad or Altium — requirements, part selection, schematic capture, placement, stackup and DRC rules, routing, simulation, silkscreen, fab outputs, or reviewing an existing board. Enforces human-readable schematics, datasheet-verified design, phase gates with independent review, and PCB view publishing.
---
# PCB Design
The goal is a board a senior engineer would sign off on: a schematic that reads like a person drew it, a layout that follows the physics, every part checked against its datasheet, and a project page that shows the user what is happening at all times.
The work runs in phases. Each phase ends at a **gate**: a file in `design/gates/` containing the checklist for that phase, the evidence for each item (command output, calculation, render), and the reviewer's findings. **A phase is not done until its gate file exists and an independent reviewer has signed it off.** Saying "done" without a gate file is a failure.
## Before anything else
1. Read `LESSONS.md` in this skill folder. These are corrections the user has already had to give. Repeating one is the worst kind of mistake.
2. Find out which tool this project uses and read `tools/kicad.md` or `tools/altium.md`.
3. Check whether the project is **open source** (personal boards, KiCad, GitHub repo link on silkscreen, public PCB view) or **work/confidential** (Altium, internal part number, no public repo or page). This changes silkscreen, publishing and what may leave the machine.
4. Run `scripts/doctor.sh` once per machine; fix anything it reports before phase 2.
5. Look for an existing `design/` folder and gate files and resume from the last passed gate rather than starting over.
## Project layout
```
<project>/
design/
intent.md phase 0: what the board must do
parts/ phase 1: one audit file per part or passive group
datasheets/ the PDFs actually read
nets.csv phase 3: net classification, single source of truth for rules
brief.md phase 4: mechanical and layout brief
stackup.md phase 5: stackup, impedance, rule derivation
sim/ phase 8: one folder per simulation
decisions.md running log: decision, reasoning, alternatives, date
gates/phaseN.md gate checklists with evidence and review findings
gates/phaseN.inputs.json hashes of inputs judged when gate N passed
status.json what the project page shows: phase, activity, what you need from the user
pcbview-requests.md change requests for the viewer
hw/<board>/<variant>/ the tool project for each board variant
pcbview.toml every board and variant the viewer builds (see references/pcbview.md)
index.html the project page: status plus the embedded viewer
viewer/ generated by pcbview; never edit by hand
```
## Phases
| # | Phase | Key output | Gate | User sign-off? |
|---|-------|-----------|------|----------------|
| 0 | Design intent | `intent.md` | Every requirement has a number or an explicit "don't care" | **Yes** |
| 1 | Architecture and parts | block diagram, `parts/*.md` | Every part has a datasheet audit; every calculation done; sourcing confirmed | No |
| 2 | Schematic | schematic | ERC clean, style check passes, every part cross-checked against its audit, visual review | No |
| 3 | Net classification | `nets.csv` | Every net classified with a reason | Glance |
| 4 | Mechanical and layout brief | `brief.md` | Outline, holes, connectors, sides, layers, density, art zone decided | **Yes** |
| 5 | Stackup and rules | `stackup.md`, full rule set in tool | Every net class has rules; every rule traces to `nets.csv` or fab limits | No |
| 6 | Placement | placed board | Placement checks pass; visual review on render | Review render |
| 7 | Routing | routed board | DRC 0 errors, 0 unrouted, parity clean, every warning explained | No |
| 8 | Simulation and SI | `sim/` | Every triggered simulation has a result or a written waiver | No |
| 9 | Silkscreen and art | finished silk | Zero overlaps, all connectors labeled, board identity present | Review render |
| 10 | Release | fab outputs | Sync check, CPL rotation check, gerber review, final independent review | **Yes** |
Detail for each phase lives in `references/`. Read the reference file for a phase **when you start that phase**, not all at once.
| Phase | Read |
|-------|------|
| 0, 4 | `references/intent-and-brief.md` |
| 1 | `references/datasheet-audit.md` |
| 2 | `references/schematic-style.md` |
| 3 | `references/net-classes.md` |
| 5 | `references/stackup-and-rules.md` |
| 6 | `references/placement.md` (floorplan with Circuit Composer's `ccomp floorplan`) |
| 7 | `references/routing.md` |
| 8 | `references/simulation.md` |
| 9 | `references/silkscreen-and-art.md` |
| 10 | `references/sync-and-release.md` |
| every gate | `references/review-protocol.md`, `references/pcbview.md` |
| domain | `domains/motor-drive.md`, `domains/io-protection.md`, `domains/high-speed.md` — load only when the board has that kind of circuit |
## At every gate
1. Run the checks for the phase. Paste the actual output into the gate file. Never write "passed" for a check you did not run.
2. Export renders (schematic PDF, per-layer copper, top/bottom with silk, 3D) for anything visual: `scripts/render.py <hw dir> design/renders`. Look at them yourself before the reviewer does.
3. Spawn an independent reviewer (see "Model routing" below) with only the artifacts and the checklist.
4. Fix findings, or dispute them in `decisions.md` with reasoning. Re-review if anything significant changed.
5. When the gate passes (after user sign-off on sign-off gates), record the inputs it judged: `python3 .claude/skills/pcb-design/scripts/gate_inputs.py record N`. This writes `design/gates/phaseN.inputs.json` beside `phaseN.md` so Boardroom and `gate_inputs.py check` automatically detect when any input changes later.
6. Update `design/status.json` and regenerate the viewer (`scripts/view.sh build pcbview.toml`) so the user can see the new state from their phone.
7. If the phase needs user sign-off, stop and say exactly what you need them to decide.
### Gate inputs
`scripts/gate_inputs.py` hashes these inputs per gate (board paths come from active `[[boards]]` entries in `pcbview.toml`, falling back to `hw/<board>/<variant>/`; links come from `design/links.toml` and `.boardroom/links/<id>/board-shape.json`; own interfaces come from `interface/<board>/board-shape.json`):
| Gate | Judged inputs |
|------|---------------|
| 0 | `design/intent.md` |
| 1 | `design/intent.md`, `design/architecture.md` (if present), `design/datasheets/sources.csv` (if present), `design/parts/*` |
| 2 | `design/parts/*`, board `.kicad_sch` files |
| 3 | board `.kicad_sch` files, `design/nets.csv` |
| 4 | `design/brief.md` (if present), board `.kicad_pcb` outline (`Edge.Cuts` items only), `links`, `own_interface` |
| 5 | `design/stackup.md` (if present), `design/nets.csv` (if present), board `.kicad_pro` and `.kicad_dru` |
| 6 | `design/brief.md` (if present), board `.kicad_sch` files, board `.kicad_pcb` placement (each footprint's library id, reference, position and side), `links`, `own_interface` |
| 7 | `design/nets.csv` (if present), board `.kicad_sch` files, board `.kicad_pro` and `.kicad_dru`, board `.kicad_pcb` copper (placement plus tracks, arcs, vias, zones without their fill, and copper graphics) |
| 8 | `design/stackup.md` (if present), `design/nets.csv` (if present), `design/sim/**`, board `.kicad_pcb` copper |
| 9 | `design/brief.md` (if present), board `.kicad_pro`, board `.kicad_pcb` (whole file) |
| 10 | `design/intent.md`, `design/nets.csv`, `design/stackup.md`, `design/bringup.md` (each if present), board `.kicad_sch`, `.kicad_pro`, `.kicad_dru`, `.kicad_pcb` (whole file), `hw/<board>/<variant>/fab/**`, `links`, `own_interface` |
Later phases edit the same `.kicad_pcb`, so each gate hashes only the part of the board it judged: routing doesn't stale placement, and silkscreen doesn't stale routing. `design/checks.toml` isn't an input, because later phases add their own sections to it.
## Iterating
Going backward is normal. When an upstream artifact changes (a part swap, a new net, a moved connector), Boardroom and `python3 .claude/skills/pcb-design/scripts/gate_inputs.py check` mark the affected gate and every later passed gate stale automatically; re-run those gates and re-record their inputs with `gate_inputs.py record N` once they pass again. Never patch downstream to hide an upstream change.
Experiments get their own **variant**: a new folder under `hw/<board>/`, a `[[boards]]` entry in `pcbview.toml` naming its parent and what changed, and its own gates from the point it diverged. Never overwrite a variant the user has looked at.
## Hard rules
- **Schematic is the only source of truth** for values, footprints, MPNs and supplier part numbers. Never edit these in the PCB. Change the schematic, push to the PCB, run the sync check.
- **No part without its datasheet opened.** If a datasheet can't be fetched, stop and ask the user to attach it. Never fill in a part's requirements from memory.
- **No programmatic-looking schematics.** No grids of symbols, no global labels standing in for wires within a sheet, no blocks of passives detached from what they serve. See `references/schematic-style.md`.
- **No passives in a row.** Every passive sits with the part it serves. See `references/placement.md`.
- **Don't hand-route long traces by coordinates.** Power goes in pours and planes, critical nets are kept short by placement, and everything else goes to the autorouter with full net-class rules.
- **Via counts come from calculation**, never a single via on a net whose current needs more.
- **Never suppress or waive a DRC/ERC error silently.** Every waiver goes in `decisions.md` with a reason.
- **Zero silkscreen overlaps.** Fix colliding footprint silk with a board-local footprint edit.
- **Never edit pcbview inside a project** (`vendor/pcbview` is a pinned submodule). File a change request instead (see `references/pcbview.md`).
- **Log every non-obvious decision** in `decisions.md` as it happens, not afterward.
## Model routing
Use the main session model (e.g. Opus) for generation: writing files, running tools, scripts, bulk edits.
Use a stronger model (e.g. Fable) as a **fresh-context subagent** for judgment:
- datasheet cross-check: independently re-read the datasheet and recompute every calculation
- schematic visual review: does this read like a human drew it?
- placement and silkscreen review on renders
- SI/EMC judgment: what could couple into what, and what needs simulating
- final release review
The reviewer gets the artifacts, the relevant reference checklist and nothing else: not the conversation, not the author's reasoning. It returns findings ranked by severity. See `references/review-protocol.md` for prompts.
## When the user corrects you
Add the correction to `LESSONS.md` as a concrete rule (what was wrong, what to do instead) in the same turn. The skill should get better every time it is corrected.