Skip to the content
2 layers100 × 76 mmEmc flyback, the printed circuit board in 3D

AI agent skill for designing and reviewing power-electronics PCBs, with a human review gate after every step

Size
100 × 76 mm
Copper layers
2
Thickness
1.6 mm
Parts
90
Nets
40
Pads
218
Tracks, vias
359, 155
Pours
11
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
14 Oct 2026
Updated
19 Oct 2026

Overview

Emc flyback is an open-source printed circuit board by ChengminLi, from the ChengminLi/AI-PCB-layout repository on GitHub, published under the CC-BY-4.0 licence. It is a 2-layer board of 100 × 76 mm with 90 parts on 40 nets, routed with 359 tracks and 155 vias.

It is built around the UC3845B, L78L12ACUTR-CN and LTV-817S, with the TL431AIDBZR, CC0603KRX7R9BB104 and CC1206KKX7RCBB103 among its other parts. Its parts include 24 capacitors, 20 resistors, 6 diodes, 5 connectors and 4 ICs.

Main components

12

README

README.md

AI PCB Layout

License: CC BY 4.0 A gift for hardware engineer.

An AI agent skill for designing, reviewing, and improving power-electronics PCBs. This skill does not produce a PCB at the first try, instead it provides a way of how to collobrate with the AI agents to boost the productivity of PCB layout. I expect that the user has at least midlevel hardware experience, thus can provide engineering judgement to review the results.

The skill teaches an AI coding agent (Cursor, Claude Code, Codex, or any agent that supports SKILL.md skills) to work like a careful power-electronics layout engineer: it traces commutation and gate loops from the switching states, derives clearance and copper limits from standards and design currents, and stops for your approval after every step, so you stay in control of every design decision.

Note: The skill helps you reach a well-reasoned design and tells you which evidence is still missing. It does not certify safety or EMC compliance. Measurements and the applicable standards remain the final authority.

What it covers

  • Electrical net table: worst-case peak voltage, dv/dt, RMS current, and di/dt for each key node and current path, taken from simulation or calculation, and turned into layout constraints
  • Switching loops: commutation cells, gate charge and discharge loops, Kelvin connections, and common-mode paths, derived per switching transition
  • Insulation: clearance, creepage, and solid insulation derived from the applicable standard and its inputs, never copied from example values
  • Copper capability: conductor and via sizing from worst-case RMS current and permitted temperature rise
  • Placement and routing: functional block floorplans, routability checks, and a routing plan you approve before any copper is drawn
  • Verification: DRC, insulation geometry, parasitic extraction, re-simulation, and thermal checks, each recorded with its evidence type (CAD check, estimate, simulation, or measurement)
  • Delivery: fabrication and assembly outputs, and a BOM with verified datasheet and order links

It works with any topology, device technology (Si, IGBT, SiC, GaN), and CAD tool. KiCad 9 is covered in the most detail; concept mappings are included for Altium Designer, Allegro/OrCAD, Xpedition/PADS, and Fusion.

How it works

The agent works in nine steps. After each step it delivers a short report and waits for you to reply approve, approve with changes, redo, or stop.

mermaid
flowchart TD
    S1["1. Requirements and inputs"] -- gate --> S2["2. Architecture and limits"]
    S2 -- gate --> S3["3. Circuit and models<br/>(end-to-end only)"]
    S3 -- gate --> S4["4. Schematic, footprints, and 3D"]
    S4 -- gate --> S5["5. Design rules and stack-up"]
    S5 -- gate --> S6["6. Placement"]
    S6 -- gate --> S7["7. Routing<br/>(plan first, then block by block)"]
    S7 -- gate --> S8["8. Verification and optimization"]
    S8 -- gate --> S9["9. Delivery"]

You don't always need all nine steps. In step 1 you agree on a scope:

ScopeWhat happens
Review an existing designReads your files and reports prioritized findings. No files are changed.
Small revision (label, footprint swap, local reroute)Proposes the change for approval, then edits and rechecks only what it affects.
Create or revise a layout for an approved circuitFootprints, rules, placement, routing, verification, and delivery.
End-to-end designAll nine steps, from requirements to fabrication files.

For routing you choose who draws the copper: the agent routes everything, you route and the agent verifies, or a hybrid where the agent routes the critical nets and the rest is autorouted.

Quick start

1. Install the skill

Copy the power-pcb-design folder into your agent's skills folder:

AgentSkills folder
Cursor (all projects)~/.cursor/skills/
Cursor (one project)<your-project>/.cursor/skills/
Claude Code~/.claude/skills/
Codex~/.codex/skills/

On Windows (PowerShell), for Cursor:

powershell
git clone https://github.com/ChengminLi/AI-PCB-layout.git
Copy-Item -Recurse AI-PCB-layout\power-pcb-design "$env:USERPROFILE\.cursor\skills\"

On macOS or Linux, for Cursor:

bash
git clone https://github.com/ChengminLi/AI-PCB-layout.git
mkdir -p ~/.cursor/skills && cp -r AI-PCB-layout/power-pcb-design ~/.cursor/skills/

No Git? Click Code → Download ZIP on this page and copy the power-pcb-design folder manually. Restart your agent or open a new chat so it picks up the skill.

2. Ask your agent

Open your PCB project folder in the agent and describe what you want. For example:

  • "Review the layout of my 48 V to 12 V synchronous buck in KiCad 9. Don't change any files."
  • "Improve the gate loop of Q1 and Q2 on my SiC half-bridge board."
  • "Design a 2-layer 24 V to 5 V, 3 A synchronous buck end to end in KiCad 9."

The agent will start with step 1: it inspects your files, asks only for the information that changes decisions, and proposes a scope and step plan for your approval.

Repository layout

text
AI-PCB-layout/
├── power-pcb-design/        The skill
│   ├── SKILL.md             Workflow, review gates, and working rules
│   └── references/          Detailed guidance, read by the agent step by step
├── examples/                Real design examples made with the skill
└── CONTRIBUTING.md          How to add examples or improve the skill

The reference files cover the electrical net table, topologies, devices, regimes and standards, CAD and tools, electrical layout, insulation and copper, analysis and measurement, implementation and delivery, and behavioral evaluation.

Examples

See examples/ for complete boards with their design files, reports, and results.

EMC demonstration flyback, 3D view

EMC demonstration flyback: a 24 V to 12 V / 1 A isolated flyback for EMC lectures, with jumper "knobs" that switch filters, gate resistance, snubber, and heatsink potential. KiCad project, LTspice simulations, 39-page design report, and fabrication files.

Contributing

Design examples, bug reports, and improvements to the skill are welcome. See CONTRIBUTING.md.

License

This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). You may share and adapt it, including for commercial use, as long as you give credit, link to the license, and indicate if you made changes. See LICENSE for the full text.

Suggested credit: "power-pcb-design skill by Chengmin Li, Xiao Yang, https://github.com/ChengminLi/AI-PCB-layout, licensed under CC BY 4.0."

Parts

90
QtyValueFootprintReferences
410kResistor_SMD:R_0603_1608MetricR1, R8, R16, R19
4M3MountingHole:MountingHole_3.2mm_M3MH1, MH2, MH3, MH4
3100nCapacitor_SMD:C_0603_1608MetricC7, C9, C11
310n 1kVCapacitor_SMD:C_1206_3216MetricC2, C3, C24
31kResistor_SMD:R_0603_1608MetricR3, R17, R18
34.7k 1WResistor_SMD:R_2512_6332MetricR9, R10, R20
3SS510CDiode_SMD:D_SMCD1, D3, D7
21n 2kVCapacitor_SMD:C_1206_3216MetricC14, C23
222u 25VCapacitor_SMD:C_1210_3225MetricC20, C21
24.7u 50VCapacitor_SMD:C_1210_3225MetricC5, C6
2470u 25VCapacitor_SMD:CP_Elec_10x10C18, C19
2PGNDTestPoint:TestPoint_Keystone_5000-5004_MiniaturePGND1, PGND2
10.15R 2512Resistor_SMD:R_2512_6332MetricR4
1100RResistor_SMD:R_0805_2012MetricR7
1100p 2kVCapacitor_SMD:C_1206_3216MetricC17
1100p 2kV C0GCapacitor_SMD:C_1206_3216MetricC16
1100u 50VCapacitor_SMD:CP_Elec_10x10C4
110RResistor_SMD:R_1206_3216MetricR12
110u 25VCapacitor_SMD:C_0805_2012MetricC8
110uH 3.3AInductor_SMD:L_Bourns-SRN8040_8x8.15mmL2
11k 1206Resistor_SMD:R_1206_3216MetricR13
11nCapacitor_SMD:C_0603_1608MetricC12
11n C0GCapacitor_SMD:C_0603_1608MetricC10
11u 50VCapacitor_SMD:C_1206_3216MetricC1
12.2mH WE-CMBEMC_Demo:L_CommonMode_Wuerth_WE-CMB-S_744822222L1
1220pCapacitor_SMD:C_0603_1608MetricC13
122RResistor_SMD:R_0805_2012MetricR6
122n 100VCapacitor_SMD:C_0805_2012MetricC15
12A/30V PTCFuse:Fuse_1812_4532MetricF1
139kResistor_SMD:R_0603_1608MetricR15
14.7RResistor_SMD:R_0805_2012MetricR5
14.7kResistor_SMD:R_0603_1608MetricR14
147RResistor_SMD:R_0805_2012MetricR11
147nCapacitor_SMD:C_0603_1608MetricC22
15.6kResistor_SMD:R_0603_1608MetricR2
1750311591EMC_Demo:Wurth_750311591_EFD25T1
1CHASSISTestPoint:TestPoint_Keystone_5000-5004_MiniatureCHAS
1CHASSISEMC_Demo:Jack_4mm_RA_Cliff_FCR7350J5
1CM bypass +Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalCM1
1CM bypass -Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalCM2
1CSRAWTestPoint:TestPoint_Keystone_5000-5004_MiniatureCS
1Case selectConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalCASE
1Case_UChannel_revDEMC_Demo:Case_UChannel_revDMECH1
1Cover_PMMA_revDEMC_Demo:Cover_PMMA_revDMECH2
1DM bypassConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalDM
1ES2DDiode_SMD:D_SMAD2
1GATETestPoint:TestPoint_Keystone_5000-5004_MiniatureGATE
1GREENLED_SMD:LED_0805_2012MetricD6
1HSTestPoint:TestPoint_Keystone_5000-5004_MiniatureHS
1IRF520NPBFEMC_Demo:TO-220-3_BottomMount_CaseHeatsinkQ1
1L78L12ACUTRPackage_TO_SOT_SMD:SOT-89-3U2
1LTV-817SPackage_DIP:SMDIP-4_W9.53mmU4
1M3 CASEMountingHole:MountingHole_3.2mm_M3_Pad_ViaMH5
1Pri-sec Y-capConnector_PinHeader_2.54mm:PinHeader_2x02_P2.54mm_VerticalYPS
1RC snubber onConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalSNUB
1REDLED_SMD:LED_0805_2012MetricD5
1Rg selectConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalRG
1SGNDTestPoint:TestPoint_Keystone_5000-5004_MiniatureSGND
1SGND to chassisConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalSGCH
1SWTestPoint:TestPoint_Keystone_5000-5004_MiniatureDRAIN
1TL431AIDBZRPackage_TO_SOT_SMD:SOT-23U3
1UC3845BPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU1
1VBUSTestPoint:TestPoint_Keystone_5000-5004_MiniatureVBUS
1VIN+ 24VEMC_Demo:Jack_4mm_RA_Cliff_FCR7350J1
1VIN- 0VEMC_Demo:Jack_4mm_RA_Cliff_FCR7350J2
1VOUTTestPoint:TestPoint_Keystone_5000-5004_MiniatureVOUT
1VOUT +12VEMC_Demo:Jack_4mm_RA_Cliff_FCR7350J3
1VOUT 0VEMC_Demo:Jack_4mm_RA_Cliff_FCR7350J4
1Y-caps to chassisConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalYCAP

Similar boards

  • 2 layers82.5 × 127 mmPower supply, the printed circuit board in 3D

    Power supply

    nunosousa/SCART-switcher

    An old school SCART switcher. Its main purpose will be to automaticaly detect and switch the video output to the active input video source.

    59 parts
  • 4 layers210.9 × 127 mmDual panel, the printed circuit board in 3D

    Dual panel

    fchorney/krakenpad-poc

    proof of concept and research into making kraken pad

    174 parts1
  • 2 layers185 × 82 mmDisplay board, the printed circuit board in 3D

    Display board

    Majklzbastlirny/NixieClock

    ESP-IDF firmware for a 6-tube multiplexed ESP32 nixie clock (WiFi/SNTP, Home Assistant, web UI, alarm, temperatures)

    112 parts1GPL-3.0
  • 2 layers95 × 55 mmWifi geiger counter, the printed circuit board in 3D

    Wifi geiger counter

    atomicra1n/wifi-geiger-counter

    A DIY Geiger counter PCB which can detect ionizing radiation and log readings over Wi-Fi. Built with an ESP32, and a HV multiplier circuit that steps up 3.7V to 400V for the GM tube.

    64 parts
  • 2 layers161.1 × 85 mmTurnoutBoss, the printed circuit board in 3D

    TurnoutBoss

    JimKueneman/TurnoutBoss

    This repository contains all the design files, manuals, firmware, production information for the LCC TurnoutBoss Node

    198 parts1
  • 2 layers105.4 × 86.5 mmGood Boy Limiter, the printed circuit board in 3D

    Good Boy Limiter

    JohnanLuca02/BYTE_Electronics

    Repository for everything concerning the electronics (PCB, Electrical schemes, BOM, ...) of the robot dog project of the AiTeam called BYTE.

    111 parts1

Questions

How big is the Emc flyback PCB?

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

What parts does the Emc flyback use?

90 parts, built around the UC3845B, L78L12ACUTR-CN, LTV-817S and TL431AIDBZR. 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 Emc flyback KiCad files?

From the ChengminLi/AI-PCB-layout repository on GitHub, at the commit this page was made from: the board is examples/emc-flyback-demo/design/emc_flyback.kicad_pcb and its schematic examples/emc-flyback-demo/design/emc_flyback.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Emc flyback design in my own project?

Its repository publishes it under the CC-BY-4.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).