What It Does
DRC Import lets you load a.kicad_dru (KiCad Design Rule) file from any manufacturer and apply their constraints to your project. Name the manufacturer when you import, and the AI uses those constraints for all subsequent design checks — trace widths, clearances, via sizes, and more are enforced in real time.
This bridges the gap between generic DRC (which only catches obvious violations) and manufacturer-specific DRC (which catches the issues that actually cause fab failures). A board that passes generic DRC but violates your fab’s minimum annular ring is a board that fails at the factory.
How to Import
From the Desktop App
Ask the AI in the chat panel:- Parse the
.kicad_drufile - Apply the constraints to your project
- Re-run DRC and report any new violations
- Record the manufacturer target in your
.trace/rules.mdfor future sessions
From the DRC Rule Editor
- Open Inspect → DRC Rule Editor
- Click Import Rules (or drag-and-drop a
.kicad_drufile) - Name the manufacturer source in the dialog
- Review the imported constraints in the editor panels
- Save with Ctrl+S
From the CLI
What Gets Imported
A.kicad_dru file can contain any combination of:
| Constraint Type | Examples |
|---|---|
| Clearance | Copper-to-copper, copper-to-edge, drill-to-copper |
| Track width | Minimum, optimum, maximum per net class |
| Via size | Drill diameter, annular ring, pad size |
| Differential pair | Coupling gap, impedance-derived width |
| Silkscreen | Minimum text height, stroke width |
| Courtyard | Component-to-component spacing |
| Hole size | Minimum drill, maximum aspect ratio |
| Custom expressions | Advanced conditional rules |
How Constraints Flow Into TraceRules
When you import a DRC file and name the manufacturer, the AI records this in your.trace/rules.md:
Manufacturer Presets
Trace ships with built-in presets for common manufacturers. Ask the AI to load one:| Command | Manufacturer |
|---|---|
| ”Load PCBWay 4-layer rules” | PCBWay standard 4-layer |
| ”Load PCBWay 2-layer rules” | PCBWay standard 2-layer |
| ”Load JLCPCB rules” | JLCPCB standard process |
| ”Load Pikkolo rules” | Pikkolo Assembly (Denver) |
| “Load OSH Park rules” | OSH Park (after dark, 4-layer) |
Workflow: Import → Design → Validate
Design with confidence
The AI enforces imported constraints in real time. As it places components and routes traces, it respects your fab’s minimums automatically.
Run DRC before ordering
A final DRC pass (
Ctrl+Shift+D) catches any remaining violations. The Design Review runs this automatically before manufacturing submission.Overriding Imported Rules
Imported rules can be overridden in two ways:- Edit in the DRC Rule Editor — Open Inspect → DRC Rule Editor and modify specific values
- Override in TraceRules — Add a line to
.trace/rules.mdthat takes precedence:
Creating a .kicad_dru for Your Manufacturer
If your manufacturer doesn’t provide a.kicad_dru file directly, you can create one from their capability table:
my-manufacturer.kicad_dru and import it into Trace.
DRC Categories You Can Ignore
When importing rules, you can tell the AI to suppress certain categories in your TraceRules:Related
- DRC Rule Editor — Visual interface for managing design rules
- TraceRules — Project-specific AI preferences
- Design Review — Pre-flight manufacturing validation
- DFM & the Automated Line — How DRC fits into the manufacturing pipeline

