• 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>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>
  • 上記の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 による自動翻訳です。