Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

b2c-performance-triage

БесплатноБез исполняемых скриптовНе проверен

Investigate slow or erroring B2C Commerce storefront, SCAPI, OCAPI or SFRA responses using Metrics API signals (overall traffic and p95, SCAPI family latency…

SalesforceCommerceCloudот SalesforceCommerceCloud★ 58 звёзд на GitHub

Об этом скилле

Performance and error-rate triage

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.

Scope and impact

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.

Access and tools

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.

Checks and decisions

  1. Confirm and date it. Before the first 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.
  2. Choose the stack.
    • SFRA: 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.
    • Headless or PWA: 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).
    • Integrations and mobile: ocapi totalCalls, callsMean, errors by ocapiCategory.
  3. Check amplifiers.
    • 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.
    • Cache: scapi cacheHitRate counts by cacheStatus (compute the hit share yourself); ecdn cacheHits for storefront hosts.
    • Load: sessions rising without storefront requests suggests jobs or integration traffic; systemWorkload sustained high is capacity.
    • Edge: ecdn for production hosts only (the response includes dev, staging and BM hosts). For bots or abuse u
Полный SKILL.md на GitHub

Установить b2c-performance-triage в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл b2c-performance-triage?

Investigate 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-performance-triage?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл b2c-performance-triage запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить b2c-performance-triage с