generating-custom-field

Generate and validate Salesforce Custom Field metadata XML against field constraints.

Updated Jun 1, 2026
One-click install
npx skills add https://github.com/Collabalist/SFDC --skill generating-custom-field-collabalist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-custom-field
Source: https://github.com/Collabalist/SFDC/tree/main/.agents/skills/generating-custom-field
Command: npx skills add https://github.com/Collabalist/SFDC --skill generating-custom-field-collabalist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sfdx, python, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation and validation of Salesforce Custom Field metadata, ensuring compliance and reducing deployment errors.

Core Features & Use Cases

  • Custom Field Generation: Automates the creation of various Salesforce field types, including text, number, date, picklists, and more.
  • Field Validation: Validates field metadata against Salesforce constraints to prevent deployment errors.
  • Use Case: Use this Skill to create a new custom field on an object, ensuring it adheres to Salesforce standards and is ready for deployment.

Quick Start

Use the generating-custom-field skill to create a new custom field named 'Total_Contract_Value__c' on the 'Opportunity' object.

Frequently Asked Questions about generating-custom-field

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

FAQPage Schema
How do I automate Salesforce custom field metadata generation?

To automate Salesforce custom field metadata generation, you can use scripts that output XML files compliant with Salesforce field constraints. This ensures your text, number, date, and picklist fields are valid and ready for deployment.

How can I validate Salesforce custom field metadata to prevent deployment errors?

You can validate Salesforce custom field metadata by checking the generated XML against standard Salesforce constraints. This validation step reduces deployment errors by ensuring field types and properties adhere to platform requirements.

Do I need sfdx and python to generate Salesforce custom fields?

Yes, you need both sfdx and python installed in your environment. These dependencies are required to run the automation scripts that generate and validate the Salesforce custom field metadata XML.

What is the best way to create a Salesforce custom field for deployment?

The best way to create a Salesforce custom field for deployment is to automate the XML generation. This approach enforces compliance with Salesforce field constraints from the start, reducing manual errors and streamlining the deployment process.

What types of Salesforce custom fields can I generate with this automation?

You can generate various Salesforce custom field types, including text, number, date, and picklists. The automation handles the specific metadata XML structure required for each field type to ensure successful deployment.

Why do my Salesforce custom field deployments fail validation?

Salesforce custom field deployments often fail validation due to non-compliant metadata XML. Automating generation and validating field metadata against Salesforce constraints prevents these errors before deployment.