Install
openclaw skills install @zhaoxinghua09-cell/output-schema-guardTreat model output as untrusted input: validate JSON against a schema for required fields, types and allowed values, then return a fix hint instead of a raw parse error. 当用户说『模型返回的JSON又崩了』『字段缺失对不上』『下游解析失败』『怎么强制LLM输出合规结构』,或要把 LLM 的 JSON/结构化输出接进代码(API/数据库/表单)时使用。把模型输出当『不可信外部输入』:用 schema 校验必填字段·类型·枚举,缺则给可执行的修复提示而非裸报错。理论根基:LGD 三律(有籍·有证·有门禁)。触发词:结构化输出、JSON校验、schema guard、输出格式、字段缺失、模型输出解析、function calling、tool output。
openclaw skills install @zhaoxinghua09-cell/output-schema-guard凡自治之物 · LGD 治理学 · 创造术家族 | 评测协议:skill-quality-gate
The core script is schema_guard.py, callable either as an imported Python module or directly from the command line. Two key parameters are required: the raw text or JSON string to be validated, and a schema-definition object (required fields, data types and enum-value lists). The skill loads and caches its internal logic in __pycache__ automatically; no manual compilation is needed.
schema_guard.py for initialization and data loading.核心脚本为 schema_guard.py,支持通过 Python 模块导入方式或直接命令调用。调用时需提供两个关键参数:一是待校验的原始文本或 JSON 字符串,二是 Schema 定义对象(含必填字段、数据类型及枚举值列表)。技能将自动在内部加载并缓存于 __pycache__ 环境中的逻辑,无需用户手动编译即可运行。
schema_guard.py 脚本进行初始化配置与数据加载。这些是用户真实会说的话(中 / 英对照),命中任一即应加载本技能:
Trigger when the user says any of the above, in Chinese or English.
This skill is one door of the LGD ecosystem — every entry below is publicly reachable. 本技能是 LGD 生态 的一个入口,下列地址均对公网可达。
Tell your AI assistant: "Find me an LGD skill that can " — the hub lists every published skill with a one-line purpose. 跟你的 AI 助手说一句「去 LGD 生态超市找能……的技能」,总入口按用途列全了所有已发布技能。