Salesforce Deploy Integration
jeremylongshore/tons-of-skills-marketplace
Deploy a Salesforce-connected application through immutable artifacts, environment binding, canary traffic, reconciliation, and rollback.
A skill your agent uses when users create, generate, or validate Salesforce Custom Field metadata.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-field-generate --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/platform-custom-field-generate .claude/skills/platform-custom-field-generate && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "platform-custom-field-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-field-generate into .claude/skills/platform-custom-field-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-field-generate", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-field-generateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-field-generate --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/platform-custom-field-generate .agents/skills/platform-custom-field-generate && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "platform-custom-field-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-field-generate into .agents/skills/platform-custom-field-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-field-generate", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-field-generate --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/platform-custom-field-generate .cursor/skills/platform-custom-field-generate && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "platform-custom-field-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-field-generate into .cursor/skills/platform-custom-field-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-field-generate", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/forcedotcom/sf-skills.git --path skills/platform-custom-field-generate--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-field-generate --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/platform-custom-field-generate .gemini/skills/platform-custom-field-generate && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "platform-custom-field-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-field-generate into .gemini/skills/platform-custom-field-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-field-generate", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install forcedotcom/sf-skills platform-custom-field-generateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/platform-custom-field-generate .github/skills/platform-custom-field-generate && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "platform-custom-field-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-field-generate into .github/skills/platform-custom-field-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-field-generate", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install forcedotcom/sf-skills platform-custom-field-generate --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/forcedotcom/sf-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/platform-custom-field-generate .opencode/skills/platform-custom-field-generate && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "platform-custom-field-generate" agent skill from https://github.com/forcedotcom/sf-skills/tree/main/skills/platform-custom-field-generate into .opencode/skills/platform-custom-field-generate/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "platform-custom-field-generate", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
platform-custom-field-generateA skill your agent uses when users create, generate, or validate Salesforce Custom Field metadata.
Platform Custom Field Generate is an agent skill from forcedotcom/sf-skills. Use when users create, generate, or validate Salesforce Custom Field metadata. Trigger on custom fields, field types, Roll-Up Summary, Master-Detail/Lookup relationships, formula fields, picklists, dependent (controlling) picklists, referencing a value set from a field, or scoping picklist values per record type; also field deployment errors, including a record type that won't deploy without a business process. DO NOT TRIGGER for creating/customizing the value set itself — a new GlobalValueSet or a…
Its SKILL.md is about 6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/advanced-picklists.md`).
It sits in Sales & Support, covering CRM management and Deployment. It works with Salesforce. The repository describes itself as: Salesforce's curated collection of agent skills for building applications. Optimized for Agentforce Vibes, compatible with all AI tools. The licence is Apache-2.0.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e5164d9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are xml).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
soap.sforce.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Platform Custom Field Generate loads about 6k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 174 tokens; SKILL.md has 2,134 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from forcedotcom/sf-skills at commit e5164d9, republished under its Apache-2.0 licence (© forcedotcom). 2,134 words, ~5,963 tokens.
.claude/skills/platform-custom-field-generate/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Generates and validates Salesforce CustomField metadata XML, with special handling for the highest-failure-rate types — Roll-Up Summary and Master-Detail. The agent must verify the constraints below before outputting XML to prevent Metadata API deployment errors.
Every generated field must include these tags:
| Attribute | Requirement | Notes |
|---|---|---|
<fullName> | Required | Field name only: derive from <label> — capitalize each word, replace spaces with _, append __c. Must start with a letter. E.g., label Total Contract Value → Total_Contract_Value__c. This rule is for the FIELD name. Picklist VALUE <fullName> is different — keep it exactly as the user spelled it, spaces and all, no __c (e.g. Closed Won, NOT Closed_Won). See references/advanced-picklists.md (ref §3). |
<label> | Required | The UI name (Title Case) |
<description> | Always include | Explain the business reason why this field exists. |
<inlineHelpText> | Always include | Actionable end-user guidance that adds value beyond the label (e.g., "Enter the value in USD including tax", not "The amount"). |
<description> and <inlineHelpText> are mandatory even though the Metadata API does not enforce them — omitting them yields low-quality metadata.
File path (SFDX source format): save each field as force-app/main/default/objects/<Object>/fields/<FieldName>__c.field-meta.xml, where <Object> is the object's API name (Account, Opportunity, or a custom Inventory_Item__c). A correct XML at the wrong path is never seen by the Metadata API.
Trigger: If the user mentions "integration," "importing data," "external system ID," or "unique key from [System Name]," set <externalId>true</externalId>.
Applicable Types: Text, Number, Email
To ensure deployment success, follow these mathematical constraints:
precision is the total digits; scale is the decimal digitsprecision ≤ 18 AND scale ≤ precisionprecision - scaleTextArea: do NOT include <length> — the API fixes it at 255 implicitly and rejects an explicit value ("Can not specify 'length' for a CustomField of type TextArea"). The field needs only <fullName>, <label>, and <type>TextArea</type>.
Mandatory for Long/Rich text and Multi-select picklists to control UI height.
| Type | <type> Value | Required Attributes |
|---|---|---|
| Auto Number | AutoNumber | displayFormat (must include {0}), startingNumber |
| Checkbox | Checkbox | Default defaultValue to false |
| Date | Date | No precision/length required |
| Date/Time | DateTime | No precision/length required |
Email | Built-in format validation | |
| Lookup Relationship | Lookup | referenceTo, relationshipName, deleteConstraint |
| Master-Detail Relationship | MasterDetail | referenceTo, relationshipName, relationshipOrder |
| Number | Number | precision, scale |
| Currency | Currency | Default precision: 18, scale: 2 |
| Percent | Percent | Default precision: 5, scale: 2 |
| Phone | Phone | Standardizes phone number formatting |
| Picklist | Picklist | valueSet containing EITHER valueSetDefinition (inline) OR valueSetName (reference); restricted (see "Picklist restricted default" below; advanced cases in §3.4) |
| Text | Text | length (Max 255) |
| Text Area | TextArea | None — do NOT include <length>; the API fixes length at 255 implicitly |
| Text (Long) | LongTextArea | length, visibleLines (default 3) |
| Text (Rich) | Html | length, visibleLines (default 25) |
| Time | Time | Stores time only (no date) |
| URL | Url | Validates for protocol and format |
| Type | <type> Value | Required Attributes |
|---|---|---|
| Formula | Result type (e.g., Number) | formula, formulaTreatBlanksAs |
| Roll-Up Summary | Summary | See Section 5 for complete requirements |
| Multi-Select Picklist | MultiselectPicklist | valueSet, visibleLines (default 4) |
| Type | <type> Value | Required Attributes |
|---|---|---|
| Geolocation | Location | scale, displayLocationInDecimal |
restricted defaultAlways set <restricted>true</restricted> inside <valueSet> unless the user explicitly says the picklist should accept custom values not in the admin-defined list (e.g. "unrestricted"/"open"). Restricted sets are capped at 1,000 total values (active + inactive). Minimal inline shape:
<valueSet>
<restricted>true</restricted>
<valueSetDefinition>
<sorted>false</sorted>
<value><fullName>Option_A</fullName><default>false</default><label>Option A</label></value>
</valueSetDefinition>
</valueSet>The inline <valueSetDefinition> above is the simple case. Full rules and worked correct/incorrect
examples for everything below are in
references/advanced-picklists.md — load it for any
non-trivial picklist. Section numbers in parentheses below (e.g. "ref §1") point to that
reference file, not to this skill. The hard rules:
<valueSet> holds EITHER <valueSetName> (reference) OR
<valueSetDefinition> (inline) — never both. Reference by the bare developer name —
Standard set Industry, GlobalValueSet Priority_Levels with NO __gvs and no __c
(the __gvs suffix is org-storage display only; the Metadata API uses the bare name). A
value-set-backed field is <restricted>true</restricted>. Creating the value set is the
platform-value-set-generate skill's job; this one only references it.<fullName>/<label> keep the user's exact
text including spaces (Closed Won, never Closed_Won). The space→_ + __c rule is for
the FIELD name only.<controllingField> +
one <valueSettings> (<controllingFieldValue>+<valueName>) per pair; never the legacy
<picklist>/<picklistValues>/<controllingFieldValues> tags. Both controlling and
dependent fields MUST be <restricted>true</restricted>, even if the request doesn't say so.<value> entries also accept <color> (hex, leading
#), <isActive> (false retires a value), and a value-level <description>.<picklistValues>), not the field. The RecordType file carries its own
<fullName> (bare developer name). First decide if the object needs a BusinessProcess:
only Opportunity / Lead / Case / Solution require one — they won't deploy without a
<businessProcess> (Required field is missing: businessProcess), even when only a custom
picklist is filtered. There you emit two coupled files: the businessProcesses/<Name>.businessProcess-meta.xml
file AND a matching <businessProcess><Name></businessProcess> inside the <RecordType> (after
<active>, before <picklistValues>; the <fullName> in the BP file is bare, never
object-qualified). Custom objects (*__c) and all other standard objects (Account, Contact, …)
need NO BusinessProcess — emit the RecordType alone; do not invent one. Scope limit:
picklist-value visibility per record type only — NOT general record-type authoring (compact
layouts, page layouts, branding).Master-Detail fields have strict attribute restrictions that differ from Lookup fields. Violating these rules causes deployment failures.
NEVER include these attributes on Master-Detail fields:
| Forbidden Attribute | Why | What Happens |
|---|---|---|
<required> | Master-Detail is ALWAYS required by design | Deployment error |
<deleteConstraint> | Master-Detail ALWAYS cascades deletes | Deployment error |
<lookupFilter> | Only supported on Lookup fields | Deployment error |
| Attribute | Master-Detail | Lookup |
|---|---|---|
<required> | FORBIDDEN | Optional |
<deleteConstraint> | FORBIDDEN (always CASCADE) | Required (SetNull, Restrict, Cascade) |
<lookupFilter> | FORBIDDEN | Optional |
<relationshipOrder> | Required (0 or 1) | Not applicable |
<reparentableMasterDetail> | Optional | Not applicable |
<writeRequiresMasterRead> | Optional | Not applicable |
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Account__c</fullName>
<type>MasterDetail</type>
<referenceTo>Account</referenceTo>
<relationshipName>Contacts</relationshipName>
<relationshipOrder>0</relationshipOrder>
<required>true</required> <!-- WRONG: remove -->
<deleteConstraint>Cascade</deleteConstraint> <!-- WRONG: remove -->
<lookupFilter>...</lookupFilter> <!-- WRONG: remove entire block -->
</CustomField>Errors: Master-Detail Relationship Fields Cannot be Optional or Required · Can not specify 'deleteConstraint' for a CustomField of type MasterDetail · Lookup filters are only supported on Lookup Relationship Fields
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Account__c</fullName>
<label>Account</label>
<description>Links this record to its parent Account</description>
<type>MasterDetail</type>
<referenceTo>Account</referenceTo>
<relationshipLabel>Child Records</relationshipLabel>
<relationshipName>ChildRecords</relationshipName>
<relationshipOrder>0</relationshipOrder>
<reparentableMasterDetail>false</reparentableMasterDetail>
<writeRequiresMasterRead>false</writeRequiresMasterRead>
<!-- NO required, deleteConstraint, or lookupFilter -->
</CustomField><CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Related_Account__c</fullName>
<label>Related Account</label>
<description>Optional link to a related Account</description>
<type>Lookup</type>
<referenceTo>Account</referenceTo>
<relationshipLabel>Related Records</relationshipLabel>
<relationshipName>RelatedRecords</relationshipName>
<required>false</required>
<deleteConstraint>SetNull</deleteConstraint>
<lookupFilter>
<active>true</active>
<filterItems>
<field>Account.Type</field>
<operation>equals</operation>
<value>Customer</value>
</filterItems>
<isOptional>false</isOptional>
</lookupFilter>
</CustomField>0, second = 1Travel_Bookings)Roll-up Summary fields have the highest deployment failure rate. Follow these rules exactly.
| Element | Requirement | Format |
|---|---|---|
<type> | Required | Always Summary |
<summaryOperation> | Required | count, sum, min, or max |
<summaryForeignKey> | Required | ChildObject__c.MasterDetailField__c |
<summarizedField> | Conditional | Required for sum, min, max. NOT for count |
NEVER include these attributes on Roll-Up Summary fields:
| Forbidden Attribute | Why |
|---|---|
<precision> | Summary inherits from summarized field |
<scale> | Summary inherits from summarized field |
<required> | Not applicable to Summary fields |
<length> | Not applicable to Summary fields |
CRITICAL: Both summaryForeignKey and summarizedField MUST use the fully qualified format:
ChildObjectAPIName__c.FieldAPIName__cDecision Logic:
summaryForeignKey = ChildObject__c.MasterDetailFieldOnChild__csummarizedField = ChildObject__c.FieldToSummarize__c<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Total_Amount__c</fullName>
<label>Total Amount</label>
<type>Summary</type>
<precision>18</precision> <!-- WRONG: Remove - inherited from source -->
<scale>2</scale> <!-- WRONG: Remove - inherited from source -->
<summaryOperation>sum</summaryOperation>
<summaryForeignKey>Order__c</summaryForeignKey> <!-- WRONG: Missing field name -->
<summarizedField>Amount__c</summarizedField> <!-- WRONG: Missing object name -->
</CustomField>Errors:
Can not specify 'precision' for a CustomField of type SummaryMust specify the name in the CustomObject.CustomField format (e.g. Account.MyNewCustomField)<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Total_Amount__c</fullName>
<label>Total Amount</label>
<description>Sum of all line item amounts</description>
<inlineHelpText>Automatically calculated from child line items</inlineHelpText>
<type>Summary</type>
<summaryOperation>sum</summaryOperation>
<summarizedField>Order_Line_Item__c.Amount__c</summarizedField>
<summaryForeignKey>Order_Line_Item__c.Order__c</summaryForeignKey>
<!-- NO precision, scale, required, or length -->
</CustomField>COUNT: like SUM but omit <summarizedField> (keep <summaryForeignKey>). MIN / MAX: like SUM with <summaryOperation>min</summaryOperation> or max.
| Operation | summarizedField Required? | Use Case |
|---|---|---|
count | NO | Count number of child records |
sum | YES | Add up numeric values |
min | YES | Find smallest value |
max | YES | Find largest value |
A Formula is not a type itself. The <formula> tag is added to a field whose <type> is the result data type (Checkbox, Currency, Date, DateTime, Number, Percent, Text).
<length> — not even a Text-result formula. The API rejects it: Can not specify a length for CustomFields that have a formula.<formula> tag MUST be wrapped in <![CDATA[ ... ]]>, so the parser does not read formula operators (&, <, >) as XML markup.]]>, escape it by breaking the CDATA block: e.g., <![CDATA[Text_Field__c & "]]]]><![CDATA[>"]]>returnType. This does not exist in the Metadata API. The <type> tag defines the return data type of the formula result.Decision Logic:
Number, Currency, or Percent → set <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>Text, Date, or DateTime → set <formulaTreatBlanksAs>BlankAsBlank</formulaTreatBlanksAs><CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Calculated_Value__c</fullName>
<type>Formula</type> <!-- WRONG: Formula is not a valid type -->
<returnType>Number</returnType> <!-- WRONG: returnType does not exist in Metadata API -->
<formula>Field1__c + Field2__c</formula> <!-- WRONG: Missing CDATA wrapper -->
</CustomField><CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
<fullName>Calculated_Value__c</fullName>
<label>Calculated Value</label>
<description>Sum of Field1 and Field2</description>
<type>Number</type> <!-- Result type, not "Formula" -->
<precision>18</precision>
<scale>2</scale>
<formula><![CDATA[Field1__c + Field2__c]]></formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
</CustomField>ISPICKVAL() (not ==) for picklist comparisons.platform-validation-rule-generate skill, which owns formula-function correctness.| Error Message | Cause | Fix |
|---|---|---|
ConversionError: Invalid XML tags or unable to find matching parent xml file for CustomField | XML comments placed before the root <CustomField> element | Remove XML comments (<!-- ... -->) that appear before <CustomField> in the .field-meta.xml file |
Field [FieldName] does not exist. Check spelling. | Referenced field does not exist or has not been deployed yet | Verify the referenced field exists and is deployed before this field |
DUPLICATE_DEVELOPER_NAME | Field fullName already exists on the object | Use a unique business-driven name |
MAX_RELATIONSHIPS_EXCEEDED | More than 2 Master-Detail or 15 Lookup fields on the object | Use Lookup for 3rd+ Master-Detail; review Lookup count |
| Reserved keyword error | Using Order__c, Group__c, etc. | Rename to Status_Order__c, etc. |
Value set must reference a value set name or define a value set, but not both | <valueSet> has both <valueSetName> and <valueSetDefinition> | Keep exactly one (see Section 3.4) |
duplicate value found: [X] is defined multiple times | Two <value> entries share a <fullName> | Make every picklist value <fullName> unique |
Invalid fullName on a picklist value | Value <fullName> starts with a digit or contains hyphens | Start with a letter; no hyphens, no leading digit. Spaces ARE allowed — do NOT underscore them (see §3.4 value-name fidelity) |
Element ...picklist is not allowed | Deprecated ≤37.0 dependent-picklist syntax (<picklist>/<picklistValues>/<controllingFieldValues>) | Use the modern valueSettings/controllingFieldValue/valueName form (Section 3.4) |
Before generating CustomField XML, verify:
<fullName> use valid format and end in __c?<description> and <inlineHelpText> both populated and meaningful?<label> in Title Case?<!-- ... -->) before the root <CustomField> element? (Comments before the root element break SDR's parser)<required> attribute ABSENT? (Master-Detail is always required)<deleteConstraint> attribute ABSENT? (Master-Detail always cascades)<lookupFilter> block ABSENT? (Only for Lookup fields)<relationshipOrder> set to 0 or 1?<sharingModel> set to ControlledByParent?<deleteConstraint> set to SetNull, Restrict, or Cascade?<relationshipName> in plural PascalCase?<valueSet> contain EITHER <valueSetName> OR <valueSetDefinition> — never both?<restricted>true</restricted> set?__c (e.g. Industry)?__gvs suffix?<controllingField> set, with one <valueSettings> (<controllingFieldValue> + <valueName>) per pair?<picklist>/<picklistValues>/<controllingFieldValues> form ABSENT?<fullName> values unique, start with a letter, and free of hyphens? (spaces are allowed — do NOT replace them with underscores, per the §3.4 value-name fidelity rule)<precision> attribute ABSENT?<scale> attribute ABSENT?<summaryForeignKey> in format ChildObject__c.MasterDetailField__c?<summarizedField> in format ChildObject__c.FieldName__c?<summarizedField> ABSENT?<type> set to result type (NOT "Formula")?<formula> content wrapped in <![CDATA[ ... ]]>?<returnType> attribute ABSENT? (does not exist in Metadata API)<length> ABSENT? (formula fields never carry a length, even Text-result formulas)<formulaTreatBlanksAs> set to BlankAsZero for numeric results or BlankAsBlank for text/date results?scale ≤ precision?precision ≤ 18?<length> omitted? (The API rejects an explicit <length> value on TextArea fields.)<visibleLines> set?Order, Group, Select, etc.)?© forcedotcom, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in skills/platform-custom-field-generate of forcedotcom/sf-skills.
Open the folder on GitHubat commit e5164d9
Platform Custom Field Generate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Platform Custom Field Generate this skillforcedotcom/sf-skills | 1.1k | — | ~6k | Automated safety check: Pass | Apache-2.0 | |
| Salesforce Deploy Integrationjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Salesforce Prod Checklistjeremylongshore/tons-of-skills-marketplace | 2.8k | — | ~1.1k | Automated safety check: Pass | MIT | |
| Soql Lib Query Builderbeyond-the-cloud-dev/soql-lib | 154 | — | ~4.3k | Automated safety check: Pass | MIT | |
| Sf DatacloudJaganpro/sf-skills | 424 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Soql Lib Selectorbeyond-the-cloud-dev/soql-lib | 154 | — | ~2k | Automated safety check: Pass | MIT |
jeremylongshore/tons-of-skills-marketplace
Deploy a Salesforce-connected application through immutable artifacts, environment binding, canary traffic, reconciliation, and rollback.
jeremylongshore/tons-of-skills-marketplace
Gate a Salesforce integration or metadata change for production with contract, security, capacity, validation, canary, reconciliation, and rollback evidence.
beyond-the-cloud-dev/soql-lib
Builds Salesforce SOQL queries using the SOQL Lib fluent builder API (SOQL.cls).
Jaganpro/sf-skills
Salesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows.
beyond-the-cloud-dev/soql-lib
Creates Salesforce Apex selector classes using the SOQL Lib selector pattern.
Portwood-Global-Solutions/Portwood
Get from a fresh clone of Portwood to a working, fully-tested Salesforce org.
forcedotcom/sf-skills
Declared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins.
forcedotcom/sf-skills
Data Cloud 360° view of a single Agentforce session. An agent skill from forcedotcom/sf-skills.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply a Salesforce sandbox post-copy automation JSON config against a target org.
forcedotcom/sf-skills
Apply SLDS-compliant UI using the correct blueprints, styling hooks, utility classes, and icons.
forcedotcom/sf-skills
Lightning Web Components with PICKLES methodology and 165-point scoring.
Works with
Categories
A skill your agent uses when users create, generate, or validate Salesforce Custom Field metadata. Platform Custom Field Generate is an agent skill from forcedotcom/sf-skills. Use when users create, generate, or validate Salesforce Custom Field metadata.
Platform Custom Field Generate fits situations like: validate Salesforce Custom Field metadata; roll-Up Summary; master-Detail/Lookup relationships; dependent (controlling) picklists.
Run `npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a claude-code`. Or copy the skill folder (skills/platform-custom-field-generate in forcedotcom/sf-skills) into .claude/skills/platform-custom-field-generate in your project. Claude Code loads it when a task matches its description.
Run `npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a codex`. Or copy the skill folder (skills/platform-custom-field-generate in forcedotcom/sf-skills) into .agents/skills/platform-custom-field-generate in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/sf-skills --skill platform-custom-field-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/platform-custom-field-generate, .gemini/skills/platform-custom-field-generate, .github/skills/platform-custom-field-generate and .opencode/skills/platform-custom-field-generate in your project.
SKILL.md names no scripts, command-line tools or credentials: Platform Custom Field Generate is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: soap.sforce.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Platform Custom Field Generate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 6k tokens (SKILL.md is roughly 24k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 6.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Platform Custom Field Generate: Salesforce Deploy Integration (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Salesforce Prod Checklist (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Soql Lib Query Builder (beyond-the-cloud-dev/soql-lib, 154 stars) and Sf Datacloud (Jaganpro/sf-skills, 424 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
forcedotcom (a GitHub organization) maintains it in forcedotcom/sf-skills, which has 1,060 GitHub stars. The repository holds 251 skills in this directory. The repository was last updated on October 7, 2026.
Source: forcedotcom/sf-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.