• Projects
  • Service
  • About
  • branding.bz
  • Podcast
  • Tips
  • FAQ
  • Recruit
  • Download
  • Contact
  • branding.bz(ブランド構築SaaS)
  • DESIGN NOW(デザインメディア)
  • X
  • LinkedIn
  • Spotify
  • Facebook

213-0011 神奈川県川崎市高津区久本3-6-7-303

© 2026 ID INC. All rights reserved

claude-skills/スキル
SKILLOfficialdevelopment

platform-custom-tab-generate

プラグイン
salesforce-development
ソース
GitHub で見る ↗
説明

次のような場合に使用: ユーザーがSalesforceのカスタムタブ(アプリケーション内の独立したページ領域)を作成または設定する必要がある場合。 ユーザーが以下の内容に言及したときに起動してください: - タブ、ナビゲーションタブ、オブジェクトタブ、ウェブタブ - Visualforceタブ、Lightningコンポーネントタブ - アプリページタブ、タブの設定 また、ユーザーが次のことを望む場合にも使用してください: - カスタムオブジェクトにナビゲーション(移動機能)を追加する - 外部コンテンツ用のタブを作成する - Lightningページのタブを設定する カスタムタブに関わるあらゆる作業では、常にこのスキルを使用してください。

原文を表示

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.

ユースケース
  • Salesforceのカスタムタブを作成・設定する
  • ナビゲーション機能をカスタムオブジェクトに追加
  • 外部コンテンツ用のタブを作成する
  • Lightningページのタブを設定する
本文(日本語訳)

このスキルを使用する場合

次のような場合に使用してください:

  • オブジェクト、ウェブページ、Visualforceページ用のタブを作成する
  • アプリケーションにナビゲーションタブを追加する
  • タブの表示設定とアクセス権を構成する
  • カスタムタブに関連するデプロイエラーをトラブルシューティングする

仕様書

CustomTabメタデータ仕様書

概要

Salesforceアプリケーション内で、オブジェクト、ウェブコンテンツ、またはVisualforceページへのナビゲーション用のカスタムタブです。

用途

  • カスタムオブジェクトへのナビゲーションを提供する
  • 外部ウェブコンテンツへのリンク
  • Visualforceページへのアクセス
  • アプリケーションナビゲーションの整理

必須プロパティ

コアタブプロパティ

  • customObject: カスタムオブジェクトタブの場合はtrue、その他の場合はfalse
  • motif: タブアイコンのスタイル — オブジェクトの目的と意味的に一致するアイコンを選択してください。すべてのタブに同じアイコンを使い回さないでください。
  • label: 表示名(オブジェクト以外のタブで必須。オブジェクトタブはオブジェクト自体からラベルを継承します)
  • url: ウェブURL(ウェブタブ用)
  • page: Visualforceページ名(Visualforceタブ用)

厳密な要素許可リスト — まずこれをお読みください

ルート要素は常に<CustomTab>でなければなりません(<Tab>ではありません)。 XMLネームスペースはxmlns="http://soap.sforce.com/2006/04/metadata"である必要があります。

以下にリストされている要素のみが有効です。このリストにない要素はデプロイエラーを引き起こします。

タブの種類 許可されている要素(これら以外は不可)
オブジェクトタブ <customObject>(必須、trueに設定)、<motif>(必須)、<description>(オプション)
ウェブタブ <customObject>(必須、falseに設定)、<label>(必須)、<motif>(必須)、<url>(必須)、<urlEncodingKey>(必須、UTF-8に設定)、<description>(オプション)、<frameHeight>(オプション)
Visualforceタブ <customObject>(必須、falseに設定)、<label>(必須)、<motif>(必須)、<page>(必須)、<description>(オプション)

禁止要素(以下はすべてデプロイエラーを引き起こします)

<sobjectName>、<name>、<fullName>、<apiVersion>、<isHidden>、<tabVisibility>、<type>、<mobileReady>、<urlFrameHeight>、<urlType>、<urlRedirect>、<encodingKey>、<height>、<auraComponent>

また禁止:

  • オブジェクトタブ上の<label>(オブジェクトタブはカスタムオブジェクトからラベルを継承します)
  • ウェブタブ上の<page>(Visualforceタブのみ対象)
  • <page></page>や<description></description>など空の要素
  • 上記の許可リストテーブルにない要素

タブの種類

オブジェクトタブ

  • 用途: カスタムまたは標準オブジェクトへのナビゲーション
  • ファイル名 でオブジェクトを決定: {ObjectApiName}.tab-meta.xml(例:Space_Station__c.tab-meta.xml)
  • 必須要素: <customObject>true</customObject>と<motif>
  • 正しい例(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>
  • 正しい例(Supply__c.tab-meta.xmlの場合 — アイコンが異なることに注意):
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
    <customObject>true</customObject>
    <motif>Custom98: Truck</motif>
</CustomTab>
  • 間違い — <sobjectName>、<name>、<fullName>、<label>を追加しないでください:
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
    <sobjectName>Space_Station__c</sobjectName>  <!-- デプロイエラー -->
    <label>Space Station</label>                  <!-- オブジェクトタブではデプロイエラー -->
    <customObject>true</customObject>
    <motif>Custom57: Desert</motif>
</CustomTab>

ウェブタブ

  • 用途: 外部ウェブサイトやウェブアプリケーションへのリンク
  • ファイル名: わかりやすい名前を使用: {TabName}.tab-meta.xml(例:Knowledge_Base.tab-meta.xml)
  • このテンプレートをそのままコピーしてください — プレースホルダーの値だけを置き換えてください。XML要素の追加、削除、名前変更は一切しないでください:
<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
    <customObject>false</customObject>
    <description>置き換え対象:説明</description>
    <frameHeight>600</frameHeight>
    <label>置き換え対象:ラベル</label>
    <motif>置き換え対象:アイコン</motif>
    <url>置き換え対象:URL</url>
    <urlEncodingKey>UTF-8</urlEncodingKey>
</CustomTab>
  • 上記の7つの要素のみがウェブタブファイルで許可されます。 他の要素を追加しないでください。
  • <description>要素はオプション — 不要な場合は削除してもよいですが、他に何も追加しないでください。

Visualforceタブ

  • 用途: カスタムVisualforceページへのアクセス
  • ファイル名: {TabName}.tab-meta.xml(例:Custom_Page_Tab.tab-meta.xml)
  • 必須要素: <customObject>false</customObject>、<label>、<motif>、<page>
  • 正しい例:
<?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>

タブ構成

タブスタイル

  • デフォルト: 標準的なタブスタイルを使用
  • カスタム: 必要に応じてカスタムタブスタイルを指定可能

タブ表示設定

  • デフォルト: アクセス権を持つすべてのユーザーに表示
  • カスタム: 特定のユーザープロファイルに対して構成可能

サポート対象アプリケーション

  • 標準アプリケーション: Salesforce標準アプリケーションで利用可能
  • カスタムアプリケーション: カスタムアプリケーションに含めることが可能
  • コミュニティアプリケーション: コミュニティアプリケーションで利用可能

統合ポイント

  • オブジェクト関連: 関連オブジェクトレコードへのリンク
  • ウェブコンテンツ: 外部ウェブサイト統合
  • Visualforceページ: カスタムページ機能
  • Lightningコンポーネント: 最新コンポーネント統合

ベストプラクティス

  • わかりやすい説明的なタブラベルを使用する
  • 機能に適したタブタイプを選択する
  • 各タブに一意で文脈に合ったアイコンを選択する — すべてのタブに同じアイコンをデフォルトにしないでください
  • ユーザーエクスペリエンスとナビゲーションフローを検討する
  • 異なるアプリケーション間でタブ機能をテストする
  • 適切な権限と表示設定を確保する
  • 一貫性のある命名規則に従う
  • オブジェクトタブファイルは<customObject>true</customObject>と<motif>のみを含める必要があります — それ以外は何も含めないでください
  • ウェブタブファイルは<customObject>false</customObject>、<label>、<motif>、<url>、<urlEncodingKey>のみを含む必要があります。オプションで<description>、<frameHeight>を含める可能性があります — それ以外は何も含めないでください
  • <isHidden>、<tabVisibility>、<type>、<mobileReady>、空の要素を決して含めないでください
原文(English)を表示

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 <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

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。