Help us improve
Share bugs, ideas, or general feedback.
From sf-skills
Creates, modifies, and validates Salesforce Validation Rules metadata with formulas, error messages, and data quality logic. Includes guidelines for correct function usage.
npx claudepluginhub ccmalcom/sf-skills-plugin --plugin sf-skillsHow this skill is triggered — by the user, by Claude, or both
Slash command
/sf-skills:generating-validation-ruleThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when you need to:
Translates plain-English business rules into deployable Salesforce validation rule formula syntax, including error messages, profile bypass, null handling, and formula safety checks.
Generates and validates Salesforce Custom Field metadata with mandatory constraints to prevent deployment errors, focusing on Roll-up Summary, Master-Detail, and formula fields.
Validates data against JSON schemas, business rules, and quality standards including duplicates, anomalies, formats. Generates reports with errors, stats, scores, and fix suggestions.
Share bugs, ideas, or general feedback.
Use this skill when you need to:
Validation Rules are declarative metadata components used to enforce data quality and business logic in Salesforce. They evaluate a formula expression when a record is saved and prevent the save operation if the expression returns TRUE.
-Enforce business rules at the data layer -Prevent invalid or incomplete records from being saved -Display meaningful error messages to guide users
fullName
active -Indicates whether the validation rule is enabled true → Rule is enforced false → Rule is inactive
errorConditionFormula
The logical formula that evaluates record data
Must return TRUE or FALSE
If TRUE, the validation rule triggers an error
errorMessage
Maximum length: 255 characters
Formula XML Handling(MOST COMMON ERROR)
Interpretation of "Update" Instructions. When receiving instructions to modify a formula, distinguish between a replacement and an addition:
File Format Requirement
.validationRule-meta.xml extension.