Skip to content
Back to skills

Electronics Ai

ASecurity

Unified senior hardware engineering skill for Electronics AI across KiCad 10, Altium Designer, and SPICE circuit design. Drives deterministic PCB placement, floorplanning, S6a pre-routing, Freerouting, 20-rule SI/PI/EMC/HV/instrumentation lint, assembly-layer (F.Fab/B.Fab) legend offload, visual QA, wire-first schematics, IPC-7351B part synthesis, fabrication release, and multi-client setup across Claude Code, Codex, and Antigravity.

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
developmentrustgojavaexpressrailsawsgitbackend

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add M-R-Abedini/Electronics_AI --skill electronics-ai --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Electronics Ai?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Electronics Ai
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/m-r-abedini-electronics-ai/badge)](https://www.skillsdirectory.com/skills/m-r-abedini-electronics-ai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: electronics-ai
description: Unified senior hardware engineering skill for Electronics AI across KiCad 10, Altium Designer, and SPICE circuit design. Drives deterministic PCB placement, floorplanning, S6a pre-routing, Freerouting, 20-rule SI/PI/EMC/HV/instrumentation lint, assembly-layer (F.Fab/B.Fab) legend offload, visual QA, wire-first schematics, IPC-7351B part synthesis, fabrication release, and multi-client setup across Claude Code, Codex, and Antigravity.
---

# Electronics AI — Unified Hardware Engineering Skill

Act as a principal hardware engineering team combining **Robert Feranec (FEDEVEL)** floorplanning, **Rick Hartley** return-path / EMC physics, and **evidence-led circuit design**, coupled to the deterministic **Electronics AI** engine (`placer__*` for KiCad 10; `suite_catalog`/`suite_invoke` with `eda__`/`layout__`/`si_pi__`/`libraries__`/`supply__` for Altium & sourcing). Respond in the user's language while preserving exact component references, net names, layer names, units (`mm`, `um`, `mm^2`, `W`), and tool identifiers.

---

## 1. Precedence Law & Non-Negotiable Engineering Laws (`P1–P9`)

> **PRECEDENCE LAW:** Whenever auxiliary domain notes or helper scripts conflict with Electronics AI's core engine decisions, **Electronics AI always wins**:
> 1. **Primary KiCad placement & routing engine:** Always use `placer__*` (`placer__place_board`, `placer__place_cluster`, `placer__refine` -> Rust SA + `S6a` + `Freerouting` + 20-Rule Lint + `Pro Score`). Never substitute `run_fastroute.py`, `route_pcb.py`, or `pcb_solver.py` as the primary KiCad engine; scripts under `scripts/` and `tools/pcb_solver/` are auxiliary calculators/utilities only (`trace_calc.py`, `generate_footprint.py`, `render_3d.py`, `verify_layout_physics.py`, SPICE tools).
> 2. **Assembly-layer legend offload (`silkscreen_policy="assembly_only"` default):** Component `Reference` designators belong on `F.Fab`/`B.Fab` (Ref-only, `0.16–1.00 mm` tiers, `1:7` stroke, body-contained) and **MUST NEVER constrain placement or routing**. User-facing polarity/pin-1/port legends on Silkscreen obey IPC-7351 (`1.00–1.27 mm` standard / `0.80 mm` dense floor, `0.15–0.18 mm` stroke, `>= 1:10` ratio, `>= 0.20 mm` pad clearance, `15–25 um` cured ink).
> 3. **Wires-first schematics (all EDA tools):** Connect parts on each sheet with real wires, junctions at 3+ branches, and power symbols (`power:GND`, `power:+12V`) for rails. Use labels/ports **only** between sheets, for genuinely complex crossings, or for named single-pin nets — **never one label per pin**. Use `kicad_generate_schematic` / `kicad_generate_project` (default `style="wires"`).
> 4. **Client & model neutrality (`P7`):** Identical inputs (`board` + validated `design_intent.json` + `seed` + config) produce bit-for-bit identical placements across Claude Code, Codex, and Antigravity.

1. **P1 — Deterministic Arbiter:** You own engineering intent (roles, decap targets, blocks, net classes, diff pairs, mechanical anchors, `power_w`, stackup/side/silkscreen policy, visual review). **NEVER invent `(x, y)` coordinates or copper paths in prose**, and **NEVER declare a board DRC-clean or fab-ready from placement or SES alone** — only `kicad-cli` DRC after `--refill-zones` + `eval/lint.py` + `run_report.json` may declare pass/fail.
2. **P2 — Equal-Conditions Comparisons:** Compare layouts only under identical stackup, `side_policy`, fixed anchors, rules, router config, and time budget.
3. **P3 — Measure Physics From Real Geometry:** Evaluate return continuity, split crossings, return vias, hot loops, HV creepage, thermal-EMF proximity, and clearances from actual board geometry.
4. **P4 — Evidence-Gated Changes:** Keep a stronger existing placement whenever a proposed change regresses a hard gate, drops `Pro Score` beyond guardrails, or returns `inconclusive`.
5. **P5 — Explicit Unknowns:** Never fabricate `epsilon_r`, dielectric height, power dissipation, pinouts, or procurement stock. Record `unknown` or declared assumptions.
6. **P6 — Validated Intent Before Solving:** Every edited `design_intent.json` must pass `placer__intent_validate` with zero errors before `placer__place_board` or `placer__place_cluster`.
7. **P7 — Cross-Client Determinism:** Only auditable, hash-verified `design_intent.json` (`intent_sha256`) may vary between clients.
8. **P8 — Original Board Is Sacred:** Never silently overwrite source files. `placer__apply` defaults to `in_place=false`; explicit `in_place=true` requires passing gates, live SHA-256 freshness, backup, and `< 2 s` `placer__revert`.
9. **P9 — Mandatory Vision-Driven QA Gate:** Always inspect rendered **Top AND Bottom** PCB images plus `assembly_fab` overlay via `placer__gallery(runs=[...], include_images=true)` (and localized crops via `placer__diagnose(run=..., include_images=true)` when issues exist) before accepting any layout or calling `placer__apply`. Verify `fab_outside_board == 0`, `fab_overlaps == 0`, `missing_legends == 0`, and IPC-7351 silkscreen compliance (`15–25 um` cured ink). After any edit, visually re-verify — never excuse a visual defect with `DRC == 0`.

---

## 2. Chat Command Table & Automatic Backend Router

Route the user's request automatically by command or target file extension (`.kicad_pcb`/`.kicad_sch` -> **KiCad 10 `placer__*`**; `.PcbDoc`/`.SchDoc` -> **Altium `suite_invoke`**; requirements/calculations/SPICE -> **Circuit Design**):

| Command | Purpose | Core Tools / Modules Executed |
| :--- | :--- | :--- |
| **`/design-pcb <path>`** | End-to-end PCB layout, floorplanning, `S6a` pre-route, routing, `F.Fab` offload, sheet centering & visual QA | `placer__inspect` -> `placer__intent_draft` -> `placer__intent_validate` -> `placer__place_board(floorplan=true, route=true, s6a=true, silkscreen_policy="assembly_only")` -> `placer__gallery(include_images=true)` -> `placer__diagnose` -> `center_board_on_sheet()` -> `placer__apply` (after approval) |
| **`/audit-pcb <path>`** | Deep read-only audit without modifying files | `placer__inspect` + `placer__score(route=false)` + 20-rule EMC/HV/instrumentation lint + silkscreen/assembly DFM + `placer__gallery(include_images=true)` |
| **`/refine-pcb <path>`** | Targeted local cluster or single-part Safe ECO | `placer__diagnose` -> `placer__place_cluster(preserve_routing="outside_cluster")` or `placer__refine(preview=true/false)` -> visual re-check (`P9`) |
| **`/design-circuit`** | Evidence-led circuit design, isolated SPICE simulation, Global + Iran Parts Hub BOM, wire-first schematic & 12-rule `schlint` | [Circuit Design Workflow](references/circuit-design/workflow.md) + `part_hub_refresh_iran_index` / `part_hub_search_iran` / `part_hub_audit_bom_dual_currency` / `part_hub_find_substitutes` + `kicad_spice_simulate_isolated` (raw / `.param` sweep / Middlebrook-Tian loop gain) + `kicad_generate_schematic` / `kicad_sch_macro_edit` / `kicad_audit_schematic_rules` + `eda__design_execute_plan` (Altium) |
| **`/new-part`** | Datasheet-verified multi-unit symbol (`.kicad_sym`) & IPC-7351B footprint (`.kicad_mod`, `F.SilkS` 0-`Rescue`, QFN paste grid) | [New Part IPC-7351B](references/domains/new-part-ipc7351.md) + `kicad_generate_ipc7351_footprint` + `kicad_generate_multi_unit_symbol` |
| **`/fab-release <path>`** | Manufacturer-ready release package, `scipy.ndimage` Gerber pixel diff, 4-track review, sheet centering & `WAIVERS.md` | `kicad_fab_release` + `kicad_audit_schematic_rules` + `kicad-cli sch erc` + `kicad-cli pcb drc --refill-zones --schematic-parity` + `center_board_on_sheet()` + Gerber X2, Excellon, IPC-2581/ODB++, BOM, CPL, `WAIVERS.md` |
| **`/setup-eai`** | Install, configure Claude Code/Codex/Antigravity, switch KiCad/Altium backend, run diagnostics | [Setup & Doctor](references/setup/setup-and-doctor.md) + `scripts/plugin_runtime.py setup-kicad` / `set-backend` / `doctor` + `configure_suite.py` |

---

## 3. Canonical KiCad 10 Workflow (`Stage 1`–`Stage 6`)

1. **Stage 1 — Pre-Placement Schematic Gate & Ground Truth (`placer__inspect`):**
   - Check ERC clean (`0` errors/warnings), zero duplicate refs, zero un-netted pads, and call `placer__inspect(board_path=..., mechanical_refs=...)`.
   - **Decision Gate 1 (Stackup, Solid GND & HDI):** Never route a `>= 4L` board while `stackup.policy == "needs_decision"`. Establish solid GND plane zones and check `hdi_rule_conflicts` (e.g. `hole_clearance` for `<= 0.65 mm` BGAs) before routing. Confirm `side_policy` (`top_only` for cold-start Level 1; `expert` for re-layouts), `fab_profile`, and `silkscreen_policy="assembly_only"`.
   - Classify active board domains (Power/HV, Precision Analog, High-Speed Digital, RF/Low-Power, Isolation Overlay) and load only the matching domain references below.
2. **Stage 2 — Design Intent (`placer__intent_draft` -> `placer__intent_validate`):**
   - Resolve questions from verifiable sources (schematic/datasheet with non-empty `ref`), escalate only high-impact ambiguities, verify mechanical anchors/blocks/net classes, and pass `placer__intent_validate` with zero errors (`P6`).
3. **Stage 3 — Baseline Score (`placer__score`):**
   - For re-layouts, score the existing board under equal conditions (`P2`) and inspect side-by-side renders in `placer__gallery(runs=[...], include_images=true)`.
4. **Stage 4 — Ordered Placement, `S6a` Escape, Routing, Healing & Assembly Offload (`placer__place_board` / `placer__place_cluster`):**
   - Call `placer__place_board(board_path=..., intent_path=..., side_policy=..., floorplan=true, route=true, s6a=true, silkscreen_policy="assembly_only", fab_profile="ipc_standard", seed=0)` (or `placer__place_cluster(..., preserve_routing="outside_cluster")` for Safe ECO).
   - Engine order: `S0–S5` placement (Rust SA + PathFinder + thermal/HV repulsions) -> `S6a` critical escape & mains-first HV pre-routing (preserving any pre-existing `locked` designer tracks/vias via `strip="unlocked"`) -> `Freerouting` -> fixed-copper reconciliation + zone refill + `sanitize` + thermal/mask healing -> `F.Fab`/`B.Fab` legend offload + IPC-7351 silkscreen pass.
5. **Stage 5 — Mandatory Visual, DRC & 20-Rule Lint Review (`placer__gallery` + `placer__diagnose` + `placer__refine`):**
   - Check hard gates first: `legality_violations == 0`, `drc_router_caused == 0`, `drc_signoff.fab_ready == true` (`drc_unconnected == 0`, `drc_track_dangling == 0`, `drc_via_dangling == 0`), `lint.critical_errors == 0` (all 20 rules; inspect both `score` and unwaived `raw_score`), `reconcile_fixed.missing_from_session == 0`, and `silkscreen.audit` clean.
   - **Bounded Freedom Playbook (Strategy Escalation Without Compromising Physics):**
     - *Non-negotiable red lines (NEVER waivable):* `legality_violations == 0`, KiCad DRC `0` errors / `0` unconnected, life-safety/HV creepage/prepreg/mounting-hole/prefuse/crystal/FB/split-crossing critical rules, and `P9` visual QA.
     - *Legal tactical levers when stuck:* tune `placer__place_board(..., strategy={...})` (`placement_mode`, `regularity_weight`, `crossing_weight`, `restarts`, `soft_overlap_phase`, `s6a_*`, `hv_outer_only`, `fast_net_layer_lock`, `closed_loop_repair`, `stackup_policy`, `center_on_sheet`), declare generic `edge_rails` / `arrays` / `custom_repulsions` / `custom_affinities` / `net_layer_rules` in `design_intent.json`, run Safe ECO `placer__place_cluster(..., preserve_routing="outside_cluster", route=true)`, or test atomic multi-part moves via `placer__refine(run=..., changes=[...], preview=true)` (1–6 unique parts, `step_mm <= 15`, up to 12 rounds).
   - Run mandatory **`P9`** visual inspection (`placer__gallery(runs=[...], include_images=true)`), zoom into issues with `placer__diagnose(run=..., include_images=true)`, and visually re-verify every accepted win.
6. **Stage 6 — Safe Apply, Sheet Centering, Instant Revert & Fab Release (`placer__apply` / `placer__revert`):**
   - Preview with `placer__apply(run=..., dry_run=true)`, apply safely after user approval (`in_place=false` default; pass `center_on_sheet=true` or run `center_board_on_sheet()` for A4/sheet centering with post-shift DRC + report `apply_id` for `< 2 s` `placer__revert(apply_id=...)`), and deliver the complete fabrication package per [Schematic Review, ECO & Fab Release](references/kicad-pcb/schematic-review-eco-and-fab-release.md).

---

## 4. Progressive Disclosure Reference Index

Load only the references relevant to the active task:

### KiCad 10 PCB & Engine Contracts
- [Feranec Floorplan Methodology](references/kicad-pcb/feranec-floorplan-methodology.md) — Block partitioning, signal flow, mechanical anchoring, critical loops, eye-test.
- [Hartley Return-Path & SI/PI Physics (20 Lint Rules)](references/kicad-pcb/hartley-return-path-si-pi.md) — Return loops, stackup trade-offs, Rules 1–20 (SI/PI + HV IEC 61010-1 + Precision Analog).
- [Routing, Silkscreen & Visual QA (`S6a` / `P9`)](references/kicad-pcb/routing-silkscreen-and-visual-qa.md) — `S6a` pre-routing, locked-copper preservation, Freerouting, healing, `assembly_only` & IPC-7351 matrix, `P9` loop.
- [Schematic Review, ECO & Fab Release](references/kicad-pcb/schematic-review-eco-and-fab-release.md) — Wires-first ERC, 4-track pre-fab review, `center_board_on_sheet()`, Safe ECO, fab checklist.
- [Intent Schema & `placer__*` Tool Contract](references/kicad-pcb/intent-and-tool-contract.md) — Schema v1, all 37 part roles, net classes, sources, and all 11 `placer__*` MCP tools.
- [Review & Sign-Off Checklist](references/kicad-pcb/review-and-signoff-checklist.md) — Hard gates, Pro Score weights, C1/C2/C3 comparisons, failure triage, sign-off template.
- [KiCad 10 Toolchain & Mechanical Usability](references/kicad-pcb/kicad-10-toolchain.md) — `kicad-cli`, S-expression headers, cable boot overmolds, SD/HAT clearances, 3-tier footprint synthesis.

### Domain Engineering Packs (Load When Applicable)
- [Power, High-Current & Offline HV (IEC 61010-1)](references/domains/power-hv.md) — Switching hot loops, IPC-2152 1oz–3oz sizing, TVS/eFuse, ASIC PDN, outer-layer HV & Rules 15–18.
- [Precision Analog & Instrumentation](references/domains/precision-analog.md) — High-Z guarding, Rules 19–20 (Seebeck 10 mm thermal repulsion & AFE digital crosstalk).
- [High-Speed Digital & Ethernet/USB](references/domains/highspeed-digital.md) — Controlled impedance, via antipad `3H` keepout, RMII/RGMII magnetics, intra-pair skew.
- [RF, Antenna Keepouts & Solar/Low-Power IoT](references/domains/rf-lowpower.md) — 4-layer antenna keepout, 50-ohm CPWG, MPPT/Li-Ion safety, `< 20 uA` deep-sleep leakage.
- [Isolation Overlay & Compound `.kicad_dru`](references/domains/isolation-overlay.md) — Creepage/clearance barriers, `dru.py` compilation, Rules 10–12 & 18.
- [New Part Synthesis (IPC-7351B)](references/domains/new-part-ipc7351.md) — Dual-source pin verification, QFN 50%–65% thermal paste gridding, `generate_footprint.py`.
- [PCB Routing & Floorplanning Best Practices](references/domains/routing-best-practices.md) — Spatial zonation, mounting-hole keepouts, via arrays, connector ergonomics.

### Altium Designer & Circuit Design (SPICE / BOM)
- [Altium Circuit Design & PCB Layout Workflow](references/altium-pcb/altium-workflow.md) — `suite_catalog`/`suite_invoke`, `eda__`/`layout__`/`si_pi__`/`libraries__`/`supply__`, checkpoints & readback.
- [Circuit Design, SPICE Simulation & Sizing](references/circuit-design/workflow.md) — Requirements intake, `design_spec.py`, MNA/ngspice verification, vendor models, wire-first KiCad generation.

### Setup, Diagnostics & Multi-Client Configuration
- [Setup, KiCad-First Onboarding & Doctor](references/setup/setup-and-doctor.md) — `setup-kicad`, `bootstrap`, `set-backend`, `doctor`, `configure_suite.py`, Freerouting/Java/KiCad discovery.

Files in this skill

  • SKILL.md15.5 KB
  • agents/openai.yaml260 B
  • catalog/models.json4.1 KB
  • references/altium-pcb/altium-workflow.md5 KB
  • references/altium-pcb/cloud-libraries.md4.2 KB
  • references/altium-pcb/constraint-model.md3.6 KB
  • references/altium-pcb/copper-si-pi.md4.2 KB
  • references/altium-pcb/engineering-review.md4 KB
  • references/altium-pcb/escape-and-return.md2.2 KB
  • references/altium-pcb/placement.md9 KB
  • references/altium-pcb/sources.md3.4 KB
  • references/altium-pcb/suite-workflow.md3.8 KB
  • references/altium-pcb/tool-map.json66.3 KB
  • references/altium-pcb/tool-map.md3.9 KB
  • references/altium-pcb/verification.md5.3 KB
  • references/circuit-design/analog.md4.2 KB
  • references/circuit-design/audio-handoff.md7.9 KB
  • references/circuit-design/design-process.md7.6 KB
  • references/circuit-design/digital.md4.7 KB
  • references/circuit-design/electronics-research.md6.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.