Skip to content
forcedotcom avatar

Platform Custom Object Generate

Salesforce custom object metadata skill that generates .object-meta.xml, enforces sharing-model rules, and keeps object descriptions current.

CCM score
73 of 100
skills.sh installs
6.9K
GitHub stars
1.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers object creation, sharing and security settings, name field setup, and deployment troubleshooting for .object-meta.xml files
  • Includes a required-elements table and a Master-Detail rule that forces ControlledByParent as the sharing model
  • Enforces a description refresh whenever a field or validation rule is added, changed, or deleted, with user confirmation before writing
  • Designed for Salesforce admins and developers working on Custom Object metadata, excluding Apex, Flows, LWC, and standard objects

Install

$ npx -y skills add forcedotcom/sf-skills --skill platform-custom-object-generate -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

When to Use This Skill

Use this skill when you need to:

  • Create new custom objects
  • Generate custom object metadata XML
  • Configure object sharing and security settings
  • Set up object features and capabilities
  • Troubleshoot deployment errors related to custom objects
  • Add, update, or delete a field OR a validation rule on an existing object — any of these may make the object's <description> stale, so you must refresh it (propose + confirm). This applies equally to validation-rule changes, not just fields. See Section 3.B.

For authoritative Metadata API type, field, and enum details beyond this skill, use the platform-metadata-api-context-get skill.

Specification

1. Overview and Purpose

This document defines the mandatory constraints for generating CustomObject metadata XML (.object-meta.xml file). The agent must verify these constraints before outputting XML to prevent Metadata API deployment errors.

File extension: .object-meta.xml

Details

Repository
github.com/forcedotcom/sf-skills
Categories
Backend & APIs, Databases
First seen
Jul 14, 2026

Questions

What does the platform-custom-object-generate skill do?

It creates, generates and validates Salesforce Custom Object metadata as .object-meta.xml files. It also keeps the object's description current whenever its fields or validation rules change, and helps troubleshoot object deployment errors around sharing models and Master-Detail relationships.

How do I install the platform-custom-object-generate skill?

Run npx -y skills add forcedotcom/sf-skills --skill platform-custom-object-generate -y in your project. Once installed, the agent can generate custom object metadata XML for your Salesforce project.

Which sharing model should a custom object use with a Master-Detail field?

This skill requires ControlledByParent as the sharingModel whenever the object contains a Master-Detail relationship field. Otherwise it defaults to ReadWrite, and it also updates an existing child object to ControlledByParent when a Master-Detail field is added.

Where does this skill sit in the Backend and APIs category on Claude Marketplaces?

It is listed in the Backend and APIs category alongside entra-app-registration, neon, firebase-basics, firebase-auth-basics and workers-best-practices. It focuses on Salesforce custom object metadata rather than general backend services.

More from forcedotcom/sf-skills

All 78

Similar to Platform Custom Object Generate

More Backend & APIs