Discovers existing Salesforce metadata and explains org configuration. Routes questions about objects, fields, picklist values, relationships, permissions, and automation to the appropriate discovery tool before creating or modifying metadata.
Ships in sf-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before you create metadata, change it, or write code that references it, know what already exists in the org. This skill picks the tool for each question. Metadata grounding finds metadata by meaning when you do not know its name. It needs Salesforce Catalog and a connected grounding server, and many orgs and setups have neither. Every other route works with the sf CLI alone.
Before calling any metadata grounding operation, load platform-metadata-grounding-get if it has not already been loaded in this conversation. This applies to exact-name lookups, configuration queries, semantic searches, and fallback to grounding after another route fails. Choosing grounding is a separate decision from choosing this discovery skill; do not call its tools using only the routing table below. If the skill cannot be loaded, explain that and choose another supported route.
Skip discovery when the request only changes local files and adds no new references to org metadata.
Establish the target and available routes once per session; revisit them when the target changes.
sf org display or ask for CLI login as a prerequisite to using an already connected MCP.platform-metadata-grounding-get if it is available, including when discovery was entered through another skill. Its related-skill listing alone does not load its instructions. If loading fails, report the limitation and use another supported route; do not pretend the skill loaded.--target-org <confirmed-alias-or-username>. Confirm that target's identity before combining its results with another connection. If the host has not provided a target, or connections disagree, ask which org to use before making CLI calls. Do not choose a default org or log into a different org to make a lookup work.| Intent | Use | If that is not available |
|---|---|---|
| Find metadata by meaning, check a name you are guessing, or check for something to reuse | Metadata grounding search. Load platform-metadata-grounding-get, which picks the server. | Name and label fallback, below. Notify. |
| Explain how something is configured, or who can access it | Metadata grounding query after loading platform-metadata-grounding-get | Scoped SOQL on EntityParticle, FieldPermissions, ObjectPermissions, or Tooling ValidationRule. Notify. |
| Check names, types, or picklist values you know. Every field on one object. Data records | Scoped SOQL on a confirmed, authenticated CLI target. If CLI access is unavailable, use a connected same-org grounding query or the Salesforce MCP; load the grounding skill before grounding calls. If a scoped lookup returns nothing, search by meaning. | See the note below the table. |
| Full shape of one object, including relationships | sf sobject describe --sobject <Type>, only when you need all of it. It is very large. | Same |
| Every object in the org | sf sobject list --sobject all or --sobject custom | Same |
| Every member of a type, or a count ("all flows", "how many flows") | sf org list metadata --metadata-type <Type> | Same |
| Source to edit or deploy, including changes to existing metadata | Load platform-metadata-retrieve. Grounding never returns source. | Tell the user this needs the sf CLI. |
| Metadata you are already editing locally | Local files | |
| Compare orgs, find drift, or an overview of a whole org when the user asks for one | dx-org-analyze. It takes minutes and returns names and counts. | Tell the user this needs the sf CLI. |
| Where is this used, what depends on it, what breaks if I change it, or is it safe to delete | Comprehensive analysis is not available yet. State that boundary before offering explicitly labeled partial checks. |
Without the CLI. A connected same-org grounding server can still answer the search and query questions it supports. For inventory and other routes, read references/h360-routes.md when the Salesforce MCP is connected. If no available route can supply the requested information or completeness, explain that limit.
Choose a route based on the information needed and the connections that are actually usable for the intended org. Do not force a CLI route merely because a shell exists. Ranked grounding results cannot replace a complete enumeration or source retrieval; when no suitable route is available, state that limit.
A question about a topic or purpose ("what do we have for loyalty") is discovery, not an overview. Do not run an org analysis for it, even when grounding is not available.
This skill covers core platform metadata. For Data Cloud DLO and DMO schema, use data360-code-extension-generate.
When a request mixes intents, use the right tool for each part. "Add a tier discount step to our order flow" means finding the flow and the field, then retrieving the flow to edit.
In all examples below, add --target-org <confirmed-alias-or-username> to CLI commands. Never substitute an unconfirmed CLI default.
Scoped SOQL is a targeted query on setup objects, filtered to what you need. It is exact, real time, and far smaller than a describe. It never returns source.
sf data query --json --query "SELECT QualifiedApiName, Label, DataType FROM EntityParticle WHERE EntityDefinition.QualifiedApiName = 'Contact'"
sf data query --json --query "SELECT Value, Label, IsDefaultValue, IsActive FROM PicklistValueInfo WHERE EntityParticle.EntityDefinition.QualifiedApiName = 'Contact' AND EntityParticle.QualifiedApiName = 'Loyalty_Tier__c'"
AND QualifiedApiName IN ('Loyalty_Tier__c', 'Lifetime_Orders__c'). For custom fields only, add AND QualifiedApiName LIKE '%__c'.EntityParticle includes parts of compound fields, such as MailingCity.--use-tooling-api for CustomField and ValidationRule.EntityDefinition, EntityParticle, and FieldDefinition do not accept OR. Run one scoped query per condition instead of broadening the query or removing its object/type filters.More patterns, including access and automation, are in references/scoped-soql.md.
Say the line below once per session, in your answer, next to the results of the name and label search. Do not announce the fallback before you search, and do not repeat it later in the session. Use the line that matches the cause, word for word, including the last sentence. Do not shorten or rephrase it. If you stop before you can report results, say it in that message instead.
| Cause | Say |
|---|---|
| No grounding server connected | "Metadata Grounding isn't connected, so I matched by name and label, which can miss metadata named differently. Connect the Metadata Grounding MCP to search by meaning." |
| Catalog not enabled | "Salesforce Catalog isn't turned on in this org, so I matched by name and label, which can miss metadata named differently. An admin can turn on Salesforce Catalog through Feature Manager in Data Cloud Setup." |
| Permission missing | "Catalog search needs the Customize Application permission, so I matched by name and label, which can miss metadata named differently." |
Then search names and labels. Try two or three likely words, one LIKE per query.
sf data query --json --query "SELECT QualifiedApiName, Label FROM EntityDefinition WHERE Label LIKE '%loyalty%'"
sf data query --json --query "SELECT QualifiedApiName, Label, DataType FROM EntityParticle WHERE EntityDefinition.QualifiedApiName = 'Contact' AND Label LIKE '%tier%'"
sf data query --json --use-tooling-api --query "SELECT DeveloperName, EntityDefinition.QualifiedApiName FROM CustomField WHERE DeveloperName LIKE '%tier%' AND NamespacePrefix = null"
sf data query --json --query "SELECT ApiName, Label, ProcessType, IsActive FROM FlowDefinitionView WHERE Label LIKE '%order%'"
CustomField query searches custom fields on every object. DeveloperName has no __c. Drop rows with no object name. They are Data Cloud fields.sf org list metadata and scan them.Everything else in this skill still applies.
Before you create an object, field, picklist, permission set, page, app, or flow:
SObject for the exact object API name, then pass that result's returned identifier as parentIdentifier to the SObjectField search. Never pass the raw object API name as parentIdentifier. A proposed API name or label is only an exact collision check and does not prove that equivalent metadata is absent. Similar words alone are not enough to declare a match.Treat namespaced items, such as force__ permission sets or managed package components, as references, not things to edit. Say so when a match is managed.
Before you write Apex, LWC, SOQL, or Flow logic, confirm every object, field, and picklist value it references.
Account.Name or Contact.Email).To find automation by what it does, search Flow or ApexClass by meaning. A grounding query on a flow shows its trigger object, trigger type, and active status.
To list everything that runs on an object before adding automation:
sf data query --json --query "SELECT Name, Status FROM ApexTrigger WHERE TableEnumOrId = 'Contact'"
sf data query --json --query "SELECT ApiName, Label, TriggerType, IsActive FROM FlowDefinitionView WHERE TriggerObjectOrEventId = 'Contact'"
To understand what a flow or trigger does, retrieve its source and read it.
| Question | Answer with |
|---|---|
| What exists that does X | Grounding search |
| How a field, object, or validation rule is configured | Grounding query, or EntityParticle and Tooling ValidationRule |
| Who can read or edit a field or object | Grounding on FieldPermissions, or SOQL on FieldPermissions and ObjectPermissions for a complete list. These records prove configured access, not actual use; a permission container's name does not prove an integration or dependency is active. |
| Sharing rules, roles, groups, and which package a component came from | Grounding |
| What a flow is | Grounding gives the header only (type, trigger, active). For its steps, retrieve the source. |
| What an Apex class does | Grounding gives signatures only. Retrieve the source. |
| Why a save failed | A partial answer. Check validation rules on the object, then retrieve the automation that runs on it. |
| Page layouts, reports, custom metadata types, custom settings | Not in the catalog. Use sf org list metadata and retrieve. |
| Where something is used, what depends on it, what breaks if it changes, or whether it is safe to delete | Comprehensive analysis is not available yet. Say so before any checks. You may offer narrow checks, but label each one as partial and never present their union as complete or conclude that the change is safe. |
sfdx-project.json and search those directories. Exclude response exports, logs, generated output, caches, and agent configuration unless the user explicitly asks to inspect them.What SKILL.md sets; muted values are Claude Code's defaults
/sf-skills:platform-metadata-discovery-getfrom sf-skills
sf-skills@sf-skills-plugin is listed by ccmalcom/sf-skills-plugin — review the source before installing
npx claudepluginhub ccmalcom/sf-skills-plugin --plugin sf-skills266 skills in this plugin
/afcc-setup-coordinateOrchestrates end-to-end headless setup of Agentforce Contact Center (AFCC) on a Salesforce org. Scans the org first, presents a delta plan for approval, then sequentially provisions demo users, Omni-Channel base settings, a human queue with routing config and members, presence statuses, permission sets, a PSTN voice number, and an active PstnVoice MessagingChannel wired to the queue. Interactive at key decision points — never assumes country, number type, queue names, or user counts. TRIGGER: set up AFCC, configure Agentforce Contact Center, stand up voice contact center, AFCC migration setup, provision AFCC org headlessly./agentforce-architecture-analyzeDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable architecture document and Mermaid invocation graph from design-time metadata (not runtime audit rows). TRIGGER when user asks to describe, diagram, inventory, audit, document, or diff (e.g. v3 vs v5) the architecture / action tree / topic structure / tool inventory of a specific agent by agent API name in a specific org. DO NOT TRIGGER for runtime session traces, conversation transcripts, generation timings, or gateway audit chains — this skill reads design-time metadata only (use agentforce-d360-analyze for session traces).2 plugins in one repository ship this exact skill · first indexed Nov 29, 2026
Other plugins' skills for the same job