with one click
update-typst-grammar-authoring
// Use when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source.
// Use when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source.
Archive a completed change in the experimental workflow. Use when the user wants to finalize and archive a change after implementation is complete.
Use when authoring or validating Typst documents from canonical grammar examples, especially when you need compile, HTML, or SVG-based validation workflows.
| name | update-typst-grammar-authoring |
| description | Use when maintaining the portable typst-grammar-authoring skill from this repository's canonical Typst grammar source. |
| metadata | {"short-description":"Regenerate the portable Typst grammar skill"} |
Use this skill when a maintainer needs to refresh the portable
typst-grammar-authoring skill after changing the canonical grammar examples in
src/tutorial/reference-grammar.typ.
src/tutorial/reference-grammar.typ.codex/skills/typst-grammar-authoring/SKILL.md.codex/skills/update-typst-grammar-authoring/references/grammar-catalog.jsonReview the source edits in src/tutorial/reference-grammar.typ and confirm
they are ready to publish into the portable skill.
Regenerate the portable skill body and traceability artifact:
python .codex/skills/update-typst-grammar-authoring/scripts/generate_grammar_catalog.py
Review the generated diff for the portable skill and the traceability JSON:
git diff -- .codex/skills/typst-grammar-authoring/SKILL.md .codex/skills/update-typst-grammar-authoring/references/grammar-catalog.json
Verify the portable skill stayed single-file:
Get-ChildItem -Force .codex/skills/typst-grammar-authoring
Verify the portable skill's command examples stayed platform-neutral and did not reintroduce Windows absolute paths:
rg -n "[A-Za-z]:\\\\|path\\\\to|target\\\\typst-grammar-authoring-check|\\.codex\\\\skills|src\\\\tutorial" .codex/skills/typst-grammar-authoring/SKILL.md
If the regenerated lookup looks correct, keep the portable skill focused on
author guidance only. Any exact source mapping belongs in the updater-owned
traceability JSON, not in the portable SKILL.md.
typst-grammar-authoring folder limited to SKILL.md..codex/skills/update-typst-grammar-authoring/references/grammar-catalog.json
as the source-mapping artifact for maintainers.