Skip to main content
PCBFreeNewv1.0.0

丝印二维码/条码与可读性审查

独立 QR 编码器(v1-10、L/M/Q/H,9 组参考矩阵逐位验证)+ Code39 条码 + 元件值丝印可读性评分与标签几何;输出 SVG 与契约报告,避免板子回来扫不出、看不清。

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
Generate traceability QR and Code39 barcode SVGs for this BOM, review silkscreen readability of each component value, and list items needing font or designator fixes.

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

LCEDA silkscreen mark bundle

Offline re-implementation of the mark-generation and readability cores of the LCEDA extension-plaza silkscreen group (see references/PROVENANCE.md). QR is encoded from scratch (GF(256) Reed-Solomon, block interleaving, mask penalty search) and verified against nine expected matrices captured at authoring time from the plaza's bundled MIT qrcode@1.5.1; no library code ships here. Image vectorization (convertImageToComplexPolygon) is editor-bound and documented as a procedure.

What the script computes

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

  • QR byte mode, versions 1-10, ECC L/M/Q/H: capacity tables, RS block split/interleave, remainder bits, alignment/format/version BCH, 8-mask penalty selection. Fail-loud on texts beyond v10 capacity.
  • Quiet-zone and module-size checks: plaza default margin 2 modules warns against the ISO minimum 4; module < 0.2 mm warns (our floor).
  • Code39 (uppercase, digits, - . space $ / + %), wide=3/narrow=1, start/stop *, inter-char gap; charset violations are errors.
  • Placement math: mm -> mil /0.0254, barcode footprint 3x width (plaza rule).
  • Assembly readability: refdes text match by trim+upper equality, near 140 mil / far 220 mil, font floor 0.8 mm, ={...} placeholder errors, hidden-value texts skipped; score 100-(12e+6w+2i) floor 0.
  • Label outline geometry (plaza label maker): supersample-independent mm math r=max(0.8*fontSize,20)*0.85, paddings 20/15, end shapes < > / \ ( ) |, alignment left/center/right.

Run

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

Default input: scripts/fixtures/input.json. stdout is an edaskills.report.v1 report; <dir> receives qr-*.svg, barcode-*.svg, readability.csv, labels.svg. scripts/fixtures/qr-vectors.json holds the nine oracle matrices.

Input shape: { "qr": [{ "text", "ecl"?, "sizeMm", "marginModules"? }], "barcodes": [{ "text", "sizeMm", "barMm"?, "heightMm"? }], "components": [{ "designator", "x", "y", "texts": [{ "string", "x", "y", "fontSizeMm", "valueVisible"? }] }], "labels": [{ "content", "fontSizeMm"?, "textWidthMm"?, "alignment"?, "endLeft"?, "endRight"? }] } (component coordinates in mil).

When to use

  • Generate board serial / URL QR and Code39 marks without the editor.
  • Score silkscreen readability before assembly release.
  • Size label outlines and check quiet zones against process floors.

Not for: QR versions 11-40 or non-byte modes (Kanji/alphanumeric segment optimization), Code128/EAN (use the editor extension or JsBarcode), and final scan validation (print and scan a proof).

What you get

  • QR SVG (byte mode v1-10, four ECC levels, quiet-zone / module-size checks)
  • Code39 barcode SVG with charset compliance checks
  • Silkscreen readability scoring: placeholder / missing ref / too-small font / too-far placement verdicts

Good fit for

  • Pre-print checks of production traceability QR/barcodes
  • Readability self-checks of component-value silkscreen at assembly and service distances
  • Geometry budgeting for label outlines, corners and text alignment

Not for

  • Other symbologies such as Code128/EAN (not re-implemented offline; see procedures)
  • Placing primitives inside the editor (SVG and placement parameters are produced; write-back flow in references)
Before you start

You provide

  • QR text, ECC level and target module size (mm)
  • Code39 text (A-Z 0-9 and -.$/+% space)
  • Component list: designator, value, font size, viewing distance (mil)

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

Failed verification3 errors · 2 warnings

node v24.19.0 · 2026/11/19

  • [warning] QUIET_ZONE_BELOW_ISO (qr0): quiet zone 2 modules (plaza default) below ISO/IEC 18004 minimum 4; scanners may miss edge codes
  • [info] QR_ENCODED (qr0): v2-M mask 2, 25x25 modules, module 0.414 mm, placement 472 mil square
  • [info] QR_ENCODED (qr1): v3-Q mask 1, 29x29 modules, module 0.216 mm, placement 315 mil square
  • [info] CODE39_ENCODED (barcode0): 149 elements, width 47.8 mm, placement 394x1181 mil (plaza 3x rule)
  • [error] REF_TOO_SMALL (C7): refdes font 0.6 mm below 0.8 mm assembly readability floor

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.0Latest200.2 KB

    首发种子版本。

    License: MITSourceSHA-256: cb460fa1f6124631…

Related skills