Skip to main content
PCBFreeNewv1.0.0

板厂价格规则与线宽规则

离线复刻板厂计价:面积/固定/免费额度叠加工艺加价,多场景对比;并按网络电流生成 IPC-2221 电源线宽与过孔规则建议。

Installs: 0Rating: –Updated:
Claude CodeCursorCodexGemini CLI+2

Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.

Preview gallery

You say
Compare 100×80 mm, 1.6 mm, 1 oz quotes for 5 vs 50 pieces under the built-in JLC rules, and generate power-width rules for a +5V/3A net class.

Content matches the files inside the package; extracted by the publish pipeline.

LCEDA price / design-rule / spec bundle

Offline cores from the LCEDA plaza rule group (references/PROVENANCE.md): eext-pcb-price-calculator rule engine and eext-design-rule-generator net classification + current-based width/via synthesis. The JLC stackup RBF impedance surrogate is data-heavy (8.6 MB stackups + calibration) and is NOT derived here — run it in-editor (see procedures).

Cores

scripts/demo.mjs (Node >= 20, no deps):

  • Price: area = L_cm * W_cm; mode area base*area + extra, mode fixed fixedBase + areaFactor*area, mode free 0; then conditional rules process <op> value with = > < >= <= (numeric when both parse finite, else trimmed string; empty operand false) applying + - * / in order.
  • Net classify: ground ^(GND|AGND|DGND|PGND|GNDA|GNDD)($|[_-]), power tokens / \d+V\d+|VCC|VDD|PWR|POWER, impedance tag _Z<ohm>D?_, diff suffixes _P/_N, _DP/_DM, +/-; default targets PCIE/PEX 85, USB 90, else 100 ohm.
  • Power width: IPC-2221 A=(I/(k*dT^0.44))^(1/0.725), k 0.048/0.024; via: c=(I/(0.02*dT^0.44))^(1/0.725), inner mm = max(0.2, c25.4^2/(3140copperUm)), outer = max(inner+0.3, inner*1.75).
  • Rule profile names: PWR / ADR_Z{ohm}_{W}MIL / ADR_DIFF{ohm}_{W}MIL_{G}GAP + _CLASS.

Run

node scripts/demo.mjs --out-dir <dir> [--input <json>]

Default scripts/fixtures/input.json; stdout = edaskills.report.v1; artifacts price.json, net-rules.csv.

When to use

  • Quote a fab order from process selections with your own rule table.
  • Bootstrap net classes / width rules before routing a new LCEDA board.

Not for: official JLC impedance targets (use the in-editor surrogate), clearance synthesis (clone the fab template in-editor), or live pricing.

What you get

  • Itemized quotes across rule scenarios (area, fixed, free quota, process surcharges)
  • Net classification (power/ground/signal) with per-class current assumptions
  • IPC-2221 power-width and via-diameter rule suggestions

Good fit for

  • Comparing price impact of thickness, copper weight and process options before ordering
  • Bulk-generating design-rule width tables from net names

Not for

  • Live official quotes (rule snapshots need manual calibration)
  • Impedance/stackup solving (use a dedicated solver)
Before you start

You provide

  • Board outline, quantity, process options
  • Rule scenario JSON (or the built-in JLC common rules)
  • Net list with expected currents

Environment

  • node ≥ 20

Last tested

v1.0.0 · Claude Code, Cursor, Codex, Gemini CLI · Ran 2026/11/19

Dependencies

No dependencies
This skill works standalone.

Demo run

Passed with warnings0 errors · 1 warnings

node v24.19.0 · 2026/11/19

  • [info] PRICE (buck-demo): 80.00 cm2 -> CNY 168.00 (3 conditional rules applied)
  • [warning] IMPEDANCE_IN_EDITOR (USB_Z90D_P): target 90 ohm needs the JLC stackup surrogate; run eext-design-rule-generator in-editor for W/S

FAQ

Ratings & reviews

Not rated0 ratings

5 star0
4 star0
3 star0
2 star0
1 star0

Sign in to rate this skill.

Sign in

Versions

  • v1.0.0Latest389.6 KB

    首发种子版本。

    License: MITSourceSHA-256: 50365dcc2d0b01b5…

Related skills