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.
npx skills add https://github.com/forcedotcom/afv-library --skill generating-validation-rule