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
Own this skill? Claim it
What it does
- Covers object creation, sharing and security settings, name field setup, and deployment troubleshooting for
.object-meta.xmlfiles - Includes a required-elements table and a Master-Detail rule that forces
ControlledByParentas 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 -yInstalls 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- Automation Flow Generate6.8K
- Experience Lwc Generate6.7K
- Platform Validation Rule Generate6.5K
- Platform Flexipage Generate6.5K
- Dx Org Manage6.4K
- Platform Data Manage6.4K
- Platform Sharing Rules Generate6.4K
- Platform Metadata Api Context Get6.3K
- Design Systems Slds Apply6.3K
- Design Systems Slds Validate6.1K
- Platform Custom Tab Generate6.1K
- Agentforce Generate6.1K
- Dx Code Analyzer Configure6K
- Platform Custom Application Generate6K
- Platform List View Generate6K
- Agentforce Architecture Analyze5.9K
- Dx Org Switch5.9K
- Dx Org Permission Set Assign5.9K
- Platform Custom Lightning Type Generate5.9K
- Agentforce Test5.8K
- Agentforce Observe5.8K
- Platform Lightning App Coordinate5.8K
- Design Systems Slds2 Migrate5.8K
- External Diagram Mermaid Generate5.7K
Similar to Platform Custom Object Generate
More Backend & APIsnextjs-supabase-authsickn33/agentic-awesome-skills6.6K installsnextjs supabase auth
platform-validation-rule-generateforcedotcom/sf-skills6.5K installsUse this skill when users need to create, modify, or validate Salesforce Validation Rules. Trigger when users mention validation rules, field validation, data q
nestjs-expertjeffallan/claude-skills6.5K installsCreates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when buil
nodemcollina/skills6.5K installsProvides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, test
platform-sharing-rules-generateforcedotcom/sf-skills6.4K installsUse this skill when users need to create, edit, delete, or manage Salesforce Sharing Rules metadata. TRIGGER when: users mention sharing rules, record sharing,
platform-metadata-api-context-getforcedotcom/sf-skills6.3K installsREQUIRED companion for Salesforce metadata generation — load this schema/API-context skill in the SAME turn as ANY metadata generation skill; if you load a gene