Command Palette

Search for a command to run...

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

verify-configurator

БесплатноЗапускает вложенные скриптыНе проверен

Verify a configurator CLI change end to end against the shared Saleor Cloud sandbox: build the checkout, seed a run-prefixed store slice, drive introspect…

saleorот saleor★ 31 звезда на GitHub

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

verify-configurator

H=.claude/skills/verify-configurator/scripts/verify-configurator
$H login --check || $H login     # once per sandbox; the user signs in in the helper's Chrome
$H up [--from]                   # lock the host, build, seed; --from serves the newest npm release
$H doctor
$H cli -- deploy --config=seed.yml --plan
$H gql '{ product(slug: "<prefix>-tee") { name } }' --feature deploy
$H record --name diff --feature diff -- diff --config=seed.yml
$H scenario deploy-update passed --feature deploy --evidence <transcript>,<read>
$H report
$H down

Follow references/verification-rules.md on every run. The feature map is in features/.

Configuration

  • Target: the Cloud sandbox in ~/.config/verify-saleor/config.json, shared with the other verify-* skills. When the file is missing, the helper stops; ask the user for the sandbox's GraphQL URL and write the file it prints. For a local Saleor, add "local": { "saleorApiUrl": "http://localhost:8000/graphql/" } and pass up --target local or set "target": "local".
  • The sandbox is disposable (V2). Deploy, create and delete data, and create apps there without asking. Nothing else: the helper injects the sandbox URL and token and refuses --url and --token.
  • Credentials. login captures the signed-in staff user's token from the Dashboard and creates a sandbox app named verify-configurator with every permission that user can grant. Its token lives in ~/.config/verify-configurator/credentials.json (mode 600), keyed by host. The CLI authenticates as that app, as users with an app token do.

What the run is

Piece Where Owner
Shared sandbox config ~/.config/verify-saleor/config.json user
App token ~/.config/verify-configurator/credentials.json helper (login)
Browser profile, Playwright runtime ~/.cache/verify-configurator/ helper; drives system Google Chrome
Store lock ~/.cache/verify-saleor/locks/<host>--store.json helper (up, down)
Run dir: state, work/ (CLI cwd), evidence/, scenarios.json /tmp/verify-configurator/<run id>/ helper
Checkout CLI bin/cli.mjs + dist/ from pnpm build up
Previous release <run dir>/release-<version>/ from npm up --from
Base ref for red/green a detached git worktree in the run dir up --from <ref>
Seed slice objects named vc-<run id>… on the sandbox up, down

Launch

  1. login --check. If it exits 2, run login in the background and ask the user for that one step: sign in to the sandbox Dashboard in the helper's Chrome window.
  2. up builds the checkout, records identity (app permissions, Saleor version, the targeted schema), and deploys the seed (work/seed.yml) through the served CLI. Make code changes before up; doctor fails on a stale build.
  3. up --from when doctor says the upgrade check is required (V6), or up --from <base ref> to show a bug red first (V12). With --from, the seed is deployed by the old CLI, so the store holds what that release writes. Such a run serves two builds, so cli and record need --as checkout or --as from.

Doctor

Read-only. Checks the token, the build against HEAD and source changes (V4), the served CLI's version, other live runs on the host (V3), leftovers from other runs, and whether the diff touches the storage paths (V6). Fix every FAIL before driving.

Drive

  • Non-interactive: cli -- <command> [flags] runs in work/ with CI=true, like a pipe or GitHub Action. In this mode the CLI prints one JSON envelope (command, version, exitCode, result, logs): a clean diff is result.summary.totalChanges: 0, an idempotent deploy is result.status: "no-changes", and warnings live in logs. The JSON lists changed field names only; record the same command to see values. Every run saves a transcript under evidence/, token masked, and exits with the CLI's exit code. Helper flags go before the command; -- before the command is optional.
  • Interactive: record --name <n> -- <command> [flags] types the command into a real terminal with vhs, with --keys "Sleep 3s,y,Enter,{url},Enter,{token},Enter" for prompts or --tape <file> for longer scripts. --line '<shell line>' types a line as is instead, e.g. --line 'configurator diff --text | grep -v Unchanged'. The CLI reads the URL and token from the terminal's environment. It saves a gif and a png (the last frame). The token appears only as $SALEOR_TOKEN or a masked prompt.
  • Own objects: name everything a feature creates with the run prefix (printed by up, in state.json), so down removes it.
  • Upgrade: after up --from, upgrade runs V6's sequence and records upgrade-* scenarios. Then drive the affected features on that data before creating new data.
  • Reads: gql '<query>' [--vars json] --feature <id> reads with the app toke
Полный SKILL.md на GitHub

Установить verify-configurator в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

features/README.mdfeatures/deploy.mdfeatures/diff.mdfeatures/interactive.mdfeatures/introspect.mdfeatures/recipe.mdfeatures/selective.mdfeatures/upgrade.mdfeatures/validate-schema.mdreferences/verification-rules.mdscripts/verify-configuratorscripts/verify-configurator.mts

FAQ

Что делает скилл verify-configurator?

Verify a configurator CLI change end to end against the shared Saleor Cloud sandbox: build the checkout, seed a run-prefixed store slice, drive introspect, deploy, diff, validate, schema, recipe and the interactive start the way a user does, prove every result with an independent GraphQL read, and check that config files and store state from the previous npm release still work. Use to prove a change works before a PR, to reproduce a bug red then green, or when asked to verify, E2E test or demo the CLI.

Как установить скилл verify-configurator?

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

Скилл verify-configurator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить verify-configurator с