Skip to content
forcedotcom avatar

Platform Value Set Generate

Customize Salesforce standard and global value sets, with guardrails for deploy-safe picklist metadata changes.

CCM score
83 of 100
skills.sh installs
5.3K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers creating a GlobalValueSet, customizing a StandardValueSet, and referencing either from a field via <valueSetName>
  • Includes required-element rules for <masterLabel>, <sorted>, and <customValue>, plus StandardValueSet <standardValue> attribute patterns
  • Enforces bare developer names without a __gvs suffix and requires full replacement lists for StandardValueSet writes
  • Designed for Salesforce developers who need reusable picklists or deployment-error fixes, not one-off inline field picklists

Install

$ npx -y skills add forcedotcom/sf-skills --skill platform-value-set-generate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Overview

Generates and validates the two reusable picklist value-set metadata types — GlobalValueSet (a new reusable set shared across fields) and StandardValueSet (customizing a built-in catalog picklist like Industry or Lead Source) — and wires a CustomField to one via <valueSetName>.

For authoritative Metadata API type, field, and enum details beyond this skill, use the platform-metadata-api-context-get skill.

Scope

  • In scope: creating a GlobalValueSet, customizing a StandardValueSet, referencing either from a field, and the related deployment errors.
  • Out of scope: a one-off inline picklist on a single field with no reuse → use platform-custom-field-generate (inline <valueSetDefinition>). Generating the field that references a value set is also platform-custom-field-generate's job; this skill produces the value set itself.

Two different metadata types — do not confuse them:

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Backend & APIs, Databases
First seen
Jul 14, 2026

Questions

What does the platform-value-set-generate skill do?

It creates and validates Salesforce GlobalValueSet metadata, a reusable picklist shared across fields. It can also customize a StandardValueSet, such as the built-in Industry, Lead Source, or Opportunity Stage picklists.

When should I use platform-value-set-generate instead of platform-custom-field-generate?

Use this skill when a picklist value list is shared across several fields or when you customize a standard picklist. For a one-off inline picklist on a single field with no reuse, the skill says to use platform-custom-field-generate instead.

How do I install the platform-value-set-generate skill?

Run npx -y skills add forcedotcom/sf-skills --skill platform-value-set-generate -y in your project. After that, the agent can generate and validate value set metadata files such as .globalValueSet-meta.xml and .standardValueSet-meta.xml.

Where does platform-value-set-generate stand in the Backend & APIs category?

It is listed under Backend & APIs on Claude Marketplaces, alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics, and workers-best-practices. It focuses on Salesforce picklist metadata rather than general API work.

More from forcedotcom/sf-skills

All 78

Similar to Platform Value Set Generate

More Backend & APIs