
Generating Validation Rule
This handles Salesforce validation rule creation and fixes, which is honestly more tedious than it sounds. It knows the metadata format, generates the formulas that prevent bad data from saving, and catches the common gotchas like wrapping XML special characters in CDATA sections and using the right functions for field types. The function guidelines are specific: ISPICKVAL for picklists, don't use TEXT on text fields, CASE needs an even number of parameters. It also interprets whether you want to replace a formula entirely or add to existing logic. Useful if you're tired of deployment errors from malformed validation rules or need to enforce business rules without writing triggers.
- skills.sh installs
- 1.5K
- GitHub stars
- 705
- last updated
- Jul 14, 2026
Install
$ npx -y skills add forcedotcom/afv-library --skill generating-validation-rule --agent claude-codeInstalls into .claude/skills of the current project.
Files
This handles Salesforce validation rule creation and fixes, which is honestly more tedious than it sounds. It knows the metadata format, generates the formulas that prevent bad data from saving, and catches the common gotchas like wrapping XML special characters in CDATA sections and using the right functions for field types. The function guidelines are specific: ISPICKVAL for picklists, don't use TEXT on text fields, CASE needs an even number of parameters. It also interprets whether you want to replace a formula entirely or add to existing logic. Useful if you're tired of deployment errors from malformed validation rules or need to enforce business rules without writing triggers.
Browse the repository on GitHubSponsors
Details
- Repository
- github.com/forcedotcom/afv-library
- First seen
- May 16, 2026
More from forcedotcom/afv-library
All 58- 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
- Using Ui Bundle Salesforce Data1.5K
- Creating B2b Commerce Store1.4K
- Generating Lwc Components541
- Querying Soql540
- Developing Datacloud Code Extension539
- Fetching Salesforce Docs537
- Getting Datacloud Schema536
- Deploying Metadata534
- Debugging Apex Logs532
- Handling Sf Data532
- Generating Mermaid Diagrams531
- Generating Visual Diagrams531
- Running Apex Tests531
- Configuring Connected Apps526
- Building Sf Integrations523
- Retrieving Datacloud523
- Activating Datacloud522