forcedotcom avatar

Generating Validation Rule

This handles the tedious parts of writing Salesforce validation rules so you don't have to memorize formula syntax quirks. It knows the common gotchas like wrapping XML tags in CDATA sections, not using TEXT() on text fields, and the fact that CASE() always needs an even number of parameters. When you say "update the formula to also check X" it appends logic instead of replacing everything, which is surprisingly helpful. Good for generating the boilerplate metadata files with proper error messages and formulas, troubleshooting deployment errors, and avoiding the trial and error of getting picklist checks and date conversions right. Saves you from constantly checking the formula reference docs.

skills.sh installs
3.9K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill generating-validation-rule --agent claude-code

Installs into .claude/skills of the current project.

Files

This handles the tedious parts of writing Salesforce validation rules so you don't have to memorize formula syntax quirks. It knows the common gotchas like wrapping XML tags in CDATA sections, not using TEXT() on text fields, and the fact that CASE() always needs an even number of parameters. When you say "update the formula to also check X" it appends logic instead of replacing everything, which is surprisingly helpful. Good for generating the boilerplate metadata files with proper error messages and formulas, troubleshooting deployment errors, and avoiding the trial and error of getting picklist checks and date conversions right. Saves you from constantly checking the formula reference docs.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Code Review & Quality, Debugging, Sales & Marketing
First seen
Jun 3, 2026

More from forcedotcom/sf-skills

All 158
1zc277584121 avatarvideo-to-gifzc277584121/marketing-skillsConvert a video to multiple GIF variants with different quality/size tradeoffs. Generates a comparison set so the user can visually pick the best result.3.9Kskills.sh installs
2github avatareval-driven-devgithub/awesome-copilotImprove AI application with evaluation-driven development. Define eval criteria, instrument the application, build golden datasets, observe and evaluate applica3.9Kskills.sh installs
3dotnet avatarsystem-text-json-net11dotnet/skillsImperative guidance for the System.Text.Json APIs added in .NET 11: the built-in `JsonNamingPolicy.PascalCase` naming policy, and the strongly-typed `JsonSerial3.8Kskills.sh installs
4yaklang avatarrace-conditionyaklang/hack-skillsRace condition and TOCTOU testing for web apps. Use when testing one-time operations, concurrent HTTP abuse, rate-limit bypass, Turbo Intruder gates, HTTP/2 sin3.8Kskills.sh installs
5minimax-ai avatarminimax-xlsxminimax-ai/skillsOpen, create, read, analyze, edit, or validate Excel/spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Use when the user asks to create, build, modify, analyze, rea3.8Kskills.sh installs
6majidmanzarpour avatarthreejs-gameplay-systemsmajidmanzarpour/threejs-game-skillsBuild and iterate playable Three.js game systems. Combines starter scaffold creation, architecture, game design, level design, gameplay implementation, combat/e3.8Kskills.sh installs