/orocommerce-skills:oro-k6-testingfrom orocommerce-skills
Use when setting up or running k6 performance tests for Oro Commerce 6.1 — load testing, storefront benchmarking, checkout performance, cache warm-up, or writing k6 scripts for Oro. Also on sight of warmingUpTheApp.js, storefrontTests.js, checkoutTest.js, or metrics like load_product_listing_page_logged_in_user. Triggers on 'k6', 'load test', 'performance test', 'THRESHOLD_95', 'VU', 'grafana k6', 'warm up'.
Ships in orocommerce-skills. 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.
Oro ships a stock k6 harness (oro/performance-tests) exercising the storefront from outside: browsing, login, listing/search/detail, shopping list, checkout. Plain JavaScript, k6 as a single Go binary or the grafana/k6 image, with named custom metrics you can gate individually.
performance/scripts/, in this fixed order against a cleared cache — step 1 primes what steps 2 and 3 measure, so out of order inflates the numbers.
warmingUpTheApp.js — 1 VU / 60s / THRESHOLD_95=3000. Primes OPcache, Doctrine metadata, layout cache, search index.storefrontTests.js — browse flow (home, listing, search, detail, login). Typical 1 VU / 600s / THRESHOLD_95=850.checkoutTest.js — authenticated checkout from a shopping list. Needs SL_ID, SHIPPING_METHOD, PAYMENT_METHOD.Do not reuse the load-run threshold (850 ms) for the warm-up — first-touch is always slower and the run will fail on cold caches.
All via -e KEY=VALUE. Every script takes BASE_URL, USERNAME, PASSWORD, VU, DURATION and THRESHOLD_95 (3000 warm-up, 850 load); checkoutTest.js adds SL_ID, SHIPPING_METHOD (fixed_product_5) and PAYMENT_METHOD (payment_term_1). Values and defaults: references/v6.1.md.
docker run --rm --network host -u "$(id -u):$(id -g)" \
-v "${PWD}/performance:/home/k6/performance" -w /home/k6/performance \
grafana/k6:latest run \
-e BASE_URL="https://oro.docker.local" \
-e USERNAME="[email protected]" \
-e PASSWORD="[email protected]" \
-e VU=1 -e DURATION=60s -e THRESHOLD_95=3000 \
scripts/warmingUpTheApp.js
--network host lets k6 reach localhost and compose services; -u $(id -u):$(id -g) keeps summary.html from landing root-owned. Every flag: references/docker-invocation.md.
The scripts emit 14 named metrics beyond the k6 defaults, so options.thresholds can gate each one rather than a single global p95. List and examples: references/custom-metrics.md.
handleSummary() writes summary.html via k6-reporter — per-group timings, VU curves, threshold badges — alongside the stdout summary.
warmingUpTheApp.js at THRESHOLD_95=3000 first, always.-u $(id -u):$(id -g) — summary.html lands root-owned in the mounted volume; later runs cannot overwrite it and you cannot delete it without sudo.THRESHOLD_95 — a slow listing hides behind a fast login in the aggregate. Threshold the named metrics.--network bridge against localhost — the container cannot reach host compose services. Use --network host, or attach it to the compose network.In references/: custom-metrics.md (the 14 named metrics) · docker-invocation.md (flag by flag, network modes, ownership) · default-metrics.md (the 9 built-ins and derived KPIs) · install.md · v6.1.md · v7.0.md
What SKILL.md sets; muted values are Claude Code's defaults
orocommerce@netresearch-claude-code-marketplace is listed by netresearch/claude-code-marketplace — review the source before installing
npx claudepluginhub netresearch/claude-code-marketplace --plugin orocommerce14 skills in this plugin
/oro-apiUse when exposing OroCommerce v6.1 entities via REST API, configuring api.yml or api_frontend.yml, creating custom API processors, setting up filters/sorters/subresources, or working with JSON:API endpoints. Relevant when the user mentions 'API endpoint', 'expose entity via API', 'api.yml', 'REST API', 'JSON:API', 'storefront API', or 'API processor'./oro-behat-ciUse when running Oro Commerce 6.1 Behat tests in CI/CD — Jenkins (Oro's canonical platform), GitLab CI (community territory per oroinc/platform#954), or any Docker pipeline. Covers compose fanout, headless Chrome, the formatter combo, consumer parallelisation maths, artifacts and init-image state transfer. Also on sight of .gitlab-ci.yml, Jenkinsfile, compose behat stages, compose-common.yaml. Triggers on 'behat ci', 'gitlab ci oro', 'jenkins oro', 'parallel behat', 'chrome headless', 'init-test image', 'behat hang'./oro-behat-debuggingUse when a Behat scenario in Oro Commerce 6.1 fails, hangs or flakes — element not found, intermittent runs, AJAX races, waitForAjax with fetch/XHR, step discovery (`-dl`/`-di`), snippets, verbosity, ScreenshotTrait, `And I wait for action` blocking CI, var/log forensics for hidden 500s, Xdebug across split CLI + PHP-FPM. Also without the word "behat": step definitions, feature files, Mink, Gherkin./oro-behat-testingUse when writing, configuring or running Behat integration tests for Oro Commerce 6.1 bundles against a LOCAL app — suites, contexts, elements, page objects, Alice fixtures, `bin/behat`. Covers auto-discovery vs `symfony_bundle` registration, `shared_contexts`, `behat.yml.dist` vs `behat.yml`, `--strict`/`--consumers`/`-s`, `@fixture-Bundle:file.yml`, `oro_behat_extension`, `OroMainContext`, feature-tag mocking, `config_behat_test.yml`, Mink, ChromeDriver, isolators. Triggers on "suite shows 0 features", "element not found", "step undefined", "fixture not loading"./oro-bundleUse when creating a new OroCommerce v6.1 bundle, registering bundles, setting up DependencyInjection extensions, configuring services.yml, adding translations, navigation menus, or system configuration. Also relevant for bundle-level boilerplate like compiler passes, event subscriber registration, and console commands. Also applies to 'create a bundle', 'scaffold', or 'new Oro module'./oro-datagridUse when creating new OroCommerce v6.1 datagrids, adding columns to existing grids, configuring filters, sorters, actions, mass actions, inline editing, or extending core grids (like product-grid, order-grid, customer-grid). Relevant when the user mentions 'create a grid', 'add column', 'grid filter', 'datagrid', 'data table', 'list view', or grid customization in OroCommerce.