Command Palette

Search for a command to run...

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

rp-setup-discovery

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

Derives Wix environment prerequisites (apps, collections, schemas) from an approved mapping plan. Use after mapping review and before import code generation.

wixот wix★ 40 звёзд на GitHub

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

rp-setup-discovery

Determine the Wix-side setup required before import can run safely.

Declaring user-defined extended fields

When a mapping needs a source-only value on a native Wix record, declare it as a setup requirement rather than letting a writer improvise one. The requirement and the step that executes it are a fixed pair:

  • the requirement is kind: "extendedFieldSchema" in setup/setup-requirements.json, carrying schemaKind, targetRef, fqdn, namespace: "_user_fields", and its fields;
  • the plan step that provisions it is provision-extended-fields in setup/setup-plan.json.

Emit both or neither. A requirement with no matching step provisions nothing, and every writer that needs those fields then refuses its write — correct, but the run fails late and for a confusing reason. rp-execute-setup fails closed on that mismatch rather than proceeding.

Supported targets, and nothing else:

Target schemaKind fqdn / surface Types
eCommerce Order data-extension-schema wix.ecom.*.order string (needs maxLength)
Product data-extension-schema wix.stores.catalog.*.product (filterable) string
Contact (default) data-extension-schema wix.contacts.*.contact, contactWriteSurface: "contacts-v5" string
Contact (legacy, explicit opt-in only) crm-contact-extended-field contactWriteSurface: "contacts-v4", no fqdn/namespace; fields carry displayName + dataType TEXT

Checkout, Bookings, Booking Services and nested order subrecords (extensionPoint) are refused before any network call — route such fields to CMS. Use permissionsPreset: "migration-internal" (Wix users and apps read, Wix users write, no visitor access); visitor exposure is a manual dashboard change by the site owner afterwards, never a setup default. Never emit both contact surfaces for one field, and never plan a V4 fallback for a V5 contact field.

Purpose

This skill analyzes the approved mapping artifacts and derives environment prerequisites such as installed apps, SMC collections, extended-fields schemas, references, permissions, and any other target-system configuration dependencies.

Required inputs

  • migrations/<project>/mapping/mapping-plan.json
  • migrations/<project>/mapping/review/mapping-gaps.json
  • migrations/<project>/mapping/review/mapping-summary.md
  • migrations/<project>/orchestration/approvals.json
  • any Wix environment constraints or destination account details provided by the user

For managementImportMode=quick, replace the mapping inputs above with migrations/<project>/quick-mode/plan.json. Its requiredWixCapabilities and entity graph are the setup authority. Generate the same setup artifacts and standing notification/Catalog-V3 requirements; do not demand a mapping plan or ask an agent to infer additional quick entities. When the plan includes blog posts, add an automatable dedicated fallback Blog author member, persist its ID as WIX_BLOG_FALLBACK_MEMBER_ID, and disclose the attribution policy in the setup summary. This is mandatory setup, never a user decision or import blocker.

Generate the quick-mode setup artifacts deterministically:

node skills/wix-replatform/resources/rp-setup-discovery/scripts/quick-setup-plan.js <projectDir>

The adapter declares its entity graph and capabilities; this shared generator owns universal destination setup policy and must not infer additional import entities.

Workflow

  1. Confirm the mapping review checkpoint has been accepted, then read the mapping plan and mapping summary and identify every non-native requirement.
  2. For mapped entities with targetRef, load compact domain/entity summaries through rp-target-wix/scripts/domain-knowledge.js summarize-entities and include wixAppsRequired, setupRequirements, target classification, and write verification level in setup analysis.
  3. Determine which Wix apps must be installed or enabled.
  4. Determine which SMC collections must exist.
  5. Determine which extended-fields schemas, references, enums, or validation rules must exist.
  6. Capture dependency ordering where setup steps depend on each other. Every setup step declares its canonical entityRefs. Where imports consume a setup-produced value, declare optional referenceKeys: [{ ref, sourceStableKey, paths: string[] }] for that step. Each ref must be in its entityRefs; keys come from the reviewed source mapping, and paths name the exact dependent payload fields. Never invent a target ID in the plan. Keep every setup-produced dependency task-complete, even when its target value is used on individual records. List a ref only when this setup step writes it. An entity an import task writes (for example the delivery profile, when the mapping imports shipping zones) is owned by that import: a read-only prerequisite check on it, such as "the default delivery profile exists",
Полный SKILL.md на GitHub

Установить rp-setup-discovery в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/quick-setup-plan.js

FAQ

Что делает скилл rp-setup-discovery?

Derives Wix environment prerequisites (apps, collections, schemas) from an approved mapping plan. Use after mapping review and before import code generation.

Как установить скилл rp-setup-discovery?

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

Скилл rp-setup-discovery запускает скрипты?

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

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

Сравнить rp-setup-discovery с