| name | header-generation |
| description | Generates a valid L9 header JSON from kind and sender. |
L9 Header Generator
Context / Trigger Requirements
Use this skill when you need to produce a standalone L9 header as valid JSON on stdout.
Schema Reference
Fetch the raw content from these URLs before generating output:
You can curl or fetch the data from those URLs. Do not rely on cached or memorized schema content.
Input Parameters
The user must provide:
kind — one of the Kind enum values from the schema (e.g. intent, contingency, exchange, commit, knowledge)
subprotocol — the subprotocol identifier (e.g. SIEP, CIP, TFP, SAB)
Auto-generate sender_id as a UUID (v4). Derive all other fields and their types from the fetched schema ($defs.L9Header).
Instructions
- Fetch the schema and model files from the URLs above.
- Parse the fetched content to extract field requirements, types, and enum values.
- Generate an
L9Header conforming to the schema.
- Output ONLY valid JSON. No explanation, no markdown fences.
Constraints
L9Header.protocol is always "SSTP".
- All validation rules MUST come from the fetched schema/model files, not hardcoded assumptions.
- You MUST fetch the remote files every time — do not assume schema content from memory.
- Output valid JSON only.