# /pcb: Edit and review KiCad boards with checks at every step

Source: https://trendhub.net/skills/earthtojake-text-to-cad/pcb
Skill folder: https://github.com/earthtojake/text-to-cad/tree/main/skills/pcb
Pack: text-to-cad (https://trendhub.net/skills/earthtojake-text-to-cad)
Works with: macOS and Linux (all detected agent apps), Windows PowerShell (all detected agent apps)

This skill treats native KiCad schematic and board files as the source and changes them through KiCad's IPC API in edit blocks that save only when something changed. The agent starts from the schematic and ERC, places and routes in stages, runs DRC after each change and, before ordering, reviews the board against a named fab's published limits.

## When to use it

- You have a KiCad project and want an agent to adjust placement, track widths or copper pours.
- A board is nearly done and you want a pre-order review for a fab such as JLCPCB or PCBWay.
- You need Gerbers, drill, placement and BOM files or a STEP of the board for an enclosure.

## How it works

1. **Inspect first**: Reads the saved board in a script and records parts, nets, outline, dimensions and constraints before changing anything.
2. **Write idempotent edits**: Sets absolute positions, widths and nets inside an edit block, so running the script twice ends in the same state.
3. **Check each change**: Runs ERC on schematic edits, DRC on board edits, and placement or copper snapshots, fixing causes rather than relaxing rules.
4. **Review before ordering**: Gathers DRC results, measured facts such as decoupling distance, and a checklist, marking each item pass, fail, review or unverified with its source.
5. **Export what was asked**: Writes only the requested fabrication files from the checked revision, and blocks them on ERC or DRC errors unless you say to proceed.

## What it steers the agent away from

- Regenerating an existing project from a partial description.
- Treating a clean DRC as proof that the circuit or the fab's limits are satisfied.
- Ordering boards on the user's behalf.

## What it can touch

Edits .kicad_pcb and .kicad_sch files, runs a pinned kicad-cli, downloads a KiCad extra of about 100 MB on first use, and writes export files.

## Pairs well with

- `/cad`

## Questions

### Will saved boards still open in my KiCad?

Edits are saved in the format of the bundled nightly KiCad, which a stable KiCad app refuses; the skill notes a kicad-cli downgrade command for this.

### Does it use an autorouter?

It routes critical nets by hand and steers KiCad's router through the rest with a given plan, never a third-party autorouter.
