forcedotcom avatar

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-code

Installs 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

Recommended

More Debugging
1calm-north avataroptimize-for-aicalm-north/seojuice-skillsOptimize content for AI search engines — ChatGPT, Perplexity, Claude, Gemini, Google AI Overviews. Use when the user asks about AI SEO, AISO, getting cited by A6.6Kskills.sh installs
2analogjs avatarangular-httpanalogjs/angular-skillsImplement HTTP data fetching in Angular v20+ using resource(), httpResource(), and HttpClient. Use for API calls, data loading with signals, request/response ha6.6Kskills.sh installs
3pixijs avatarpixijs-accessibilitypixijs/pixijs-skillsUse this skill when adding screen reader and keyboard navigation to PixiJS v8 apps. Covers AccessibilitySystem options (enabledByDefault, debug, activateOnTab, 6.6Kskills.sh installs
4calm-north avatarbuild-linkscalm-north/seojuice-skillsDesign a link building campaign with prospect identification, asset creation, and outreach strategy. Use when the user asks about link building, backlinks, doma6.5Kskills.sh installs
5aws avataraws-transformaws/agent-toolkit-for-awsPerforms code upgrades, migrations, and transformations using the AWS Transform (ATX) CLI. Use when upgrading language versions, migrating AWS SDKs, migrating f6.5Kskills.sh installs
6assistant-ui avatarprimitivesassistant-ui/skillsBuilds and customizes assistant-ui chat UI from composable, unstyled @assistant-ui/react primitives that follow Radix-style part composition. Use when assemblin6.5Kskills.sh installs