
Salesforce Custom Tab Generator
OfficialFreeEffortlessly create and configure custom tabs in Salesforce.
Free · Opens the source repo
What Salesforce Custom Tab Generator does
The Salesforce Custom Tab Generator skill is designed for developers and administrators who need to create and configure custom tabs within Salesforce applications. This skill is triggered by user queries related to various types of tabs, including object tabs, web tabs, Visualforce tabs, and Lightning component tabs. It provides detailed instructions on how to set up these tabs effectively, ensuring that users can navigate to custom objects, link to external web content, or access Visualforce pages seamlessly.
When using this skill, users can easily follow the structured guidelines to define the necessary properties for each tab type. For instance, when creating object tabs, users must specify properties like customObject and motif, while web tabs require a url and label. The skill emphasizes the importance of adhering to a strict element allowlist to prevent deployment errors, which is crucial for maintaining a smooth workflow in Salesforce development.
This skill serves as a valuable resource for Salesforce developers looking to enhance their applications with custom navigation elements. By providing clear examples and templates, it helps streamline the tab creation process, reducing the likelihood of errors and improving overall efficiency. Whether you're adding navigation to custom objects or setting up tabs for external content, this skill ensures you have the right information at your fingertips.
In summary, the Salesforce Custom Tab Generator skill is an essential tool for anyone involved in Salesforce development, offering practical guidance for creating and managing custom tabs effectively.
When to use it
Use this skill when you need to create or configure custom tabs for Salesforce applications, including object, web, and Visualforce tabs.
When not to use it
This skill is not suitable for general Salesforce development tasks outside of tab creation and configuration, nor for users unfamiliar with XML metadata structure.
What you can build with it
Creating Object Tabs
Use this skill to define object tabs for custom Salesforce objects, ensuring proper navigation and access.
Setting Up Web Tabs
Leverage this skill to create web tabs that link to external content, enhancing your Salesforce application's functionality.
Configuring Visualforce Tabs
Utilize this skill to set up Visualforce tabs, allowing users to access custom pages directly within Salesforce.
How to install Salesforce Custom Tab Generator
View source1. Install with the skills CLI
npx skills add forcedotcom/sf-skills/platform-custom-tab-generate --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by forcedotcomWhen 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:
truefor custom object tabs,falsefor 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 <CustomTab> (NOT <Tab>). 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 | <customObject> (required, set to true), <motif> (required), <description> (optional) |
| Web tabs | <customObject> (required, set to false), <label> (required), <motif> (required), <url> (required), <urlEncodingKey> (required, set to UTF-8), <description> (optional), <frameHeight> (optional) |
| Visualforce tabs | <customObject> (required, set to false), <label> (required), <motif> (required), <page> (required), <description> (optional) |
FORBIDDEN ELEMENTS (every one of these causes a deployment error)
<sobjectName>, <name>, <fullName>, <apiVersion>, <isHidden>, <tabVisibility>, <type>, <mobileReady>, <urlFrameHeight>, <urlType>, <urlRedirect>, <encodingKey>, <height>, <auraComponent>
Also forbidden:
<label>on object tabs (object tabs inherit their label from the custom object)<page>on web tabs (only for Visualforce tabs)- Empty elements like
<page></page>or<description></description> - Any element not in the allowlist table above
Tab Types
Object Tabs
- Purpose: Navigate to custom or standard objects
- File name determines the object:
{ObjectApiName}.tab-meta.xml(e.g.,Space_Station__c.tab-meta.xml) - Required elements:
<customObject>true</customObject>and<motif> - Correct example (for a Space_Station__c.tab-meta.xml):
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom39: Telescope</motif>
</CustomTab>
- Correct example (for a Supply__c.tab-meta.xml — note different motif):
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<motif>Custom98: Truck</motif>
</CustomTab>
- ❌ WRONG — do NOT add
<sobjectName>,<name>,<fullName>, or<label>:
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<sobjectName>Space_Station__c</sobjectName> <!-- DEPLOYMENT ERROR -->
<label>Space Station</label> <!-- DEPLOYMENT ERROR on object tabs -->
<customObject>true</customObject>
<motif>Custom57: Desert</motif>
</CustomTab>
Web Tabs
- Purpose: Link to external websites or web applications
- File name: Use a descriptive name:
{TabName}.tab-meta.xml(e.g.,Knowledge_Base.tab-meta.xml) - COPY THIS EXACT TEMPLATE — only replace the placeholder values. Do NOT add, remove, or rename any XML elements:
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>false</customObject>
<description>REPLACE_WITH_DESCRIPTION</description>
<frameHeight>600</frameHeight>
<label>REPLACE_WITH_LABEL</label>
<motif>REPLACE_WITH_MOTIF</motif>
<url>REPLACE_WITH_URL</url>
<urlEncodingKey>UTF-8</urlEncodingKey>
</CustomTab>
- These 7 elements above are the ONLY elements allowed in a web tab file. Do not add ANY other elements.
- The
<description>element is optional — you may remove it if not needed, but do not add anything else.
Visualforce Tabs
- Purpose: Access custom Visualforce pages
- File name:
{TabName}.tab-meta.xml(e.g.,Custom_Page_Tab.tab-meta.xml) - Required elements:
<customObject>false</customObject>,<label>,<motif>,<page> - Correct example:
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>false</customObject>
<label>Custom Page</label>
<motif>Custom46: Computer</motif>
<page>CustomPage</page>
</CustomTab>
Tab Configuration
Tab Style
- Default: Use standard tab styling
- Custom: Can specify custom tab styles if needed
Tab Visibility
- Default: Visible to all users with access
- Custom: Can be configured for specific user profiles
Supported Applications
- Standard Apps: Available in standard Salesforce applications
- Custom Apps: Can be included in custom applications
- Community Apps: Available in community applications
Integration Points
- Object Relationships: Links to related object records
- Web Content: External website integration
- Visualforce Pages: Custom page functionality
- Lightning Components: Modern component integration
Best Practices
- Use clear, descriptive tab labels
- Choose appropriate tab types for functionality
- Select a unique, contextually relevant motif for each tab — do not default every tab to the same icon
- Consider user experience and navigation flow
- Test tab functionality across different applications
- Ensure proper permissions and visibility settings
- Follow consistent naming conventions
- Object tab files MUST only contain
<customObject>true</customObject>and<motif>— nothing else - Web tab files MUST only contain:
<customObject>false</customObject>,<label>,<motif>,<url>,<urlEncodingKey>, and optionally<description>,<frameHeight>— nothing else - Never include
<isHidden>,<tabVisibility>,<type>,<mobileReady>, or empty elements
Frequently asked questions about Salesforce Custom Tab Generator
Similar skills
WinMD API Search
Easily find and explore Windows desktop APIs.
WebMCPify
Transform any web app into an agent-ready platform.
Phoenix Tracing
Instrument LLM applications with OpenInference tracing.
Foundry Hosted Agent CopilotKit
Guidance for developing agentic web apps on Azure.
Power Automate Foundation
Connect AI agents to Power Automate seamlessly.
Power Automate Flow Builder
Efficiently build and deploy Power Automate flows programmatically.
