一键导入
generate-and-validate
Generates an L9 message then validates it against the schema. Reports message + PASS/FAIL.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generates an L9 message then validates it against the schema. Reports message + PASS/FAIL.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | generate-and-validate |
| description | Generates an L9 message then validates it against the schema. Reports message + PASS/FAIL. |
User Input → [Parse] → [message_generation] → [message_validation] → Output
/generate_and_validate kind: exchange, subprotocol: SIEP, payload_type: text, payload_data: {"content": "hello"}
Parse user input to extract: kind, subprotocol, payload_type, payload_data.
[PARSE] Extracted — kind: <kind>, subprotocol: <subprotocol>, payload_type: <payload_type>, payload_data: <payload_data>Generate — Invoke the Skill tool with skill: "message_generation" passing the extracted parameters as args. Collect the generated L9 message JSON.
[GENERATE] Invoking message_generation with args: kind=<kind>, subprotocol=<subprotocol>, payload_type=<payload_type>, payload_data=<payload_data>[GENERATE] ✓ Message generated successfully (<byte_size> bytes)[GENERATE] ✗ Generation failed: <error_message>Validate — Invoke the Skill tool with skill: "message_validation" passing the generated message JSON as args. Collect the validation report.
[VALIDATE] Invoking validate with generated message[VALIDATE] ✓ Validation complete — status: <PASS|FAIL>[VALIDATE] ✗ Validation invocation failed: <error_message>Output in this format:
## Execution Log
<all log lines from steps 1-3, one per line>
## Generated L9 Message
<message JSON>
## Validation Result
<JSON with status PASS/FAIL and errors array>
message_generation — do not inline its logic.message_validation — do not inline its logic.<placeholder>
Generates a valid L9 header JSON from kind and sender.
Generates a complete L9 message (header + payload) as valid JSON.
Converts an L9 JSON message into a simple human-readable string.
Validates an L9 JSON message against the schema. Reports PASS or FAIL.
Converts plain-text input into a valid L9 exchange message.