Borrowing it
Nothing to install: this file belongs to SalesforceCommerceCloud/b2c-developer-tooling. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/SalesforceCommerceCloud/b2c-developer-tooling/main/.claude/commands/update-script-api-docs.mdgit clone --depth 1 https://github.com/SalesforceCommerceCloud/b2c-developer-toolingWrote 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.
[](https://agentmods.dev/commands/salesforcecommercecloud/b2c-developer-tooling/update-script-api-docs)<a href="https://agentmods.dev/commands/salesforcecommercecloud/b2c-developer-tooling/update-script-api-docs"><img src="https://agentmods.dev/badge/commands/salesforcecommercecloud/b2c-developer-tooling/update-script-api-docs/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.
<a href="https://agentmods.dev/commands/salesforcecommercecloud/b2c-developer-tooling/update-script-api-docs"><img src="https://agentmods.dev/badge/commands/salesforcecommercecloud/b2c-developer-tooling/update-script-api-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00330 |
| Opus 5.5 | $0.00000 | $0.00132 |
| Sonnet 5.5 | $0.00000 | $0.00066 |
| Haiku 4.5 | $0.00000 | $0.00033 |
Grade C, and why
update-script-api-docs scanned grade C with 1 finding 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 3mo 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf /tmp/script-api-docs-update What it actually says
Update Script API Documentation
Download the latest B2C Commerce Script API documentation from the configured sandbox and update the bundled docs in the SDK.
Steps
- Download Script API docs from the configured sandbox using
./cli docs download - Replace the markdown files in
packages/b2c-tooling-sdk/data/script-api/ - Regenerate the search index with
pnpm --filter @salesforce/b2c-tooling-sdk run generate:docs-index - Show the version extracted from
index.mdheader - Show git status/diff summary of what changed
Commands to Run
# Download to temp directory
./cli docs download /tmp/script-api-docs-update
# Check version
head -1 /tmp/script-api-docs-update/index.md
# Replace existing files
rm -f packages/b2c-tooling-sdk/data/script-api/*.md
cp /tmp/script-api-docs-update/*.md packages/b2c-tooling-sdk/data/script-api/
# Regenerate index
pnpm --filter @salesforce/b2c-tooling-sdk run generate:docs-index
# Show changes
git status packages/b2c-tooling-sdk/data/script-api/ --short
git diff packages/b2c-tooling-sdk/data/script-api/*.md --stat
# Cleanup
rm -rf /tmp/script-api-docs-update
After running, summarize:
- The Script API version (from index.md header like "# B2C Commerce Script API 26.2")
- Number of files updated
- Key changes (new classes, deprecated methods, etc.)
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.
- 3mo ago First seen · 41 lines · 0 tokens per session scan C ad8a646bf9c4
update-script-api-docs is a command published in the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling (58 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 330 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
update-script-api-docs compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| update-script-api-docsSalesforceCommerceCloud/b2c-developer-tooling | Command | 58 | today | Apache-2.0 | C | 0 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 16d ago | MIT | A | 8 | Claude Code |
| modernize-transformfuxicodex/Fuxi | Command | 3.2k | 8d ago | none | A | 17 | Claude Code |
| amp-registeragentmessaging/claude-plugin | Command | 5 | today | Apache-2.0 | A | 0 | Claude Code |
| doctorfatihkan/badi | Command | 8 | 1mo ago | MIT | A | 0 | Claude Code |
| setupAgents365-ai/365-skills | Command | 108 | 29d ago | none | A | 21 | Claude Code |
| bugmeller/laneconductor | Command | 15 | 6d ago | none | A | 16 | Claude Code |