diff --git a/skills/salesforce-custom-tab/SKILL.md b/skills/salesforce-custom-tab/SKILL.md index d10861f..865f82b 100644 --- a/skills/salesforce-custom-tab/SKILL.md +++ b/skills/salesforce-custom-tab/SKILL.md @@ -27,27 +27,99 @@ Custom tabs for navigating to objects, web content, or Visualforce pages within ## ⚙️ Required Properties ### Core Tab Properties -- **label**: Display name of the tab -- **fullName**: API name of the object (for object tabs) +- **customObject**: `true` for custom object tabs, `false` for all others. +- **motif**: Tab icon style — choose a motif that semantically matches the object's purpose. Do NOT reuse the same motif for every tab. +- **label**: Display name (required for non-object tabs ONLY; object tabs inherit label from the object) - **url**: Web URL (for web tabs) - **page**: Visualforce page name (for Visualforce tabs) + +### 🚨 STRICT ELEMENT ALLOWLIST — READ THIS FIRST + +**The root element MUST always be `` (NOT ``).** The XML namespace must be `xmlns="http://soap.sforce.com/2006/04/metadata"`. + +Only the elements listed below are valid. **Any element not on this list WILL cause a deployment error.** + +| Tab Type | ONLY these elements are allowed (nothing else) | +|---|---| +| **Object tabs** | `` (required, set to `true`), `` (required), `` (optional) | +| **Web tabs** | `` (required, set to `false`), `