--- name: generating-custom-tab description: "Use this skill when users need to create or configure Salesforce Custom Tabs. Trigger when users mention tabs, navigation tabs, object tabs, web tabs, Visualforce tabs, Lightning component tabs, app page tabs, or tab configuration. Also use when users want to add navigation to custom objects, create tabs for external content, or set up Lightning page tabs. Always use this skill for any custom tab work." metadata: version: "1.0" --- ## When to Use This Skill Use this skill when you need to: - Create tabs for objects, web pages, or Visualforce pages - Add navigation tabs to applications - Configure tab visibility and access - Troubleshoot deployment errors related to custom tabs ## Specification # CustomTab Metadata Specification ## 📋 Overview Custom tabs for navigating to objects, web content, or Visualforce pages within Salesforce applications. ## 🎯 Purpose - Provide navigation to custom objects - Link to external web content - Access Visualforce pages - Organize application navigation ## ⚙️ Required Properties ### Core Tab Properties - **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`), `