
Generating Custom Field
This handles the gnarly parts of Salesforce Custom Field metadata generation, specifically the stuff that breaks during deployment. It knows the difference between Master-Detail and Lookup relationships (Master-Detail fields can't have required tags or deleteConstraint, which trips people up constantly), enforces the right precision and scale rules for numbers, and gets Roll-up Summary field format correct. The mandatory description and inlineHelpText requirements are opinionated but prevent lazy field documentation. Use this when you're generating field XML and want to avoid the back-and-forth with deployment errors. It's built around the actual Metadata API constraints, not just what works in the UI.
- skills.sh installs
- 1.6K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill generating-custom-field --agent claude-codeInstalls into .claude/skills of the current project.
Files
This handles the gnarly parts of Salesforce Custom Field metadata generation, specifically the stuff that breaks during deployment. It knows the difference between Master-Detail and Lookup relationships (Master-Detail fields can't have required tags or deleteConstraint, which trips people up constantly), enforces the right precision and scale rules for numbers, and gets Roll-up Summary field format correct. The mandatory description and inlineHelpText requirements are opinionated but prevent lazy field documentation. Use this when you're generating field XML and want to avoid the back-and-forth with deployment errors. It's built around the actual Metadata API constraints, not just what works in the UI.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- Generating Custom Object1.6K
- Generating Flow1.6K
- Generating Permission Set1.6K
- Building Ui Bundle App1.5K
- Building Ui Bundle Frontend1.5K
- Deploying Ui Bundle1.5K
- Developing Agentforce1.5K
- Generating Custom Application1.5K
- Generating Custom Lightning Type1.5K
- Generating Custom Tab1.5K
- Generating Flexipage1.5K
- Generating Lightning App1.5K
- Generating List View1.5K
- Generating Ui Bundle Features1.5K
- Generating Ui Bundle Metadata1.5K
- Generating Ui Bundle Site1.5K
- Generating Validation Rule1.5K
- Implementing Ui Bundle Agentforce Conversation Client1.5K
- Implementing Ui Bundle File Upload1.5K
- Observing Agentforce1.5K
- Searching Media1.5K
- Switching Org1.5K
- Testing Agentforce1.5K
- Uplifting Components To Slds21.5K