platform-metadata-api-context-get
БесплатноБез исполняемых скриптовНе проверенREQUIRED companion for Salesforce metadata generation — load this schema/API-context skill in the SAME turn as ANY metadata generator (if you load a…
от forcedotcom★ 1 200 звёзд на GitHubОб этом скилле
Salesforce Metadata API Skill
This skill provides comprehensive documentation for all 604 Salesforce Metadata API types. Use this skill to create, understand, and modify Salesforce metadata XML files in your Salesforce DX projects.
Overview
The Salesforce Metadata API allows you to retrieve, deploy, create, update, or delete customizations for your org. This skill gives you access to detailed documentation for each metadata type, including:
- Field definitions and data types
- Required vs. optional fields
- WSDL schema definitions
- Sample XML structures
- File naming conventions
- Directory locations in Salesforce DX projects
How to Use This Skill
CRITICAL: Section-Specific Consumption
ALWAYS consume only the specific sections you need from JSON files, NOT entire files.
CRITICAL: For assets/metadata_api/*.json files, always use jq or programmatic JSON parsing to extract only the specific sections you need. Do not load these files whole via Read, cat, read_file, or any other tool that injects the complete file — they contain verbose WSDL segments and other sections that waste 60-80% of tokens. (Loading small files like this SKILL.md or the index table with Read is fine; the rule applies specifically to the large metadata-type JSON files.)
Each JSON file contains multiple sections (fields, description, wsdl_segment, etc.). Most use cases only require 1-2 sections:
- For field definitions: Load only the
fieldssection - For understanding purpose: Load only the
descriptionsection - For XML examples: Load only the
declarative_metadata_sample_definitionsection - Skip by default:
wsdl_segment(verbose schema),file_information,directory_location
This reduces token consumption by 60-80% per file.
Quick Start
To get information about a specific metadata type:
- Section-specific (BEST): "Show me only the 'fields' section from CustomObject.json"
- Multiple sections: "Show me 'fields' and 'description' from Flow.json"
- Avoid loading entire files: Don't ask for "the CustomObject metadata type" - specify sections
Example Queries (Section-Specific)
Recommended:
- "Show me only the 'fields' section from CustomObject.json"
- "What fields are in the 'fields' section of Profile.json?"
- "Load the 'description' and 'fields' sections from Flow.json"
- "Give me just the 'declarative_metadata_sample_definition' from ApexClass.json"
Avoid:
- "Show me the CustomObject metadata type" (too broad - entire file)
- "Load CustomObject.json" (includes unnecessary WSDL and other sections)
JSON File Structure
Each metadata type is stored as a JSON file in assets/metadata_api/ with the following structure:
{
"sections": ["title", "description", "fields", "wsdl_segment", ...],
"title": "MetadataTypeName - Metadata API",
"description": "Plain-text description of the metadata type.",
"fields": {
"fieldName": {
"type": "string",
"description": "Field description",
"required": true
}
},
"file_information": ".object",
"directory_location": "objects",
"wsdl_segment": "<xsd:complexType>...</xsd:complexType>",
"declarative_metadata_sample_definition": [
{
"description": "Example description",
"code": "<?xml version=\"1.0\"?>\n<MetadataType>...\n</MetadataType>"
}
]
}
Note: string values (
title,description,file_information,directory_location,wsdl_segment) are stored as plain text — no markdown headers (#/##) or code fences.file_informationholds just the file suffix (e.g..object,.ai) anddirectory_locationjust the SFDX folder name (e.g.objects,aiApplications).
Available Sections
The sections array indicates which top-level keys are present in each file. Common sections include:
title: The metadata type name and headerdescription: What the metadata type representsfields: The type's own fields, with types and descriptionssub_types: (composite types only) a map of referenced sub-type name → that sub-type's fields, e.g.Flow→sub_types.FlowActionCallfile_information: File naming conventions and extensionsdirectory_location: Where files are stored in SFDX projectswsdl_segment: XML schema definition from the WSDLdeclarative_metadata_sample_definition: Example XML code
Some metadata types have additional sections specific to their functionality. See the Index Table for a complete breakdown.
More detail: background on why token optimization matters, worked usage examples, common workflows, a full section glossary, and versioning/support notes live in
references/usage_guide.md. Load it with theReadtool only when needed.
Token Optimization Strategies
CRITICAL: To minimize token usage and costs:
- Load only the specific metadata type(s) you need, not the full corpus
Установить platform-metadata-api-context-get в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл platform-metadata-api-context-get?
REQUIRED companion for Salesforce metadata generation — load this schema/API-context skill in the SAME turn as ANY metadata generator (if you load a generator, you ALSO load this). Use whenever you create, generate, edit, or author metadata or a *-meta.xml file (custom object, field, flow, and 604 Metadata API types): it gives authoritative schema, required flags, and XML structure so files deploy cleanly. Trigger on *-meta.xml, metadata schema, api context. DO NOT use for SOQL, DML, runtime sObject access, or Tooling API records.
Как установить скилл platform-metadata-api-context-get?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл platform-metadata-api-context-get запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic