
Platform Custom Object Generate
Generates Salesforce Custom Object metadata XML with the right guardrails to prevent deployment failures. It knows when to use ControlledByParent versus ReadWrite sharing models (critical when Master-Detail relationships are involved), picks sensible defaults for name fields (Text for entities, AutoNumber for transactions), and enforces description enrichment whenever you add or change fields or validation rules. The description workflow is smart: it proposes updates and waits for confirmation rather than silently overwriting what might be hand-written documentation. Useful when you're scaffolding custom objects or troubleshooting those cryptic sharing model errors that come back from the Metadata API. The spec is thorough enough that it should catch the common mistakes before you deploy.
- skills.sh installs
- 6.6K
- GitHub stars
- 1.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add forcedotcom/sf-skills --skill platform-custom-object-generate --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/forcedotcom/sf-skills
- Categories
- Debugging, Sales & Marketing
- First seen
- Jul 14, 2026
More from forcedotcom/sf-skills
All 158- Automation Flow Generate6.5K
- Experience Lwc Generate6.4K
- Platform Validation Rule Generate6.3K
- Platform Data Manage6.3K
- Dx Org Manage6.2K
- Platform Flexipage Generate6.2K
- Platform Metadata Api Context Get6.2K
- Platform Sharing Rules Generate6.2K
- Design Systems Slds Apply6.1K
- Design Systems Slds Validate6K
- Agentforce Generate6K
- Platform Custom Tab Generate6K
- Dx Code Analyzer Configure5.9K
- Platform Custom Application Generate5.9K
- Platform List View Generate5.9K
- Agentforce Architecture Analyze5.9K
- Dx Org Switch5.8K
- Dx Org Permission Set Assign5.8K
- Platform Custom Lightning Type Generate5.8K
- Agentforce Test5.8K
- Agentforce Observe5.8K
- Platform Lightning App Coordinate5.7K
- Design Systems Slds2 Migrate5.7K
- External Diagram Mermaid Generate5.6K