一键导入
format-adapter-sharegpt
Convert canonical training examples to ShareGPT format for training frameworks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert canonical training examples to ShareGPT format for training frameworks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate Datasheet, Model Card, and Data Statement from a dataset manifest
Deterministically rebuild a dataset from its manifest and verify fixity equivalence
Create a versioned training dataset with manifest, fixity, provenance, and archive snapshot
End-to-end training dataset pipeline — acquire sources through publication
Detect training-eval overlap against benchmark sets before dataset publication
Generate SFT training examples from raw sources using Self-Instruct / Evol-Instruct / SQuAD / STaR patterns
| name | format-adapter-sharegpt |
| description | Convert canonical training examples to ShareGPT format for training frameworks |
| namespace | training-complete |
| category | format |
| platforms | ["claude","copilot","cursor","factory","windsurf","warp","codex","opencode","openclaw","hermes"] |
| commandHint | {"argumentHint":"<input-glob> [--output <path>] [--validate-round-trip]"} |
Convert canonical training example records (@agentic/code/frameworks/training-complete/schemas/example-record.yaml) into ShareGPT-format JSONL — the multi-turn conversation schema popularized by Axolotl, LLaMA-Factory, and the open-source dialogue tuning community.
dialogue task examples where turn roles matter<input-glob> (required) — glob of canonical records--output <path> (optional) — default: .aiwg/training/exports/sharegpt-<timestamp>.jsonl--validate-round-trip (optional) — reload output and verify invariantsOne JSON object per line with a conversations array of {from, value} turns:
{"conversations": [{"from": "system", "value": "You are helpful."}, {"from": "human", "value": "Hello"}, {"from": "gpt", "value": "Hi there!"}]}
Role mapping: system → "system", user → "human", assistant → "gpt".
conversations array:
input.system → {from: "system", value: ...} (if present)input.user → {from: "human", value: ...}output.assistant → {from: "gpt", value: ...}context_refs chain to reconstruct prior turns if any.--validate-round-trip) — rebuild canonical record from conversations + sidecar.format-convert event.Conversation structure captures input.system, input.user, output.assistant. Preserved via sidecar: id, task_type, full metadata, reasoning_trace. Tool calls are inlined into the gpt turn value (serialized JSON) when small; otherwise routed to sidecar.
<output>.metadata.yaml holds per-line: id, task_type, full metadata.*, output.reasoning_trace, large output.tool_calls, and any context_refs that could not be reconstructed as prior turns.
--validate-round-trip reconstructs all round-trip invariants.format-convert event logged with input/output/rejection counts.@agentic/code/addons/semantic-memory/skills/memory-log-append/SKILL.md — logging the format-convert event