Manuscript cross-references (registry tokens)
For Pandoc-crossref @fig: / [@key] exemplars, see docs/guides/manuscript-semantics.md. This skill is for YAML registry + inline tokens.
Convention, not built-in infrastructure.
refs/labels.yamland[[FIG:]]/[[THMREF:]]/[[VAR:]]tokens are a project-authored convention, not a dedicated parser ininfrastructure/: no current public exemplar underprojects/templates/uses this style (all ship Pandoc-crossref), and there is nolabels.yaml-specific validator. Validation for a project that adopts this convention still runs through the genericinfrastructure.validation.cli markdown/prerenderchecks below plus project-local test coverage the project author writes — token expansion is the project's ownmanuscript_variables.py-style substitution, not a shared registry engine.
Natural invoke
- "Audit [[FIG:]] tokens in actinf_policy_entanglement_lean manuscript"
- "Hard-coded section numbers in prose — tokenize them"
- "labels.yaml has orphan keys"
Inputs to confirm
- Scope —
projects/<name>/manuscript/path or project name. - Style — confirm registry/token vs pure Pandoc-crossref (do not mix styles in repairs).
Workflow
Registry truth —
refs/labels.yaml(figures, equations, sections, theorems) andrefs/citations.yamlor hybridreferences.bib. Every token label must exist; every[@citekey]must resolve.No hard-coded numbers — prefer
[[THMREF:…]],[[SECREF:…]],[[FIGREF:…]],[[EQREF:…]]over "Theorem 7.3", "§8", "Figure 2" in body prose.Captions — YAML-stored captions may not expand
[[…]]unless renderer documents second pass.Sync — subsection headings and
labels.yamlsection/theorem numbers aligned; grep for stale numbers after renumbering.Bibliography — if
99_*uses[[CITELIST:all]], do not hand-maintain a parallel list.Report — missing/orphan/duplicate keys; hard-coded numbers to tokenize; concrete edits (file + snippet).
Verification commands
uv run python -m infrastructure.validation.cli markdown projects/<name>/manuscript/
uv run python -m infrastructure.validation.cli prerender projects/<name>/manuscript --repo-root .
When NOT to use
- Full manuscript scaffold → manuscript-creation
- Triple-check every factual claim → manuscript-claim-verification
References
docs/rules/manuscript_style.md- Project-local
manuscript/refs/README.mdwhen present