platform-validation-rule-generate

Generate Salesforce validation rule metadata from business requirements.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill platform-validation-rule-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: platform-validation-rule-generate
Source: https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG/tree/main/.agents/skills/platform-validation-rule-generate
Command: npx skills add https://github.com/angryracoon/ARIEF-VISEO-DEV-ORG --skill platform-validation-rule-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you create, modify, and validate Salesforce Validation Rules without guessing at metadata structure, formula behavior, or deployment requirements. It reduces common errors that lead to broken rules, invalid formulas, and failed deployments.

Core Features & Use Cases

  • Validation Rule Generation: Produces metadata for new validation rules with the required API name, active state, formula, and error message.
  • Rule Modification and Troubleshooting: Supports updates to existing formulas and helps diagnose common Salesforce validation logic mistakes.
  • Salesforce Formula Guardrails: Guides correct use of functions like CASE, ISPICKVAL, VALUE, DAY, MONTH, DATEVALUE, TEXT, and ISCHANGE.
  • Deployment-Ready Output: Enforces XML handling rules, including CDATA wrapping when formulas contain XML tags, and uses the correct file extension for validation rule metadata.

Quick Start

Ask for a Salesforce validation rule by describing the object, the business condition, the error message, and whether the rule should be active.

Frequently Asked Questions about platform-validation-rule-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Salesforce validation rule metadata for deployment?

Salesforce validation rules enforce business logic by validating field expressions and displaying error messages when conditions are met. They require correct formula syntax, active status, and proper metadata structure for deployment.

How do I troubleshoot Salesforce validation rule formula errors?

Troubleshooting Salesforce validation rule formula errors involves checking function constraints for CASE, ISPICKVAL, or TEXT, verifying errorConditionFormula behavior, and ensuring errorMessage limits are respected to prevent deployment failures.

Do I need CDATA wrapping for Salesforce validation rule XML formulas?

You need the object API name, business validation requirements, error message text, and active status to define the validation rule. The Skill then applies correct fullName formatting and Salesforce function constraints to generate the metadata.

What Salesforce functions are supported for validation rule logic?

Yes, it handles validation rules for any Salesforce object by generating the correct .validationRule-meta.xml metadata, applying proper fullName formatting, active status, errorConditionFormula, and errorMessage limits for deployment.

Why does my Salesforce validation rule deployment fail with metadata errors?

Salesforce validation rule deployment fails when metadata lacks correct fullName formatting, exceeds errorMessage limits, or omits CDATA handling for XML formulas. Proper structure and formula constraint adherence prevent these deployment errors.

Can I modify an existing Salesforce validation rule formula and error message?

Yes, you can modify existing Salesforce validation rule formulas and error messages. The Skill supports updating business logic, troubleshooting validation behavior, and regenerating deployment-ready metadata for the updated rule.