后端与数据库

zener-language

diodeinc/pcb

Read or edit Zener HDL, package APIs, and tool-managed dependencies.

  • 1745 次安装
  • 469 星标
  • 收录于

安装命令

npx skills add https://github.com/diodeinc/pcb --skill zener-language

SKILL.md

Zener Language

Zener is Starlark plus PCB-specific modules, typed electrical connections, physical parts, sourcing, layout, and diagnostics.

Discover Before Authoring

Use pcb list -m -json @stdlib or pcb list -m -json <package>[@<version>] to find a package's local source directory, then read its .zen files for the public API and exact behavior.

For CLI behavior, use the installed command's --help; do not invent or infer subcommands or flags. When version history matters, inspect the installed version and nearby entries in the pcb changelog instead of relying on old examples.

Modules and Components

A .zen file can be:

  • a normal Starlark module imported with load(); or
  • an instantiable schematic module imported with Module().

Relative paths stay within the current package. Cross-package imports use full package URLs: