b2c-metadata
БесплатноБез исполняемых скриптовНе проверенDefine custom attributes, custom object types, and site preferences for B2C Commerce using metadata XML. Use this skill whenever the user needs to add a field…
от SalesforceCommerceCloud★ 58 звёзд на GitHubОб этом скилле
Metadata Skill
This skill guides you through working with site metadata XML for Salesforce B2C Commerce, including custom attributes, custom objects, and site preferences.
Scope & grounding
This skill covers B2C Commerce metadata XML system (metadata.xsd namespace http://www.demandware.com/xml/impex/metadata/2006-10-31), including system-objecttype-extensions.xml, custom-objecttype-definitions.xml, and preferences.xml file structures. The examples show attribute types, enum value patterns, and Script API custom attribute access via dw.system.Site and ExtensibleObject.custom. Before answering questions that name specific B2C versions, XSD schema constraints, or emitting code the user will run, confirm current API shape and schema rules via b2c docs search and b2c docs read (CLI) or docs_search/docs_read (MCP). The canonical B2C Commerce documentation is the grounding source for metadata schema evolution, Script API signatures, and platform object types.
Canonical docs:
metadata- metadata XML schema and structuredw.system.Site- Script API for site preferencesdw.system.SitePreferences- Script API for site preferences accessdw.object.CustomAttributes- Script API for custom attribute accessb2c-commerce/b2c-create-impex-folder-structure-ds- site archive folder structureb2c-commerce/b2c-exporting-active-data- export guideb2c-commerce/creatingcustombusinessobjectswithdemandwarebusinessmanager- custom object creationb2c-commerce/b2c-business-manager-extension-points- Business Manager extension points
Overview
Metadata defines the structure of your B2C Commerce data:
| Metadata Type | Purpose |
|---|---|
| System Object Extensions | Add custom attributes to Products, Orders, Customers, etc. |
| Custom Objects | Define entirely new data types |
| Site Preferences | Site-specific configuration values |
Site Archive Structure
Metadata is organized in site archives:
/site-archive
/meta
system-objecttype-extensions.xml # Custom attributes on system objects
custom-objecttype-definitions.xml # Custom object definitions
/sites
/MySite
preferences.xml # Site preferences
System Object Extensions
Add custom attributes to existing system objects.
To inspect the attributes on a live instance, or to add or change a custom attribute or attribute group without an import, use
b2c object-types(seeb2c-cli:b2c-object-types). Enum values and custom object types still require metadata XML.
Basic Structure
<?xml version="1.0" encoding="UTF-8"?>
<metadata xmlns="http://www.demandware.com/xml/impex/metadata/2006-10-31">
<type-extension type-id="Product">
<custom-attribute-definitions>
<attribute-definition attribute-id="myCustomAttribute">
<display-name xml:lang="x-default">My Custom Attribute</display-name>
<type>string</type>
<mandatory-flag>false</mandatory-flag>
<externally-managed-flag>false</externally-managed-flag>
</attribute-definition>
</custom-attribute-definitions>
<group-definitions>
<attribute-group group-id="MyCustomGroup">
<display-name xml:lang="x-default">My Custom Group</display-name>
<attribute attribute-id="myCustomAttribute"/>
</attribute-group>
</group-definitions>
</type-extension>
</metadata>
Common System Objects
Illustrative list; confirm current platform object types with
b2c docs read b2c-commerce/creatingcustombusinessobjectswithdemandwarebusinessmanagerand Business Manager object reference.
| Object Type | Use Case |
|---|---|
Product |
Product attributes |
Order |
Order metadata |
Profile |
Customer profile data |
Basket |
Cart data |
SitePreferences |
Site configuration |
Category |
Category attributes |
Content |
Content asset attributes |
See System Objects Reference for more types. The full set of extensible system objects is defined by the B2C platform — check Business Manager and official docs for version-specific availability.
Attribute Types
Per metadata.xsd simpleType.AttributeType — confirm current schema with
b2c docs schema metadata.
| Type | Description | Example |
|---|---|---|
string |
Text (max 4000 chars) | SKU, descriptions |
text |
Long text (unlimited) | Rich content |
int |
Integer | Quantity, rank |
double |
Decimal | Percentage, weight |
boolean |
true/false | Flags |
date |
Date only | Birth date |
datetime |
Date and time | Timestamps |
email |
Email address | Contact email |
password |
Encrypted | API keys |
html |
HTML content | Rich text |
enum-of-string |
Single select | Status |
enum-of-int |
Numeric enum | Priority level |
| `se |
Установить b2c-metadata в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл b2c-metadata?
Define custom attributes, custom object types, and site preferences for B2C Commerce using metadata XML. Use this skill whenever the user needs to add a field to products, orders, or customers, create a new custom object type, set up site preferences, or extend the B2C data model. Also use when they ask about system-objecttype-extensions.xml, custom-objecttype-definitions.xml, attribute groups in Business Manager, or data model definitions — even if they just say "add a field to products" or "I need a new object type".
Как установить скилл b2c-metadata?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл b2c-metadata запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic