What problem does it solve? Building Salesforce OmniStudio document templates fails in opaque ways: blank tokens, silent Extract failures, phantom array rows, and engine crashes from malformed image or hyperlink contracts. This Skill provides the verified token syntax, Extract/Transform ODT wiring rules, lifecycle procedures, and troubleshooting tables needed to produce working invoice, quote, and contract documents. ## Core Features & Use Cases - Template authoring and token mapping: Defines the full token contract (scalar, repeating sections, IF_ conditions, IMG_ images, HYP_ links, RTB_ rich text) and how Transform output keys must match .docx tokens exactly. - Extract/Transform ODT wiring: Documents object query join patterns, filter semantics, formula function catalog, and the depth-uniformity rules that prevent cartesian products and phantom rows. - Lifecycle and verification tooling: Covers docgen_template_* scripts for template build, token extraction, activation/deactivation, and end-to-end generation smoke tests via DocumentGenerationProcess. - Use Case: Add a new field to a quote proposal template by inserting the token in the .docx, adding a field mapping to the Extract ODT, a pass-through to the Transform ODT, reactivating both ODTs, replacing the template binary, and verifying with a generation run. ## Quick Start Use the document-generation skill to add a BillingCity token to the RLM_QuoteProposal template and verify it renders by running an end-to-end generation test.