Export pcbComponent designs to Gerber files with RF connectors and fab service formatting for PCB manufacturing. TRIGGER: user asks to export a PCB design to Gerber, generate manufacturing files, or write out a pcbComponent for fabrication. Invoke BEFORE writing export code — gerberWrite signature (pcbComponent, connectors, filename) is non-obvious. SKIP: importing/reading PCB files (use matlab-read-pcb-layout), building PCB geometry (use matlab-assemble-pcb-layout), EM analysis (use matlab-anal
SkillScore100Maintained
Automatic
◆Coding pack
Last verified 8/16/2026
What it changes
Passed 22 of 22 test cases with the skill, and 6 of 22 without it.
Without skill27%
With skill100%
Checks it passed that the model alone missed
Sets the PCBMargin property to 0.002.
Sets the Soldermask property to 'both'.
Passes the connectors as a cell array to gerberWrite.
and 21 more in the full report
16 fixed6 passed either way0 still failing0 broke
Pass-rate lift
+73 pp
Tokens
+62%
Agent turns
0%
Response time
-64%
Model gemini-3.6-flashMeasured 8/16/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 16 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 16
Prompt
I need to add an IPX jack from Lighthorse to my Gerber layout export in MATLAB. What is the exact class name under `PCBConnectors` for this connector?
What was checked, without and with the skill
Checked
Without skill
With skill
Specifies PCBConnectors.IPX_Jack_Lighthorse for IPX jack connectors.
Missed
Passed
case-22 · gemini-3.6-flash · 8/16/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md211 linessingle file
Writing PCB Layouts to Manufacturing Files
When to Use
Exporting a pcbComponent or pcbStack design to Gerber manufacturing files
Selecting and configuring RF connectors (SMA, SMB, MMCX, etc.) for PCB export
Formatting output for specific fabrication services (OSH Park, Seeed, Advanced Circuits)
Attaching RFConnector objects to catalog components for shielded analysis
Generating a complete manufacturing package from a MATLAB RF design
When NOT to Use
Importing Gerber files into MATLAB — use matlab-read-pcb-layout
Building the PCB design itself — use matlab-assemble-pcb-layout or the designing skills
Running EM analysis — use matlab-analyze-em
Typical Workflow
Before: A design skill or matlab-assemble-pcb-layout — create the pcbComponent; matlab-analyze-em — validate performance; matlab-optimize-pcb-design — tune if needed
This skill: Export to Gerber with connectors and fab formatting
Quick Reference
Task
Code
Export Gerber files
[A,g] = gerberWrite(pcb, W, {C1,C2})
SMA connector
C = PCBConnectors.SMA_Cinch
Edge-launch SMA
C = PCBConnectors.SMAEdge_Samtec
PCB service writer
W = PCBServices.OSHParkWriter
Customize writer
W.Filename = 'name'; W.CoordUnits = 'mm'
RF connector object
rc = RFConnector
Design connector for PCB
rc = design(RFConnector, pcb)
gerberWrite — Export to Manufacturing
The gerberWrite function generates manufacturing files from a pcbComponent.