b2c-metadata

Create and validate B2C Commerce site metadata XML for system-object extensions, custom objects, and site preferences.

51|16|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-metadata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: b2c-metadata
Source: https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/tree/main/skills/b2c/skills/b2c-metadata
Command: npx skills add https://github.com/SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-metadata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill helps teams design and manage B2C Commerce site metadata XML efficiently, reducing manual configuration errors and ensuring consistent schema usage across environments.

Core Features & Use Cases

  • System Object Extensions: define custom attributes on core objects like Product, Order, and SitePreferences.
  • Custom Object Definitions: create new data types and their attributes with structured metadata.
  • Site Preferences: configure and version per-site or per-environment settings via XML.

Quick Start

Edit or create metadata under site-archive/meta and sites/<SiteName>/preferences.xml as described in the examples.

Frequently Asked Questions about b2c-metadata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define custom attributes on B2C Commerce core objects using XML?

You define custom attributes on B2C Commerce core objects by creating system-object extensions in site metadata XML. This skill generates and validates XML for extending objects like Product, Order, and SitePreferences.

What is the best way to configure site preferences for B2C Commerce across environments?

The best way to configure B2C Commerce site preferences is via XML files under sites/<SiteName>/preferences.xml. This skill helps structure per-site or per-environment settings to ensure consistent schema usage.

How do I create custom object definitions in a B2C Commerce site archive?

You create custom object definitions in a B2C Commerce site archive by defining new custom-types and their attributes within the metadata XML. This skill provides structured metadata examples and best-practice guidance.

Can I validate my B2C Commerce metadata XML before deploying to an enterprise environment?

Yes, you can validate B2C Commerce metadata XML for enterprise deployments. This skill validates system-object extensions, custom object definitions, and site preferences to reduce manual configuration errors.

Where should metadata XML files be placed in a B2C Commerce site-archive structure?

Metadata XML files should be placed under site-archive/meta and sites/<SiteName>/preferences.xml. This skill applies standard site-archive structures to group attributes into type-extensions and custom-types.