Skip to main content
SchematicFreeNewv1.0.0

网表拓扑导出与解析

board-topology/1.1 拓扑 JSON 构建(器件/引脚/网络/主控候选)、Protel2 网表解析与连接关系 Markdown 渲染;供固件与 AI 阅读电路。

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
Build board-topology/1.1 JSON from this netlist and render connection Markdown centered on U1, ignoring power/ground nets.

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

LCEDA netlist / topology export bundle

Offline cores from two LCEDA plaza extensions: board-topology-exporter (MIT, schema board-topology/1.1) and lceda-sch-conn-export (Apache-2.0, Protel2 parser + Markdown). Other netlist/pin/diff members are procedures.

Cores

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

  • buildTopology(rawNetlist): components {ref,name,value,mpn,fp,lcsc, inBom,toPcb,pins:[[pinNumber,pinName,net]]}; nets map net -> [[designator,pinNumber]]; stats {components, nets, connectedPins, unconnectedPins}; mainCandidates = inBom && pins>=8, top-3 by pin count; natural sort by ref.
  • Protel2 parser: ( netName DES-PIN ... ) blocks, member regex ^(\S+)-([^\s-]+)$.
  • Power filter: voltage regex ^[+-]?\d+(\.\d+)?V\d*$ + glob ignore list.
  • Markdown: core devices pin rows pinNumber pinName net = peers, peer label ref.pinName(pinNumber), - when no peers; net table; other-devices one-liners.

Run

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

Default scripts/fixtures/input.json; stdout = edaskills.report.v1; artifacts topology.json, connections.md. Input: { project:{name}, netlist:{components:[{props,pins}], nets}, protel2:"...", ignoreNets:["GND*"] } (netlist = EasyEDA JSON export shape; protel2 optional second source).

When to use

  • Feed an LLM/agent a compact, machine-checkable connectivity view.
  • Diff connectivity between revisions (topology.json is stable-sorted).
  • Review pin-level connections without opening the editor.

Not for: geometric wire reconstruction (in-editor fallback), PCB topology (this is schematic connectivity), or netlist generation itself.

What you get

  • board-topology/1.1 topology JSON (components, pins, nets, stats, main candidates)
  • Protel2 netlist parsing plus core-device-centered connection Markdown
  • A read-only contract report, no editor writes

Good fit for

  • Feeding circuit context to LLMs for firmware work
  • Quickly grasping main controllers and interfaces of unfamiliar schematics

Not for

  • PCB physical topology (trace level; use the copper-geometry skills)
  • Exporting the schematic itself (in-editor flow documented in references)
Before you start

You provide

  • Schematic-exported component/pin/net JSON, or Protel2 netlist text

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] SOURCES_AGREE: 5 nets match across both exports
  • [warning] FLOATING_PINS (U1): 3 unconnected pin(s) on U1
  • [info] TOPOLOGY: 5 components, 5 nets, 16 connected pins

Some artifacts are listed by name only (extension not in the preview whitelist).

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.0Latest19.8 KB

    首发种子版本。

    License: MITSourceSHA-256: 2103ff29f7eda45d…

Related skills

No related skills
Skills with the same output type and use case will appear here.