Skip to main content
ComponentFreeNewv1.0.0

库属性刷新 dry-run

元件属性批量刷新前的离线演练:精确匹配索引、排除键保护、布尔/直写/OtherProperty 分类与逐器件属性 diff;确认后才进编辑器。

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

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

Preview gallery

You say
Dry-run this attribute refresh rule: emit the match index, excluded-key hits and per-component attribute diffs; write nothing.

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

LCEDA library / symbol automation bundle

Offline core re-implemented from the Apache-2.0 LCEDA plaza extension eext-update-components-attributes-v3 (match/refresh rules). Library fetch and primitive mutation stay in-editor (references/procedures.md). Other library members (attribute editors, AI standardization, symbol extraction, grouping) are procedures.

Core

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

  • Match index: exact trimmed string equality on chosen baseAttr (schematic side) vs matchAttr (library side); Name strips sub-part suffix /\.\d+$/.
  • Excluded keys never matched/written: Device, Designator, Name, Symbol, Footprint, 3D Model, 3D Model Title, 3D Model Transform.
  • Update classes: Add into BOM / Convert to PCB === 'yes' -> boolean; Manufacturer / Manufacturer Part / Supplier / Supplier Part -> direct setters; everything else -> OtherProperty (string|number|boolean only).
  • Dry-run diff: per matched component, old attr vs library attr; unmatched components reported; no writes ever performed offline.

Run

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

Default scripts/fixtures/input.json; stdout = edaskills.report.v1; artifacts attribute-diff.json, attribute-diff.csv. Input: { baseAttr, matchAttr, components:[{designator, attrs:{...}}], devices:{result:{lists:[{uuid, display_title, attributes:{...}}]}} } (devices shape = the extension's captured /api/v2/devices response).

When to use

  • Before a library refresh: see exactly which attributes would change.
  • Audit library consistency (missing manufacturer/MPN coverage).

Not for: delete-and-recreate mode ("删旧放新"), PCB device rebinding, batch multi-project tasks, or live library search.

What you get

  • An exact-match index (trim + sub-part suffix strip) with unmatched list
  • Excluded-key guards and boolean/direct/OtherProperty write classification
  • Per-component attribute diffs (old → new) to confirm before writing

Good fit for

  • Bulk manufacturer-number/attribute refresh before release
  • Dry-run rehearsal of library binding changes

Not for

  • Executing the refresh itself (in-editor flow in references)
  • Fuzzy matching or guessed part substitutions
Before you start

You provide

  • Component list and library index JSON
  • Attribute refresh rules (key, value, write mode)

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] ATTR_CHANGE (U1/Manufacturer): direct: "" -> "STMicroelectronics"
  • [info] ATTR_CHANGE (U1/Manufacturer Part): direct: "" -> "STM32G031K8T6"
  • [info] ATTR_CHANGE (U1/Supplier): direct: "" -> "LCSC"
  • [info] ATTR_CHANGE (U1/Supplier Part): direct: "" -> "C529330"
  • [info] ATTR_CHANGE (U1/Temperature Range): other: "" -> "-40..85"

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.0Latest464.9 KB

    首发种子版本。

    License: MITSourceSHA-256: fd60e5d288a9d6e0…

Related skills