generating-custom-field

Generate and validate Salesforce CustomField metadata XML with field constraints.

Updated May 19, 2026
One-click install
npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill generating-custom-field-dmckeesf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generating-custom-field
Source: https://github.com/dmckeeSF/mcpdctn0507/tree/main/.agents/skills/generating-custom-field
Command: npx skills add https://github.com/dmckeeSF/mcpdctn0507 --skill generating-custom-field-dmckeesf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

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

Core Features & Use Cases

  • Automated Metadata Generation: Generates CustomField metadata XML with mandatory constraints to prevent deployment errors.
  • Field Type Support: Handles various field types including Roll-up Summary and Master-Detail relationships.
  • Use Case: For a Salesforce admin tasked with creating a new custom field for a complex object, this Skill can automatically generate the required metadata XML, including validation rules and field constraints.

Quick Start

Use the generating-custom-field skill to generate metadata for a new custom field on the 'Opportunity' object with the label 'Total Contract Value'.

Frequently Asked Questions about generating-custom-field

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

FAQPage Schema
How do I generate Salesforce Custom Field metadata XML for deployment?

To generate Salesforce Custom Field metadata XML, you need to define the field type, label, and constraints. This Skill automates that creation process, producing compliant XML with mandatory validation rules to prevent deployment errors.

Can I automate validation for Roll-up Summary and Master-Detail relationship fields?

Yes, you can automate validation for Roll-up Summary and Master-Detail relationship fields. This Skill specifically enforces relationship rules and field type constraints, ensuring your Salesforce metadata XML meets all required compliance checks before deployment.

How do I prevent deployment errors when creating Salesforce custom fields?

To prevent deployment errors when creating Salesforce custom fields, you must apply mandatory field constraints and formula requirements. This Skill validates field type rules and generates compliant metadata XML, reducing configuration failures during deployment.

What are the metadata constraints for Salesforce formula fields?

Salesforce formula field metadata constraints require specific formula syntax and field type definitions. This Skill validates these requirements alongside Roll-up Summary and Master-Detail rules, ensuring the generated XML complies with Salesforce deployment standards.

Does this approach work for complex Salesforce object custom fields?

Yes, this approach works for complex Salesforce object custom fields. It supports various field types and automatically generates the required metadata XML, including validation rules and constraints, making it suitable for advanced admin and developer workflows.