Skip to content
forcedotcom avatar

Platform Custom Field Generate

Salesforce custom field generator and validator for picklists, relationships, roll-up summaries, and formula fields.

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

Own this skill? Claim it

What it does

  • Covers Custom Field metadata XML for Roll-Up Summary, Master-Detail, Lookup, formula, and picklist types
  • Enforces precision, scale, and TextArea length rules, plus required description and inline help text
  • Handles dependent picklists, value-set references, and restricted picklist defaults, with a reference file for advanced cases
  • Designed for developers generating or troubleshooting Salesforce field deployments; value set creation is handled by a separate skill

Install

$ npx -y skills add forcedotcom/sf-skills --skill platform-custom-field-generate -y

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

Files

Salesforce Custom Field Generator and Validator

Overview

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.


1. Universal Mandatory Attributes

Every generated field must include these tags:

Details

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

Questions

What does the platform-custom-field-generate skill do?

It generates and validates Salesforce Custom Field metadata XML, with special handling for Roll-Up Summary and Master-Detail fields. It checks constraints such as precision, scale, and picklist rules before output to prevent Metadata API deployment errors.

How do I install the platform-custom-field-generate skill?

Run npx -y skills add forcedotcom/sf-skills --skill platform-custom-field-generate -y in a project. Once installed, the agent can create and troubleshoot custom field metadata for Salesforce.

Where does this skill stand in the Backend & APIs category on Claude Marketplaces?

It is listed in the Backend & APIs category alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. Its focus on Salesforce field metadata sets it apart from those general backend skills.

When should I use this skill instead of platform-value-set-generate?

Use this skill for the field that references a value set, including picklists and dependent picklists. Use platform-value-set-generate when you need to create or change the value set itself, such as a new GlobalValueSet.

More from forcedotcom/sf-skills

All 78

Similar to Platform Custom Field Generate

More Backend & APIs