/b2c-ops:b2c-performance-triagefrom b2c-ops
Investigates slow or erroring B2C Commerce storefronts using Metrics API signals to localize latency/error changes to a layer, route, or dependency.
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.
None: SKILL.md is the whole skill.
Outcome: decide where latency or errors changed and since when, rule layers in or out, and hand off comparable evidence. Metrics localize; they do not prove cause. Inspection does not authorize changes.
Resolve the target with config_inspect (CLI: b2c setup inspect). Confirm
the storefront type (SFRA, PWA Kit or headless, both), the symptom (slow,
errors, timeouts), the UTC start time, and who is affected. Propose a 60 minute
incident window plus a comparison window of equal length (same hours the
previous day, or last week if weekly seasonality) and label the assumption.
Follow the team's incident process for live impact.
| Evidence | Preferred path | Fallback / limit |
|---|---|---|
| Metrics (closed beta) | metrics_get per category with fixed from/to, 15-60 minute windows, summarize: true first | b2c metrics <category>. If not enrolled, 403 or 404, say so and continue below. A 24 h request can exceed output limits. |
| Warehouse trends | cip_discover / cip_query after CIP guidance | Delayed, aggregate; b2c cip. |
| Logs | logs_list_files then logs_get_recent filtered to the suspect route or integration | Samples, not counts. |
| Overlapping jobs | Job health | A long job can cause load-driven latency. |
| Recent code change | Code mode builtin/code-version-inspect | Metadata, not a full activation history. |
| MRT | mrt_logs_watch / mrt_logs_watch_poll | Needs MRT credentials. |
Read the metrics signals catalog
(native: b2c-production-triage references/metrics-signals.md) before
interpreting; it lists each category's metrics, dimensions, sparse-series and
placeholder behavior, and gaps.
metrics_get, read the
metrics signals catalog.
Then, in overall, compare totalCalls, responseTime,
responseTimeP95, systemWorkload and sessions for the incident and
comparison windows, using summarize: true for both. Then fetch raw points
for the series that moved to state the first minute that differs. If nothing differs,
report no metric evidence and ask what the reporter saw.controller callsMean and totalErrors by controller. One route
out of line localizes to that route's code or its integration; every route
moving together points to a shared dependency, database, workload or edge.
Checkout routes at zero calls with browse normal means checkout is not
being reached.scapi requestLatency by apiFamily (compare to the
overall rollup), responseCount by statusClass, errors4xx, errors5xx.
Then mrt if the realm has Managed Runtime data (empty means none).ocapi totalCalls, callsMean, errors by ocapiCategory.scapi-hooks hookExecutionTimes: a plateau step at the same minute as the
family latency rise implicates a hook or its dependency. hookErrors.third-party by host: integration triage
when callsP95 rises, calls stop, or exceptions appear.scapi cacheHitRate counts by cacheStatus (compute the hit share
yourself); ecdn cacheHits for storefront hosts.sessions rising without storefront requests suggests jobs or
integration traffic; systemWorkload sustained high is capacity.ecdn for production hosts only (the response includes dev, staging
and BM hosts). For bots or abuse use edge traffic triage.apiFamily,
ocapiApi, thirdPartyServiceId), mindful that filters return finer series
and product is products as a filter value. Then verify in logs for that
route, hook or host and in overlapping job executions or a code activation.Recommend the smallest supported action with blast radius and rollback: roll back a code version, pause an overlapping job, take a failing integration out of the path, or add an edge rule (via edge traffic triage). The authorized owner decides. After any change, re-query the same metrics over a fresh equivalent window and report recovered, partial, pending or unknown.
Report: target and site; UTC incident and comparison windows; layer and dimension (route, family, host); series and values with volume; hooks, cache, third-party and workload findings; log, job and code-change correlation; access gaps (metrics beta, logs, CIP); alternatives ruled out; next owner. Route integration evidence to the integration owner, custom route/hook defects to the developer, and platform-wide or edge-wide degradation to Salesforce Support using the case template. Exclude tokens and customer data.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
b2c-commerce, performance-triage, metrics-api, scapi, ocapi, sfra
7 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-order-failure-triageFind and investigate FAILED B2C Commerce orders, quantify their share of indexed orders, and correlate failed inputs with logs and jobs. Covers SCAPI status-filter limitations and the OCAPI Shop order_search fallback./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.npx claudepluginhub salesforcecommercecloud/b2c-developer-tooling --plugin b2c-opsOther plugins' skills for the same job