forcedotcom avatar

Platform Custom Field Generate

Generates and validates Salesforce CustomField metadata XML with built-in guardrails for the types that fail deployment most often: Roll-Up Summary and Master-Detail relationships. It enforces precision/scale math, the TextArea fixed-255 rule, proper file paths in SFDX format, and modern dependent picklist syntax. Handles the tricky stuff like External IDs, formula fields, value-set references, and record type scoping. The skill won't create GlobalValueSets or StandardValueSets themselves (that's a different skill), but it will wire up fields that reference them. Useful when you're tired of deployment errors that trace back to missing relationshipOrder tags or backwards precision values.

skills.sh installs
6.8K
GitHub stars
1.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add forcedotcom/sf-skills --skill platform-custom-field-generate --agent claude-code

Installs into .claude/skills of the current project.

Files

Salesforce Custom Field Generator and Validator

Overview

Generates and validates Salesforce CustomField metadata XML, with special handling for the highest-failure-rate types — Roll-Up Summary and Master-Detail. The agent must verify the constraints below before outputting XML to prevent Metadata API deployment errors.


1. Universal Mandatory Attributes

Every generated field must include these tags:

Sponsors

Details

Repository
github.com/forcedotcom/sf-skills
Categories
DevOps & CI/CD, Code Review & Quality, Release Management, Debugging, Sales & Marketing
First seen
Jul 14, 2026

More from forcedotcom/sf-skills

All 158
1pixijs avatarpixijs-createpixijs/pixijs-skillsUse this skill when scaffolding a new PixiJS v8 project with the create-pixi CLI or adding PixiJS to an existing project. Covers npm/yarn/pnpm/bun create comman6.8Kskills.sh installs
2openai avataropenai-docsopenai/skillsUse when the user asks how to build with OpenAI products or APIs, asks about Codex itself or choosing Codex surfaces, needs up-to-date official documentation wi6.8Kskills.sh installs
3wshobson avatarsigned-audit-trails-recipewshobson/agentsStep-by-step cookbook for setting up cryptographically signed audit trails on Claude Code tool calls. Use when explaining, evaluating, or demonstrating the patt6.7Kskills.sh installs
4rorkai avatarasc-crash-triagerorkai/app-store-connect-cli-skillsTriage TestFlight crashes, beta feedback, and performance diagnostics using asc. Use when the user asks about TF crashes, TestFlight crash reports, beta tester 6.6Kskills.sh installs
5mvanhorn avatarprinting-press-reprintmvanhorn/cli-printing-pressRegenerate an existing printed CLI from scratch under the current Printing Press, with prior research, prior novel features, and prior patches (post-publish han6.6Kskills.sh installs
6hashicorp avatarrefactor-modulehashicorp/agent-skillsTransform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.6.6Kskills.sh installs