/universal-netlist:universal-netlistfrom universal-netlist
Queries EDA netlists from the shell for Cadence OrCAD, Altium, KiCad, and Universal Netlist formats. Finds designs, searches nets/components, traces XNET connectivity, and runs electrical rule checks.
Ships in universal-netlist. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
universal-netlist answers the same queries as the universal-netlist MCP server, one shell command each. When that MCP server is connected, use its tools instead.
Check for it with universal-netlist --version. If it is missing, either install the standalone binary:
curl -fsSL https://raw.githubusercontent.com/IntelligentElectron/universal-netlist/main/install.sh | bash
or run it through npm without installing, writing npx -y @intelligentelectron/universal-netlist wherever this guide writes universal-netlist.
universal-netlist <tool> [design] --flag value ...
universal-netlist <tool> --help # the tool's description and every flag
universal-netlist --help # every tool
--net_name, not --net-name.--design.--flag=value. A value that starts with a dash needs =: --net_name=-12V.--include_dns. --include_dns false and --include_dns=false turn it off.--skip_types C --skip_types L.--pattern '^VCC'.The result is the tool's JSON on stdout: indented in a terminal, one compact line otherwise, so pipe it to jq when it is long.
| Exit | Meaning |
|---|---|
| 0 | The result answers the query |
| 1 | The result has an error field; its message names the tool that finds what you were looking for |
| 2 | Usage error: an unknown or missing flag, or a value of the wrong kind. The message and a usage line are on stderr |
Parsing a large design takes a second or two; a query on a parsed design takes milliseconds. Each call is a new process, so turn on the disk cache when you will query a design more than once: --cache on a call, or export UNIVERSAL_NETLIST_CACHE=1 for the session. A parse is reused until a file the design reads changes, and the cache never fails a query. UNIVERSAL_NETLIST_CACHE_DIR puts it in a directory of your choice, such as a mounted volume.
universal-netlist list_designs --path <dir> finds the designs, gives the path to query, and lists each design's design_variants.search_nets and search_components_by_* find things by pattern.query_component and query_xnet_by_* give detail and connectivity.run_erc runs the electrical rule checks.list_pages and get_page read a Cadence .DSN page as drawn: what sits where, and its nets; render_page writes it as a PNG (--output).Answer questions about a design with these query tools. export_design writes a whole design as a .netlist.json file, and is only for a program that post-processes the netlist in that format; see Command-line-only tools.
universal-netlist list_designs --path ./hardware
universal-netlist search_nets hardware/board.DSN --pattern '^VCC'
universal-netlist query_xnet_by_net_name hardware/board.DSN --net_name SPI_CLK --skip_types C
design_variant of a design. A design with named variants requires design_variant on every query, one of the names list_designs lists: those are its only builds, and <Default> is refused. A design with no variants has one build, <Default> (alias default), with each part's own Do Not Stuff statedns: true: listing and search include them, traversal and ERC only with --include_dnsalternate_part: trueerror field failed; its message names the tool that finds what you wantednet_name_warnings; its netlist_name is the name an Allegro export or another board usesuniversal-netlist update or universal-netlist uninstall: they replace or remove the binaryEach description is the MCP tool's own.
Every tool but list_designs also takes --design, and every tool but list_designs, list_pages, get_page, search_notes and render_page also takes --design_variant; neither is repeated below, and --design may be the first argument instead:
--design (required; string). Path to design file, as returned by list_designs.--design_variant (string). Design variant name from list_designs' design_variants. Required when the design records named variants, which are its only builds. (alias: default) is the one build of a design that records none.List the design projects in a directory, one path each: a .DSN, a .PrjPcb, a .kicad_pro, or a Universal Netlist .netlist.json. That path is what every other tool takes; use this tool instead of searching the filesystem.
path is optional. Omitted or blank, it searches the server's working directory, so check root for the directory actually searched. A misspelled argument name is refused with an error naming it. designs is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
design_variants lists each design's builds: its native variants (Altium, Cadence CIS, KiCad; fabrication where the vendor marks one a build assembly), or <Default> alone when it records none. A design with variants requires design_variant on every query, and <Default> is refused on it.
Cadence: query the .DSN; it carries properties, connectivity, and CIS stuffing. KiCad: query the .kicad_pro; a committed .net export is read directly, otherwise the schematics are read themselves (no KiCad install needed), with kicad-cli as the last resort; a design none of them can read is reported in error.
A design marked unsupported: true cannot be read (for example an OrCAD design saved in an older Capture format); error says why and what to do, and every query on it returns that error, so do not query it.
--path (string). Path to directory to search for designs.--pattern (string). Regex pattern to filter design names.--max_depth (number). Max directory recursion depth (0 = no recursion). Omit for unlimited.--max_results (number; default 50). Max designs entries to return. Default: 50.--offset (number; default 0). Index of the first designs entry to return, from next_offset. Default: 0.List components of a specific type in a design. The type is the refdes prefix, matched whole and case-insensitively: "u" gives U1 and U2 but NOT USB1, whose prefix is USB, and "tp" gives the test points. Asking for a partial prefix returns nothing rather than everything starting with it, so if a part you expected is missing, look for it under its own prefix. Identical components are grouped for compact output: parts share a group only when their MPN, description, comment and value all agree, so every field a group reports is true of every part in it. component_notes names the parts with no MPN. If no components match, the error lists the prefixes the same query would return, and names apart any prefix whose components are all DNS. A prefix whose components are all DNS returns an empty list with a note saying so; pass --include_dns to list them. components is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
--type (required; string). Component prefix: U, C, R, L, etc.--include_dns (true or false; alone means true; default true). Include DNS (Do Not Stuff) components, flagged dns=true. Pass false to list only fitted parts.--max_results (number; default 50). Max components entries to return. Default: 50.--offset (number; default 0). Index of the first components entry to return, from next_offset. Default: 0.List all net names in a design, sorted alphabetically. Prefer search_nets for targeted queries. nets is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
--max_results (number; default 50). Max nets entries to return. Default: 50.--offset (number; default 0). Index of the first nets entry to return, from next_offset. Default: 0.Search for nets matching a regex pattern. Matching is case-insensitive by default. Returns sorted results keyed by design name, with a notes field when nothing matches. KiCad nets declared inside a hierarchical sheet are sheet-path-prefixed (e.g. a "D0" data line on the Peripherals sheet is named "/Peripherals/D0", not "/D0"), so prefer unanchored patterns like "D0" over "^/D0$" or you may miss bussed/hierarchical nets. A name with leading or trailing whitespace also matches as trimmed, so "^SIG$" finds "SIG ". net_properties gives the design's own properties of the nets listed, such as DIFFERENTIAL_PAIR (the pair a net belongs to: Capture's own property, an Altium Differential Pair directive on both nets, or KiCad's +/- or P/N pair naming less pairs carrying a supply pin) and VOLTAGE, where the design sets them. Rejects patterns that match all items; use list_nets for full results. results is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
--pattern (required; string). Regex pattern.--max_results (number; default 50). Max results entries to return. Default: 50.--offset (number; default 0). Index of the first results entry to return, from next_offset. Default: 0.Search for components by refdes pattern. Matching is case-insensitive. Identical components are grouped for compact output, on MPN, description, comment and value together, so every field a group reports is true of every part in it. component_notes names the parts with no MPN. A notes field is returned when nothing matches. Rejects patterns that match all items; use list_components for full results. results is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
--pattern (required; string). Regex pattern for refdes.--include_dns (true or false; alone means true; default true). Include DNS components, flagged dns=true. Pass false for fitted parts only.--max_results (number; default 50). Max results entries to return. Default: 50.--offset (number; default 0). Index of the first results entry to return, from next_offset. Default: 0.Search for components by MPN (Manufacturer Part Number) pattern. Not all netlists include MPN data; if unavailable, fall back to search_components_by_refdes or search_components_by_description, or ask the user for a BOM. component_notes names the parts with no MPN. Rejects patterns that match all items; use list_components for full results. results is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
--pattern (required; string). Regex pattern for MPN.--include_dns (true or false; alone means true; default true). Include DNS components, flagged dns=true. Pass false for fitted parts only.--max_results (number; default 50). Max results entries to return. Default: 50.--offset (number; default 0). Index of the first results entry to return, from next_offset. Default: 0.Search for components by description pattern. Not all netlists include description data; if unavailable, fall back to search_components_by_refdes or search_components_by_mpn, or ask the user for a BOM. component_notes names the parts with no MPN. Rejects patterns that match all items; use list_components for full results. results is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
--pattern (required; string). Regex pattern for description.--include_dns (true or false; alone means true; default true). Include DNS components, flagged dns=true. Pass false for fitted parts only.--max_results (number; default 50). Max results entries to return. Default: 50.--offset (number; default 0). Index of the first results entry to return, from next_offset. Default: 0.Get full XNET (Extended Net) connectivity for a net. Traces through series components, so the result is the whole electrical node rather than the one net; circuit_hash identifies unique topologies. Traversal stops at power and ground nets: recognised by name (VCC*, VDD*, 3V3, GND, GND1, VSS, ...), by a supply or ground pin on the net (VDD, AVDD, VBUS, GND, PGND, ...), or by carrying more than 40 pins. visited_nets names every net the result crossed. skip_types leaves series passives out; skip_types=['C','L','R'] removes all three from the result. Rejects a net named as a ground (GND, GND1, AGND, VSS, ...; not GND_SW) with an error. components_by_mpn is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only. A name that matches no net exactly is matched ignoring leading and trailing whitespace, then as the 31-character name a PSTWRITER 16.6 Allegro export gives a longer net; notes says when that happened, and a name that could mean several nets returns them. component_notes names the parts with no MPN. net_properties gives the design's own properties of the nets listed, such as DIFFERENTIAL_PAIR (the pair a net belongs to: Capture's own property, an Altium Differential Pair directive on both nets, or KiCad's +/- or P/N pair naming less pairs carrying a supply pin) and VOLTAGE, where the design sets them. If the net is not found, search_nets finds the name.
--net_name (required; string). Net name. An exact match wins; otherwise it is matched ignoring leading and trailing whitespace, and for Cadence as a 31-character PSTWRITER 16.6 name.--skip_types (text, repeat the flag for each). Component prefixes to exclude (e.g., ['C', 'L']).--include_dns (true or false; alone means true; default false). Include DNS components.--max_results (number; default 50). Max components_by_mpn entries to return. Default: 50.--offset (number; default 0). Index of the first components_by_mpn entry to return, from next_offset. Default: 0.Get full XNET connectivity starting from a component pin, named REFDES.PIN (e.g. U1.A5, R10.1). Traces through series components, so the result is the whole electrical node; circuit_hash identifies unique topologies. Traversal stops at power and ground nets, recognised by name (VCC*, VDD*, 3V3, GND, GND1, VSS, ...), by a supply or ground pin on the net, or by carrying more than 40 pins; visited_nets names every net the result crossed. skip_types leaves series passives out, for example skip_types=['C','L','R']. components_by_mpn is paged like query_xnet_by_net_name's. A pin on no net reads as the net NC and returns an empty result. component_notes names the parts with no MPN. net_properties gives the design's own properties of the nets listed, such as DIFFERENTIAL_PAIR (the pair a net belongs to: Capture's own property, an Altium Differential Pair directive on both nets, or KiCad's +/- or P/N pair naming less pairs carrying a supply pin) and VOLTAGE, where the design sets them. Rejects pins on a net named as a ground (GND, GND1, AGND, VSS, ...) with an error.
--pin_name (required; string). Pin spec: REFDES.PIN (e.g., U2.10, U1.A5).--skip_types (text, repeat the flag for each). Component prefixes to exclude.--include_dns (true or false; alone means true; default false). Include DNS components.--max_results (number; default 50). Max components_by_mpn entries to return. Default: 50.--offset (number; default 0). Index of the first components_by_mpn entry to return, from next_offset. Default: 0.Get full component details including all pin connections. Refdes lookup is case-insensitive. Returns MPN, description, value, and pin-to-net mappings when available. Each pin maps to its net name, or to {name, net, type, hidden} carrying whichever of these it has: a function name that differs from its number, the electrical type its symbol declares (input, output, bidirectional, tristate, open_collector, open_emitter, passive, power and the like), and hidden: true for a pin the symbol does not draw. A pin on no net reads as the net "NC", a marker and not a queryable net. If the schematic gives the refdes to several different parts, the result lists every part under components, each carrying error: "Reference designator is duplicated". pins is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only. A duplicated refdes counts its parts' pins together. If the refdes is not found, search_components_by_refdes finds it; errors include guidance and suggestions.
--refdes (required; string). Component reference designator.--max_results (number; default 50). Max pins entries to return. Default: 50.--offset (number; default 0). Index of the first pins entry to return, from next_offset. Default: 0.Run electrical rule checks (ERC) on a design's netlist and return findings grouped by severity (errors, warnings) then rule id. findings is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only. Findings are counted across every rule, errors first; totals gives every rule's count. Rules: net.single_pin (error: one functional pin, no test point), net.testpoint_orphan (error: only test points), net.testpoint_stub (warning: one functional pin plus test points), net.whitespace_in_name (warning: leading or trailing whitespace in a net name), net.whitespace_name_collision (error: separate nets whose names match once trimmed), refdes.duplicate (error: one refdes on several parts; keyed by refdes, {part_count, pages}), refdes.section_repeated (error: a part drawing a section twice; keyed by refdes, [{section, placements, pages}]), net.unnamed (warning: an auto-generated name on a 2+-pin net), and from pin electrical types (an untyped pin never conflicts and may drive): pin.output_conflict (error: drivers that short, such as two outputs), pin.output_contention (warning: a possible fight, such as a three-state pin on a driven net), pin.input_undriven (error: inputs nothing can drive), pin.power_unconnected (error: a power_in pin alone on its net, or under NC), pin.power_undirected_unconnected (warning: the same for an undirected power pin), and capture.erc_error / capture.erc_warning (Capture's saved ERC markers by level, keyed by page). Test points have the TP refdes prefix. Findings key each net to its REFDES.PIN endpoints (always arrays); net.unnamed lists bare net names. checked lists the rules that ran; skipped counts parts left out, such as Do-Not-Stuff ones. include_rules/exclude_rules scope the run, include_dns counts Do-Not-Stuff parts; an unknown rule id returns an error. Other unconnected pins are not checked: they cannot be told apart from intentional no-connects.
--include_dns (true or false; alone means true; default false). Include DNS (Do Not Stuff) components in the checks.--include_rules (text, repeat the flag for each). Only run these rule ids (e.g., ['net.single_pin']). Omit for all.--exclude_rules (text, repeat the flag for each). Skip these rule ids.--max_results (number; default 50). Max findings entries to return. Default: 50.--offset (number; default 0). Index of the first findings entry to return, from next_offset. Default: 0.List the schematic pages of a Cadence .DSN, KiCad or Altium design: a .DSN in the order the netlist reads it, a KiCad design in page-number order (one page per sheet instance), an Altium project in its document order (a repeated sheet once per channel, named <sheet> (<room>)). Each page has its name, schematic, sheet size, title and page number from its title block, and counts of parts, nets, ports and off-page connectors. A Cadence schematic placed by several hierarchical blocks appears once per placement, named <page> (block <path>); a KiCad sheet is named by its sheet path, such as Power/LDO, and the root sheet by its name. Use get_page for one page's contents.
One schematic page of a Cadence .DSN, KiCad or Altium design as drawn: its parts (refdes, value, symbol, location, rotation, mirror, box, and pins with their electrical types and nets), wires with their nets, net labels, hierarchical ports with their direction, globals (power and ground symbols, and KiCad global labels), off-page connectors, bus entries, hierarchical blocks, the title-block fields, text_notes (free text the designer placed on the page, such as jumper defaults and current ratings), and erc_markers (messages Capture's own design rules check left on the page; KiCad and Altium save none). Net names match list_nets. Coordinates are in mils (1/1000 inch), x to the right and y down from the sheet's top-left corner. Name the page as list_pages reports it.
--page (required; string). Page as list_pages names it; its plain name, or /, when only one page has that name.Search the notes on every schematic page of a Cadence .DSN, KiCad or Altium design: free text the designer placed on a page, such as default jumper settings, current ratings, assembly options and references to other sheets, which no netlist carries. Returns each note matching a regex pattern (case-insensitive) with its page, as list_pages names it, and its position in mils. Search a net or part name to find the notes that mention it. text_notes is paged: max_results entries (default 50) from offset, and next_offset is set when there are more. Notes about parts and nets cover the page only.
--pattern (required; string). Regex pattern, matched case-insensitively against each note.--max_results (number; default 50). Max text_notes entries to return. Default: 50.--offset (number; default 0). Index of the first text_notes entry to return, from next_offset. Default: 0.Render one schematic page of a Cadence .DSN, KiCad or Altium design as a PNG image, drawn from the design files: symbols, pins with their numbers and names, wires, junctions, net labels, ports, power and ground symbols, off-page connectors, text and the title block (Cadence). Pass focus to crop to one part (a refdes) or everything on one net, with a margin. Name the page as list_pages reports it. On the command line the PNG is written to --output.
--page (required; string). Page as list_pages names it.--focus (string). A refdes or net name on the page: crop to that part, or to everything on that net. Omit for the whole page.--output (string). PNG path to write. Default: .png in the working directory.These tools are not offered by the MCP server. Each takes the shared flags above as well as its own, and prints its result as the query tools do.
To answer a question about a design, run a query tool: it reads the design directly and returns only what was asked, at a fraction of the cost of reading a whole-netlist file. Export a design only when the netlist itself must be post-processed in Universal Netlist format, by a script or another program, or kept as a snapshot of one build.
Write one build of a design as a Universal Netlist JSON file (.netlist.json), for a program that post-processes the whole netlist outside universal-netlist. To answer a question about a design, use the query tools instead: they read the design directly and return only what was asked. A design with named variants is exported as the one design_variant names, and the file records it in metadata.designVariant; each part's dns flag is its Do Not Stuff state in that build. The written file is itself a design every tool reads. Command line only; the MCP server does not offer it.
--output (string). Output path, ending in .netlist.json. Default: .netlist.json in the working directory.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub intelligentelectron/universal-netlist --plugin universal-netlistOther plugins' skills for the same job