platform-custom-tab-generate

Generates Salesforce CustomTab metadata XML for object, web, and Visualforce tabs.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/padjei/SF_Build --skill platform-custom-tab-generate-padjei
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: platform-custom-tab-generate
Source: https://github.com/padjei/SF_Build/tree/main/.claude/skills/platform-custom-tab-generate
Command: npx skills add https://github.com/padjei/SF_Build --skill platform-custom-tab-generate-padjei

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Creating Salesforce Custom Tab metadata by hand often leads to deployment failures caused by invalid XML elements, wrong root tags, or misplaced properties. This Skill provides strict, deployment-safe templates and rules for generating CustomTab metadata files. ## Core Features & Use Cases - Object Tab Generation: Produces minimal {ObjectApiName}.tab-meta.xml files containing only customObject and motif elements. - Web Tab Generation: Creates web tab metadata with label, URL, UTF-8 encoding key, frame height, and motif using an exact copy-safe template. - Visualforce Tab Generation: Builds Visualforce tab metadata referencing a page name with the correct allowed element set. - Deployment Error Prevention: Enforces a strict element allowlist and forbidden-element list so generated files deploy without metadata API errors. - Use Case: When building a Salesforce app for a custom object like Space_Station__c, use this Skill to generate a valid tab file with a contextually appropriate motif and no forbidden elements. ## Quick Start Ask the AI to create a custom tab for your Salesforce object, web URL, or Visualforce page and it will generate a deployment-ready tab-meta.xml file.

Frequently Asked Questions about platform-custom-tab-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom tab for a Salesforce object?▼

Create a file named {ObjectApiName}.tab-meta.xml with the CustomTab root element containing only customObject set to true and a motif element. Do not add label, sobjectName, or fullName elements, as these cause deployment errors on object tabs.

How to create a web tab in Salesforce metadata?▼

A web tab file requires customObject set to false, plus label, motif, url, and urlEncodingKey set to UTF-8. Description and frameHeight are optional. No other elements are allowed in the file.

Why does my Salesforce custom tab deployment fail?▼

Deployments fail when the XML contains forbidden elements like sobjectName, fullName, apiVersion, isHidden, tabVisibility, or type, or when the root element is Tab instead of CustomTab. Empty elements and labels on object tabs also cause errors.

What elements are allowed in a Visualforce tab metadata file?▼

A Visualforce tab allows only customObject set to false, label, motif, and page elements, plus an optional description. The page element must reference the Visualforce page name, and no other elements are permitted.

Can I add a label to a custom object tab in Salesforce?▼

No, object tabs inherit their label from the custom object itself. Adding a label element to an object tab file causes a deployment error, so object tabs should contain only customObject and motif.