
Platform Custom Field Generate
Generates and validates Salesforce CustomField metadata XML with built-in guardrails for the types that fail deployment most often: Roll-Up Summary and Master-Detail relationships. It enforces precision/scale math, the TextArea fixed-255 rule, proper file paths in SFDX format, and modern dependent picklist syntax. Handles the tricky stuff like External IDs, formula fields, value-set references, and record type scoping. The skill won't create GlobalValueSets or StandardValueSets themselves (that's a different skill), but it will wire up fields that reference them. Useful when you're tired of deployment errors that trace back to missing relationshipOrder tags or backwards precision values.
- skills.sh installs
- 6.8K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill platform-custom-field-generate --agent claude-codeInstalls into .claude/skills of the current project.
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:
Sponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- DevOps & CI/CD, Code Review & Quality, Release Management, Debugging, Sales & Marketing
- First seen
- Jul 14, 2026
More from forcedotcom/sf-skills
All 158- Platform Docs Get6.8K
- Platform Permission Set Generate6.8K
- Dx Code Analyzer Run6.7K
- Platform Custom Object Generate6.6K
- Automation Flow Generate6.5K
- Experience Lwc Generate6.4K
- Platform Validation Rule Generate6.3K
- Platform Data Manage6.3K
- Dx Org Manage6.2K
- Platform Flexipage Generate6.2K
- Platform Metadata Api Context Get6.2K
- Platform Sharing Rules Generate6.2K
- Design Systems Slds Apply6.1K
- Design Systems Slds Validate6K
- Agentforce Generate6K
- Platform Custom Tab Generate6K
- Dx Code Analyzer Configure5.9K
- Platform Custom Application Generate5.9K
- Platform List View Generate5.9K
- Agentforce Architecture Analyze5.9K
- Dx Org Switch5.8K
- Dx Org Permission Set Assign5.8K
- Platform Custom Lightning Type Generate5.8K
- Agentforce Test5.8K