schema-normalizer
БесплатноЗапускает вложенные скриптыНе проверенNormalize cross-skill JSONL interfaces (ids + titles + citation key formats) so downstream skills do not rely on best-effort joins.
от WILLOSCAR★ 521 звезда на GitHubОб этом скилле
Schema Normalizer (NO PROSE)
Triggers & routing
- Trigger: schema normalize, jsonl contract, interface drift, join drift, 字段不一致, schema 规范化.
- Use when: you have generated C2-C4 JSONL artifacts (outline/briefs/bindings/packs/anchors) and want deterministic, stable fields before self-loops/writing.
Purpose: close a common failure mode in skills-first pipelines: schema drift across JSONL artifacts.
When fields are inconsistent (missing ids/titles, mixed citation-key formats), downstream skills start doing best-effort joins and fragile parsing. This skill makes the interface explicit and deterministic.
Inputs
outline/outline.yml(source of truth for section/subsection ids + titles)- Optional (for citation-key sanity):
citations/ref.bib - Default JSONL artifacts to normalize (arxiv-survey(-latex) C4 bridge):
outline/subsection_briefs.jsonloutline/chapter_briefs.jsonloutline/evidence_bindings.jsonloutline/evidence_drafts.jsonloutline/anchor_sheet.jsonl
- Optional (run after writer packs are generated):
outline/writer_context_packs.jsonl
Outputs
output/SCHEMA_NORMALIZATION_REPORT.md(always written; PASS/FAIL + what changed)- The processed JSONL files are normalized in place (a
.bak.*is created if changes are applied).
What gets normalized
1) IDs + titles (join keys)
For any record with sub_id: "<H2>.<H3>":
- Ensure
section_idexists (derived from the prefix before the dot) - Ensure
title,section_titleexist (filled fromoutline/outline.yml)
For any record with section_id: "<H2>":
- Ensure
section_titleexists (filled fromoutline/outline.yml)
2) Citation key format (reduce parsing drift)
Within these C2-C4 JSONL artifacts, normalize citation keys so they are raw BibTeX keys (no @ prefix):
"citations": ["smith2023", "jones2024"]
Notes:
- Final prose still uses Markdown citations:
[@smith2023]. - This skill does not add/remove citations; it only normalizes formatting.
When to run
Recommended placement in arxiv-survey(-latex):
- Run after
evidence-draft+anchor-sheetand beforewriter-context-pack+evidence-selfloop. - This ensures
outline/evidence_drafts.jsonlandoutline/anchor_sheet.jsonlare schema-stable before drafting packs are built.
Failure modes
- If
outline/outline.ymlis missing or cannot be parsed, the skill FAILs. - If any target JSONL contains invalid JSON lines, the skill reports them and FAILs (do not proceed on corrupted artifacts).
Script (optional)
Quick Start
uv run python .codex/skills/schema-normalizer/scripts/run.py --help- Normalize the C4 bridge artifacts:
uv run python .codex/skills/schema-normalizer/scripts/run.py --workspace <workspace>
All Options
--workspace <dir>--unit-id <U###>--inputs <semicolon-separated>--outputs <semicolon-separated>--checkpoint <C#>
Examples
Normalize the default C4 artifacts (ids/titles + citations format):
uv run python .codex/skills/schema-normalizer/scripts/run.py --workspace <workspace> --inputs outline/outline.yml;citations/ref.bib;outline/subsection_briefs.jsonl;outline/chapter_briefs.jsonl;outline/evidence_bindings.jsonl;outline/evidence_drafts.jsonl;outline/anchor_sheet.jsonl --outputs output/SCHEMA_NORMALIZATION_REPORT.md
Normalize writer packs too (if you are running this after
writer-context-pack):uv run python .codex/skills/schema-normalizer/scripts/run.py --workspace <workspace> --inputs outline/outline.yml;citations/ref.bib;outline/writer_context_packs.jsonl --outputs output/SCHEMA_NORMALIZATION_REPORT.md
Установить schema-normalizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл schema-normalizer?
Normalize cross-skill JSONL interfaces (ids + titles + citation key formats) so downstream skills do not rely on best-effort joins.
Как установить скилл schema-normalizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл schema-normalizer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic