experience-cms-content-type-generate
experience-cms-content-type-generate
What This Skill Does
- DISCOVER — checks local
<sfdx-source>/contentTypes/and queriesmetadata-groundingfor existing OOTB/custom ContentTypeBundles. - RECONCILE — on existing pick/provided FQN, retrieves from org (custom only) and reconciles against local. Returns
{fqn, schema}matching the org. - CREATE — generates a validator-correct ContentTypeBundle (
schema.json,.contentTypeBundle-meta.xml). - VALIDATE —
sf project deploy start --dry-runagainst the CLI default (or picked) org. - AUTO-FIX — fixes schema issues, re-validates (max 3 attempts).
- DEPLOY — asks yes/no, deploys on yes.
Create-only for new types, reconcile-only for existing. Does not modify, rename, or delete existing bundles beyond replacing a local copy with the org copy on user consent; does not author content records. If the message asks to add/rename/remove a field on an existing type (verbs add/append/remove/drop/rename/change/modify/update targeting an FQN or named type), print ONE line before 1a: This skill is create-only for new types and reconcile-only for existing. To modify "<fqn|name>", edit its schema.json and redeploy, or use the CMS UI. — then continue discovery so the user lands on the type's summary (7.5). Do NOT silently proceed as if the modification happened.
Invocation contract
Invoked directly by the user or delegated to by another skill (e.g. experience-cms-content-generate). Two halves: input params the caller supplies, and a return outcome emitted at every terminal state.