salesforce-custom-field

Generate and validate Salesforce CustomField XML metadata for deployments.

803|289|Updated Nov 7, 2025
One-click install
npx skills add https://github.com/forcedotcom/afv-library --skill salesforce-custom-field
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salesforce-custom-field
Source: https://github.com/forcedotcom/afv-library/tree/main/skills/salesforce-custom-field
Command: npx skills add https://github.com/forcedotcom/afv-library --skill salesforce-custom-field

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Salesforce deployments often fail due to misconfigured Custom Field metadata, including Roll-up Summary, Master-Detail, and formula fields. This skill provides a safe, repeatable way to generate and validate field XML that prevents common deployment errors and accelerates metadata work.

Core Features & Use Cases

  • Generate verified CustomField XML for any Salesforce field type, including Relationship, Formula, and Roll-Up Summary fields.
  • Enforce Salesforce metadata constraints to minimize deployment failures and ensure compliant field definitions.
  • Use within object-level workflows to rapidly prototype or troubleshoot field configurations during deployments.

Quick Start

Provide a business scenario and I will generate the required custom field metadata.

Frequently Asked Questions about salesforce-custom-field

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

FAQPage Schema
How do I generate Salesforce custom field metadata without deployment errors?

To generate Salesforce custom field metadata without deployment errors, provide a business scenario to the skill, which applies universal attribute constraints and outputs deploy-ready XML metadata that prevents common configuration failures.

What is the best way to create Master-Detail and Roll-Up Summary fields in Salesforce?

The best way to create Master-Detail and Roll-Up Summary fields is to use an automated metadata generator that enforces Salesforce restrictions and universal rules, ensuring your relationship and roll-up fields are valid before deployment.

How do I troubleshoot custom field XML deployment failures in Salesforce?

To troubleshoot custom field XML deployment failures in Salesforce, validate your field definitions against Master-Detail restrictions and roll-up summary rules, correcting any misconfigured attributes that block the deployment.

Can I automate Salesforce formula field validation for object-level workflows?

Yes, you can automate Salesforce formula field validation for object-level workflows by generating verified CustomField XML that applies formula field rules and universal attribute constraints to ensure compliant definitions.

Why do Salesforce roll-up summary fields fail to deploy?

Salesforce roll-up summary fields fail to deploy due to misconfigured metadata that violates specific roll-up and Master-Detail restrictions, requiring automated validation to enforce compliant field definitions before deployment.