网表拓扑导出与解析
board-topology/1.1 拓扑 JSON 构建(器件/引脚/网络/主控候选)、Protel2 网表解析与连接关系 Markdown 渲染;供固件与 AI 阅读电路。
Badges only claim the demo-run passed on that host; cross-host installation is handled by the adapter layer.
Preview gallery
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 mapnet -> [[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 labelref.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.
Dependencies
Demo run
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
Sign in to rate this skill.
Sign inVersions
- v1.0.0Latest19.8 KB
首发种子版本。