b2c-metadata

b2c-metadata is a skill for Claude Code from SalesforceCommerceCloud/b2c-developer-tooling. It costs 118 tokens per session (3,892 once invoked), scanned A, original, Apache-2.0.

A guide to extending the Salesforce B2C Commerce data model with metadata XML. It covers extra fields, custom record types, and site-wide settings.

In plain words
What is it for?
Use it to add custom attributes, define custom object types, create site preferences, and access those values from B2C Commerce scripts.
Why use it?
It explains how to store information that the built-in product, order, customer, or site data does not already provide.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the b2c plugin — 20 skills shipped together

Good fit Use it to add custom attributes, define custom object types, create site preferences, and access those values from B2C Commerce scripts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/salesforcecommercecloud/b2c-developer-tooling/b2c-metadata
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-metadata
Clone the repo
git clone --depth 1 https://github.com/SalesforceCommerceCloud/b2c-developer-tooling

Made for: Claude Code.

Or install b2c, the plugin that ships this one along with the rest of its 20 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for b2c-metadata

README.md
[![agentmods](https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-metadata/github.svg)](https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-metadata)
Your own site
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-metadata"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-metadata/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for b2c-metadata

Your own site · 80×15
<a href="https://agentmods.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-metadata"><img src="https://agentmods.dev/badge/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-metadata.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,892 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 156
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • medium Data Exfiltration · line 341
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.03892
Opus 5.5 $0.00047 $0.01557
Sonnet 5.5 $0.00024 $0.00778
Haiku 4.5 $0.00012 $0.00389

Measured 28d ago against content hash f1263469b604, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

b2c-metadata scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/b2c/skills/b2c-metadata/SKILL.md · 409 lines

How it starts

The opening of the file, as written. The whole thing — 409 lines — stays where its author put it; the contents beside it link to each section on 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 structure
  • dw.system.Site - Script API for site preferences
  • dw.system.SitePreferences - Script API for site preferences access
  • dw.object.CustomAttributes - Script API for custom attribute access
  • b2c-commerce/b2c-create-impex-folder-structure-ds - site archive folder structure
  • b2c-commerce/b2c-exporting-active-data - export guide
  • b2c-commerce/creatingcustombusinessobjectswithdemandwarebusinessmanager - custom object creation
  • b2c-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

Read the full file on GitHub · 409 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · +2 lines f1263469b604
  2. 3mo ago First seen · 407 lines · 118 tokens per session scan A e064d0eb9209

Subscribe to this mod's changes

b2c-metadata is a skill published in the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling (58 stars, last pushed today), licensed Apache-2.0. It adds 118 tokens to every session and 3,892 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

b2c-metadata compared with skills from other repositories

b2c-metadata next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
b2c-metadataSalesforceCommerceCloud/b2c-developer-toolingSkill58todayApache-2.0A118Claude Code
shopify-app-developmentfinsilabs/awesome-ecommerce-skillsSkill691mo agoMITA27Claude Code, Codex
sfcc-ocapi-scapifinsilabs/awesome-ecommerce-skillsSkill691mo agoMITB34Claude Code, Codex
pp-delhivery-mapsmvanhorn/printing-press-librarySkill2.2kyesterdayApache-2.0E104Claude Code
grow-payment-gatewaysquadcodercom/squadcoderSkill125mo agoMITA274Claude Code, Codex
israeli-shipping-managersquadcodercom/squadcoderSkill125mo agoMITA207Claude Code
convex-billingopenclaw/clawhubSkill9.6ktodayMITA29Claude Code, Codex