Skip to content
VLab-SoftwarePublic

About

Engineer hardware with agents, from schematic review down to PCB manufacturing & firmware.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

HEA — Hardware Engineering Assistant ⚡

License: MIT skills.sh Antigravity Compatible Claude Code Compatible EasyEDA MCP JLCPCB DFM

Open-source engineering intelligence, Design for Manufacturing (DFM) rules, and pre-flight validation skills for AI agents designing electronics.


🎯 The Hardware Intelligence Gap

Large Language Models (LLMs) excel at coding, but when applied to electronic design, they treat schematics as plain text graphs (U1.Pin4 -> R1.Pin1). An LLM has no intrinsic awareness that:

  • A linear regulator dropping $12,\text{V} \rightarrow 3.3,\text{V}$ at $500,\text{mA}$ will overheat and burn without a heatsink or buck topology.
  • Pulling ESP32 GPIO12 high at power-up sets flash voltage to $1.8,\text{V}$, bricking boot for $3.3,\text{V}$ flash modules.
  • Leaving $2,\text{A}$ power rails on $0.2,\text{mm}$ traces violates IPC-2152 thermal rise standards.
  • Crossing a split ground plane with a USB $90,\Omega$ differential pair creates an unintentional loop antenna radiating EMI.

HEA (Hardware Engineering Assistant) bridges this gap. It equips autonomous AI agents with rigorous engineering methodologies, deterministic heuristics, and automated checklists, turning raw EDA tools into an Autonomous Junior Hardware Engineer.


🏗️ Architecture

 ┌──────────────────────────────────────────────────────────────────┐
 │             Hardware Engineering Assistant (HEA)                 │
 │     Engineering Heuristics • DFM Checklists • Pre-Flight Rules   │
 └────────────────────────────────┬─────────────────────────────────┘
                                  │
      ┌───────────────────────────┴───────────────────────────┐
      ▼                                                       ▼
┌──────────────────────────┐                             ┌──────────────────────────┐
│  EasyEDA Pro MCP Bridge  │                             │     KiCad MCP (Roadmap)  │
│  (Live CAD Inspection)   │                             │   (CLI & pcbnew Python)  │
└─────────────┬────────────┘                             └────────────┬─────────────┘
              │                                                       │
              └───────────────────────────┬───────────────────────────┘
                                          ▼
                      ┌───────────────────────────────────────┐
                      │    Fabrication & Assembly (JLCPCB)    │
                      │   Zero DRC Flags • Optimized BOM SMT  │
                      └───────────────────────────────────────┘

📦 Skills Catalog

Skill Name Purpose & Scope Key Checks & Heuristics
schematic-review-audit Pre-layout electrical auditing $100,\text{nF}$ IC decoupling, I2C pull-ups, floating nets, intentional NC vs bugs, TVS diode placement.
pcb-dfm-jlcpcb Manufacturing verification & SMT optimization 5/5 mil limits, via annular ring $\ge 0.13,\text{mm}$, solder mask dams, Basic vs Extended parts BOM optimization.
mcu-strapping-and-pinout Boot modes & pinout conflict defense ESP32 (GPIO0, 2, 12, 15, S3/C3/C6), STM32 (BOOT0, NRST), RP2040 (QSPI, RUN), ADC2 Wi-Fi conflicts.
power-tree-and-thermal Power sizing & thermal modeling LDO vs Buck selection ($P_D$ limits), junction temp $T_J \le 85^\circ\text{C}$, IPC-2152 trace ampacity.
high-speed-and-routing Signal integrity & ground planes $90,\Omega$ USB differential pairs, crystal oscillator guard rings, 3W rule, return path ground stitching.
rf-antenna-and-wireless RF front-end & antenna integration $50,\Omega$ CPWG lines, $\pi$/T matching networks, antenna keepout clearance, via fences ($d \le \lambda/20$), Anatel/FCC pre-compliance.
battery-bms-and-power-path Battery management & power-path Seamless dynamic power-path, Kelvin 4-wire shunt sensing, back-to-back protection FETs, NTC thermal cutoffs.
power-gan-sic-and-switched-mode Wide-Bandgap (GaN/SiC) power stages Ultra-low gate inductance ($L_G < 2,\text{nH}$), Kelvin source return, compact SW node, RC snubber dimensioning.
industrial-emc-and-isolation High-voltage isolation & surge immunity IEC 62368-1 / 60664-1 creepage/clearance, PCB milling slots, 3-stage surge cascade (GDT + MOV + TVS), RS-485 fail-safe.
schem2firmware-co-design Schematic-to-firmware autogeneration Generates Zephyr app.overlay, Linux Device Tree (.dts), ESP-IDF / STM32 pinout headers, zero I2C address collisions.
design-for-testability-dft Factory ICT & test fixture automation Single-sided bottom test points ($\varnothing 1.0,\text{mm}$), $2.54,\text{mm}$ pitch, tooling holes, pogo-pin drill coordinate export.

🧮 Deterministic Engineering Calculators (scripts/)

HEA equips agents with verified, deterministic mathematical calculators to prevent numerical hallucination:

# 1. Coplanar Waveguide with Ground (CPWG) 50Ω calculator
./scripts/calc_cpwg.py -w 0.35 -s 0.20 -H 0.21 -e 4.3

# 2. IPC-2152 PCB trace current capacity and width calculator
./scripts/calc_ampacity.py -i 2.5 -dt 10 --copper-oz 1.0

# 3. Regulator power dissipation and junction temperature (TJ) evaluator
./scripts/calc_thermal_tj.py --vin 12.0 --vout 3.3 --iout 0.4 --pkg sot-223

🔬 Evidence-First Engineering Methodology (REA-Inspired)

Hardware engineering has zero tolerance for hallucinated assumptions. A false assumption can destroy a prototype batch or violate certification. Following the acclaimed REA (Reverse Engineering Assistant) paradigm, HEA enforces:

  1. No-Assumption Policy: Every pin, net connection, and component rating must be verified against actual EDA CAD data (easyeda-pro MCP / KiCad) or verified datasheet specifications.
  2. Explicit Verification States: Agents classify findings into three deterministic tiers:
    • [VERIFIED FACT]: Empirically confirmed in schematic/PCB layout tools.
    • [MANUFACTURING RISK]: Violates DFM tolerances, thermal limits, or clearance standards.
    • [UNVERIFIED HYPOTHESIS]: Requires engineer confirmation or lab measurement.
  3. Deterministic Math: Calculations (CPWG impedance, trace ampacity, junction temperature) use executable scripts in scripts/ rather than speculative mental math.

📑 Report Templates

HEA includes standardized markdown report templates that agents generate during design reviews:


🚀 Installation & Usage

⚡ 1-Click Install via npx skills (Recommended)

HEA is fully compliant with the Agent Skills standard and indexed on skills.sh. You can install all skills into your active project or globally with a single command across 70+ AI coding agents (Antigravity, Claude Code, Cursor, Windsurf, Cline, Codex, etc.):

# Install all HEA skills into your project
npx skills add VLab-Software/HEA

# Or install globally across all workspaces
npx skills add -g VLab-Software/HEA

# Or install a specific skill (e.g., JLCPCB DFM only)
npx skills add VLab-Software/HEA --skill pcb-dfm-jlcpcb

# Or specify your target agent explicitly
npx skills add VLab-Software/HEA -a claude-code

📦 Manual Installation Alternatives

Antigravity (Workspace or Global)

# Workspace discovery (symlinked or cloned into .agents/skills)
git clone https://github.com/VLab-Software/HEA.git .agents/HEA

# Or global configuration for all projects
git clone https://github.com/VLab-Software/HEA.git ~/.gemini/config/skills/HEA

Claude Code

mkdir -p .claude/skills
cp -r skills/* .claude/skills/

Cursor / Windsurf / Cline / OpenCode

Include the skills/ directory in your agent workspace context or point your custom rules to skills/*/SKILL.md.


🤝 Pairing with EasyEDA MCP

HEA reaches maximum efficiency when paired with @vlabsoftware/easyeda-pro-mcp:

User: "Audit this schematic and check if it's safe to manufacture with JLCPCB."
Agent: 
  1. Activates skill 'schematic-review-audit'
  2. Calls 'easyeda_find_unconnected_pins' and 'easyeda_run_schematic_erc'
  3. Activates skill 'mcu-strapping-and-pinout' to verify ESP32 GPIO12
  4. Activates skill 'pcb-dfm-jlcpcb' to audit BOM components
  5. Outputs comprehensive report using 'templates/dfm-report-template.md'

🗺️ Roadmap

  • v1.0 (Live): 5 Core Hardware Engineering Skills & Pre-flight templates.
  • v2.0: RF/Wireless (Antenna matching & CPWG), GaN/SiC High $dV/dt$ Power, and Multi-cell BMS.
  • v3.0: High-Speed Digital (DDR4/5, PCIe Gen 4/5, SerDes) & Industrial/Automotive (AEC-Q, ISO 26262, IEC 62368).
  • v4.0: MedTech (IEC 60601-1), Wearable Ultra-Low Power ($I_Q < 500,\text{nA}$), and Rigid-Flex/HDI.
  • v5.0: Full Autonomy: DFT Pogo-pin Fixture Generator, Device Tree / Firmware Autogen & Headless SPICE.

👉 Read the complete technical specification in ROADMAP.md.


📄 License

This project is licensed under the MIT License — open for community use and commercial hardware development.

Developed with ❤️ by VLab Software.

About

Engineer hardware with agents, from schematic review down to PCB manufacturing & firmware.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages