Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Convert canonical training examples to Alpaca format for training frameworks
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 49% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -39% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -30% | 0% |
Convert canonical training example records (@agentic/code/frameworks/training-complete/schemas/example-record.yaml) into Alpaca-format JSONL for downstream SFT training frameworks. Alpaca is the original Stanford self-instruct format and remains widely supported by trainers like Axolotl, LLaMA-Factory, and Unsloth.
<input-glob> (required) — glob of canonical records (e.g., examples/raw/*.json)--output <path> (optional) — output JSONL path. Default: .aiwg/training/exports/alpaca-<timestamp>.jsonl--validate-round-trip (optional) — reload output and diff against canonical invariants before succeedingOne JSON object per line with fields {instruction, input, output}:
json{"instruction": "You are a helpful assistant.", "input": "Explain photosynthesis in one sentence.", "output": "Photosynthesis is the process by which plants convert sunlight, water, and CO2 into glucose and oxygen."}
example-record.yaml; reject invalid records.instruction ← input.system (fallback to input.user if no system prompt)input ← input.user (empty string "" if input.system was empty and input.user was promoted to instruction)output ← output.assistantinstruction and output are non-empty; reject preference/tool_use records (not representable — route to sharegpt/chatml adapter).--validate-round-trip) — parse output back and confirm canonical invariants (id, task_type, input.user, output.assistant, quality_grade, license, provenance_id) survive via sidecar.format-convert event via memory-log-append.Alpaca fields cover only input.user and output.assistant. All other invariant fields (id, task_type, quality_grade, license, provenance_id) are preserved via sidecar.
Written alongside output as <output>.metadata.yaml — contains a list keyed by line number with: id, task_type, metadata.*, output.reasoning_trace, output.tool_calls, input.context_refs, and input.tools_available. Reasoning traces and tool calls are structural losses in Alpaca — always go to sidecar.
--validate-round-trip reconstructs canonical invariants 100% from (JSONL + sidecar).format-convert event is logged with input count, output count, and rejection count.@agentic/code/addons/semantic-memory/skills/memory-log-append/SKILL.md — logging the format-convert eventOther measured skills in the registry, with their headline benchmark lift.