b2c-object-types
БесплатноБез исполняемых скриптовНе проверенInspect and manage system object type attribute definitions and attribute groups on a live B2C Commerce instance with the b2c CLI (SCAPI Object Definitions…
от SalesforceCommerceCloud★ 58 звёзд на GitHubОб этом скилле
B2C Object Types Skill
Use b2c object-types to work with the attribute definitions and attribute groups of system object types on an instance, through the SCAPI Object Definitions API (dx/object-definitions/v1). The changes take effect immediately, with no site archive or import job.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cli.
Command Structure
object-types
├── list - system object types with attribute/group counts
├── get <type>
├── export <type...> [-o file] [--format xml|json] - custom attributes + groups as metadata XML
├── apply <file|dir> [--dry-run] [-t type] [--import] [--force] - create/update from metadata XML or JSON
├── attributes
│ ├── list <type> [--custom|--system] [-q text] [-g group] [--values]
│ ├── get <type> <id> - includes enum values
│ ├── create <type> <id> --type <valueType> [property flags] [--file body.json] [--replace]
│ ├── update <type> <id> [property flags] [--file changes.json] - partial (PATCH)
│ └── delete <type> <id> [--force]
└── groups
├── list <type>
├── get <type> <group> - includes assigned attributes
├── create <type> <group> [-n name] [-a attr ...]
├── update <type> <group> [-n name] [--position n]
├── delete <type> <group> [--force]
├── assign <type> <group> <attr...>
└── unassign <type> <group> <attr...>
Attribute IDs work with or without the c_ prefix (fabric or c_fabric). All commands support --json.
Configuration
tenantId, shortCode, clientId, and clientSecret are read from dw.json, SFCC_* environment variables, or the active instance. Pass flags only when you need to override a configured value. Run b2c setup inspect to see where each value comes from (see the b2c-cli:b2c-config skill).
Scopes the API client needs:
sfcc.object-definitions.rwfor writes, filtered listing (--custom,--system,-q,-g), and enum valuessfcc.object-definitionsis enough for an unfilteredlistandgetSALESFORCE_COMMERCE_API:<tenant_id>
Inspect
# Which system object types exist
b2c object-types list
# Custom attributes on Product, with enum values
b2c object-types attributes list Product --custom --extended
# Find attributes by name
b2c object-types attributes list Product -q color
# One attribute, including enum values
b2c object-types attributes get Product c_color --json
# Attributes in a Business Manager group
b2c object-types groups get Product storefrontAttributes
Change
# Create a localizable string attribute with translations
b2c object-types attributes create Product fabric --type string -n Fabric -n fr=Tissu --localizable
# Change some properties (others are left as they are)
b2c object-types attributes update Product c_fabric --searchable
# Create a group and assign attributes to it
b2c object-types groups create Product materials -n Materials -a c_fabric -a c_lining
b2c object-types groups assign Product materials c_care
# Delete (asks for confirmation unless --force or --json)
b2c object-types attributes delete Product c_fabric --force
Export and Apply Metadata XML
export writes custom attribute definitions and groups as system-objecttype-extensions.xml. apply compares a metadata XML file (or a site archive directory with meta/*.xml) against the instance and makes the changes through the API, with no import job.
# Snapshot Product and Order definitions into an import set
b2c object-types export Product Order -o site-data/meta/system-objecttype-extensions.xml
# Preview what applying a file would change, then apply it
b2c object-types apply site-data --dry-run
b2c object-types apply site-data --force
# Also set enum values and default values (runs a site import for just those attributes)
b2c object-types apply site-data --import --force
# Only one object type from a larger file
b2c object-types apply site-data/meta/system-objecttype-extensions.xml -t Product --dry-run
apply is additive: it creates missing attributes and groups, updates properties that differ, and assigns missing group members. It never deletes or unassigns. Enum values and default values are listed as needing an import; add --import to set them with a site import of just those attributes (needs the hostname and WebDAV and job access). The import keeps every value already on the instance and applies the file's changes. Value type changes and custom object types are reported as warnings.
Limits — When to Use a Site Import Instead
- Enum values can't be written through the API.
valueDefinitionsis ignored on create and update. Useapply --import, ormeta/system-objecttype-extensions.xmlwithb2c job import(seeb2c:b2c-metadata). A metadata import replaces an attribute's whole value list, so include every value you want to keep. You can read the values withattributes get. - **Custom obj
Установить b2c-object-types в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл b2c-object-types?
Inspect and manage system object type attribute definitions and attribute groups on a live B2C Commerce instance with the b2c CLI (SCAPI Object Definitions API). Use this skill whenever the user needs to find which custom attributes exist on Product, Order, Profile, SitePreferences, or another system object, check an attribute's value type or enum values, add or change a custom attribute without a site import, or organize attributes into Business Manager attribute groups. Also use when they ask "what fields does Product have", "is c_foo an enum", "add a custom attribute to orders", or need attribute IDs before writing product.custom.* code.
Как установить скилл b2c-object-types?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл b2c-object-types запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic