zener-language
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseZener Language
Zener语言
Use this skill as the semantics companion to for non-trivial work.
idiomatic-zener.zen将此技能作为的语义配套工具,用于复杂的开发工作。
idiomatic-zener.zenWorkflow
工作流程
- Start from nearby workspace code. Prefer the local package's patterns before generic examples.
- Open only the relevant reference file:
- for modules, nets/interfaces, components,
references/language.md,io(), utilities, and tool-managed metadataconfig() - for imports, workspace layout, manifests, dependencies, and
references/packages.mdpcb.sum - for prelude, interfaces, units, checks, utils, properties, and generics
references/stdlib.md - for example snippets
references/examples.md
- shows the public API (types, io, config) of installed packages. It returns type-level listings, not field-level details — for interface field names, check the stdlib reference above or read the source in
pcb doc --package <package>..pcb/stdlib/ - For broader toolchain semantics, consult and
~/.pcb/docs/spec.md.~/.pcb/docs/packages.md - Check exact semantics before editing when the code touches unfamiliar syntax, manifests, imports, stdlib APIs, or package interfaces.
- Never invent syntax, stdlib modules, interfaces, fields, or package APIs.
- 从本地工作区代码入手。优先采用本地包的模式,而非通用示例。
- 仅打开相关参考文件:
- :涵盖模块、网络/接口、组件、
references/language.md、io()、实用工具以及工具管理的元数据config() - :涵盖导入、工作区布局、清单、依赖项以及
references/packages.mdpcb.sum - :涵盖预导入内容、接口、单元、检查、工具类、属性以及泛型
references/stdlib.md - :涵盖示例代码片段
references/examples.md
- 命令可显示已安装包的公开API(类型、io、配置)。它返回类型级别的列表,而非字段级详情——若需查看接口字段名称,请查阅上述标准库参考文件,或阅读
pcb doc --package <package>中的源代码。.pcb/stdlib/ - 如需了解更广泛的工具链语义,请查阅和
~/.pcb/docs/spec.md。~/.pcb/docs/packages.md - 当代码涉及不熟悉的语法、清单、导入、标准库API或包接口时,在编辑前务必确认确切语义。
- 切勿自创语法、标准库模块、接口、字段或包API。