AGENT SKILL
validate-mappings
Validates the invariants of the conversion table (id uniqueness, direction/loss value domains, degrade⇒lossy, no transform on dropped) when mappings/*.yaml has been edited or before committing. Always use this after modifying mappings. Use when asked to "check mappings", "validate mappings", or "validate mappings".
- License 许可
- MIT
- 最近更新
- 2026-10-15
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- validate-mappings
- description
- Validates the invariants of the conversion table (id uniqueness, direction/loss value domains, degrade⇒lossy, no transform on dropped) when mappings/*.yaml has been edited or before committing. Always use this after modifying mappings. Use when asked to "check mappings", "validate mappings", or "validate mappings".
- allowed-tools
- [ "Bash(python3 *)" ]
03 SKILL.md 正文
Steps
-
Run the validation script.
uv run "$CLAUDE_PROJECT_DIR/scripts/validate-mappings.py" -
If all results are OK, report completion.
-
If any NG results appear, fix the errors according to the vocabulary definitions in
mappings/SCHEMA.md.id uniquenessviolation → Find entries with duplicate ids and change one to a different id.directiondomain violation → Fix to one ofboth/claude_to_codex/codex_to_claude.lossdomain violation → Fix to one oflossless/lossy/dropped.degrade⇒lossyviolation → Entries withdegradeset must haveloss: lossy.transform on droppedviolation → Entries withloss: droppedmust not havetransform(set it back tonull).
-
After fixing, run the script again to confirm all results are OK.