b2c-docs_skill
- TypeScript
20
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill salesforcecommercecloud/b2c-developer-tooling --skill b2c-docs- SKILL.md2.8 KB
Overview
This skill lets you search and read bundled Salesforce B2C Commerce (SFCC / Demandware) Script API documentation and XSD schemas using the b2c CLI. It helps verify dw.* API classes, methods, properties, and import/export XML formats while you develop or debug B2C scripts. Use it to quickly answer "how do I" questions about products, orders, URLs, and other platform objects.
How this skill works
The skill wraps the b2c CLI commands to search and read local or downloaded Script API docs and XSD schemas. You can search by class or keyword, read full documentation in the terminal, output raw markdown or JSON, and fetch XSD schemas for import/export formats. It also supports downloading the latest docs from a B2C Commerce instance and listing available schemas or docs.
When to use it
- When writing or reviewing B2C Commerce server-side scripts and controllers
- To verify class methods, properties, signatures, and return types in the dw.* namespace
- When you need XSD reference for import/export XML formats (catalog, order, customer, etc.)
- To quickly answer platform-specific "how do I" questions about products, orders, promotions, URLs
- When preparing or updating integrations and need accurate schema details
Best practices
- Install b2c CLI globally or use npx @salesforce/b2c-cli for one-off use
- Prefer reading docs with --raw or --json when piping into tools or editor workflows
- Download documentation from a representative instance (sandbox/staging) to match platform version
- Use --limit and --list to narrow searches when terms are ambiguous
- Cross-check XSD schema names with schema --list before reading specific files
Example use cases
- Search for ProductMgr methods and example usage when implementing product lookups
- Read dw.web.URLUtils docs to construct canonical URLs in controllers
- Open the catalog XSD to validate import XML and map fields for an ETL job
- Download and inspect the latest Script API from a sandbox to match deployed code
- List available schemas to confirm which export formats are supported for a migration
FAQ
No. You can run the commands with npx @salesforce/b2c-cli if you do not have a global installation.
Can I get output suitable for programmatic use?
Yes. Use --json or --raw to produce JSON or raw markdown for piping into other tools or scripts.