用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jmagly/aiwg-training --skill format-adapter-chatml命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | format-adapter-chatml |
| description | Convert canonical training examples to ChatML 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 ChatML / OpenAI messages format — the native structure used by OpenAI fine-tuning, most modern chat models, and HuggingFace apply_chat_template.
SFTTrainer and a ChatML tokenizer templatetool_calls structure without serialization losses<input-glob> (required) — glob of canonical records--output <path> (optional) — default: .aiwg/training/exports/chatml-<timestamp>.jsonl--validate-round-trip (optional) — reload output and verify invariantsOne JSON object per line containing a messages array with typed roles:
{"messages": [{"role": "system", "content": "You are helpful."}, {"role": "user", "content": "What time is it?"}, {"role": "assistant", "content": null, "tool_calls": [{"id": "t1", "type": "function", "function": {"name": "now", "arguments": "{}"}}]},
Roles: system | user | assistant | tool. Native tool_calls on assistant messages.
messages array:
input.system → {role: "system", content: ...} (if present)input.user → {role: "user", content: ...}output.assistant → {role: "assistant", content: ...} with native tool_calls attached{role: "tool", tool_call_id, content}--validate-round-trip) — rebuild canonical record and verify invariants.format-convert event.ChatML preserves input.system, input.user, output.assistant, and output.tool_calls natively. Preserved via sidecar: id, task_type, full metadata, output.reasoning_trace (ChatML has no first-class CoT field — reasoning lives in sidecar unless using <thinking> tags).
<output>.metadata.yaml holds per-line: id, task_type, full metadata.*, output.reasoning_trace, and any context_refs / tools_available schemas that were not inlined into messages.
tool_use records round-trip without loss (native tool_calls used).--validate-round-trip reconstructs all canonical 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基于 SOC 职业分类