/b2c-ops:b2c-order-failure-triagefrom b2c-ops
Investigates failed B2C Commerce orders: enumerates failed records, quantifies their share of indexed orders, and correlates failures with logs and jobs. Covers SCAPI status-filter limitations and OCAPI Shop order_search fallback.
Ships in b2c-ops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use when the user needs failed order records, counts, affected products, or an
explanation of why a group of orders failed. Broader "checkout is down" symptoms
start with b2c-checkout-triage; some checkout failures create no order at all.
Resolve instance/site with config_inspect (CLI: b2c setup inspect). Fix UTC
from/to boundaries and a comparison period. Ask for missing site/window;
do not use a demo default. Record impact and owner under the team's incident
process. Counts describe indexed orders, not all checkout attempts or conversion.
| Need | Toolkit path | Important limit |
|---|---|---|
| Enumerate FAILED orders | Check Admin Orders query support with scapi_search; external OCAPI Shop POST /order_search is the fallback | SCAPI status=failed has returned HTTP 400; a response enum does not prove query support. CIP/CCAC is not a substitute for this population. |
| External request authentication | CLI b2c auth token --json | Use only for the external client. SCAPI code mode has no OCAPI request helper, and its safety policy does not cover external HTTP. |
| Failure reason and correlation | logs_list_files -> discovered integration prefix -> bounded logs_get_recent | Discover custom-* categories; error/customerror defaults can miss the payment integration. |
| Suspect product/custom attribute | Code-mode Admin reads; live schema expansion when the field is unknown | Compare selected fields on known failed/healthy IDs; Shopper execution is unsupported. |
| Suspected data writer | b2c-job-health | Inspect the execution log and actual data effects, not just job status. |
Read order-search recipe before counting: it
defines the site grant/index prerequisites, bounded request bodies, auth handling,
and fault interpretation. For code mode, first read skill://mcp/b2c-mcp-scapi/SKILL.md.
If external requests are unavailable, report that evidence gap and continue with
logs; do not deploy an OrderMgr endpoint to obtain access.
failed / all indexed orders; if either query fails,
the ratio is unknown. Zero denominator means undefined, not zero failures.Investigation does not authorize changing order status, reprocessing orders, retrying charges, refunding, rerunning integrations, or changing access/indexes. Before authorized intervention, establish duplicate-charge/message risks and partial effects. Verify new outcomes over an equivalent interval; old FAILED records need not disappear for recovery to be real.
Provide site/window, totals/denominator, sample size and safe IDs, recurring error, affected input, suspected writer/component, limitations, and the next owner. Route to the administrator, developer, integration provider, or Salesforce Support using the case template. Missing Shop access is a targeted administrator request, not evidence of no failures. Case submission and other external communication require authorization.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin b2c-ops7 skills in this plugin
/b2c-checkout-triageInvestigate B2C Commerce checkout or payment failures, increased failed orders, or falling order volume. Compare bounded order evidence, integration logs and affected data; separate payment failures from traffic and reporting gaps./b2c-edge-traffic-triageInvestigate bots, scrapers, crawlers, credential or token abuse, API abuse, and edge 403/429 or error spikes hitting a B2C Commerce storefront or SCAPI through the eCDN (CDN edge). Review WAF, firewall and rate-limiting protections, correlate available traffic evidence, and propose narrowly scoped rule changes for approval./b2c-integration-triageInvestigate failing, slow or silent calls from B2C Commerce to external services (payment, tax, shipping, OMS, search, email, custom APIs) using Metrics API third-party signals (call volume, p95 duration, remote exceptions by host) with logs and service configuration. Decide whether the provider is slow or unreachable, whether calls stopped, or whether the fault is elsewhere./b2c-job-healthReview B2C Commerce scheduled jobs during routine operations or investigate failed jobs, missing runs, stale imports, and green executions with incomplete results. Check logs and business data before proposing a rerun./b2c-performance-triageInvestigate slow or erroring B2C Commerce storefront, SCAPI, OCAPI or SFRA responses using Metrics API signals (overall traffic and p95, SCAPI family latency and status class, SFRA controller duration and errors, SCAPI hook time, cache, third-party calls, system workload, Managed Runtime). Localize a latency or error change to a layer, route or dependency and since when, then hand off with evidence./b2c-production-triageInvestigate B2C Commerce incidents using B2C MCP logs, SCAPI code-mode job/data reads, and CLI fallbacks. Route error spikes, stale data, or checkout failures to focused runbooks and produce a team or Support handoff.Other plugins' skills for the same job