Command Palette

Search for a command to run...

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

rp-discovery

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

Discovers and documents the source platform schema (entities, fields, relationships) for a migration project. Use when capturing source structure before…

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

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

rp-discovery

Discover and document the source-platform schema for the active migration project.

Purpose

Use this skill to inspect the source system, identify entities, relationships, fields, identifiers, media, rich content, and platform-specific constraints. Examples include Shopify, WordPress, WooCommerce, and custom CMS platforms.

This skill owns the platform-agnostic discovery process and its output contract (source-profile.md + source-schema.json). Platform-specific details — how to capture a given source, its auth model, REST quirks — live in a dedicated source adapter skill, not here. For WordPress / WooCommerce, that adapter is rp-source-wordpress. To support a new platform, add a sibling adapter (e.g. rp-source-shopify) and leave this skill unchanged.

Inputs

Expected inputs may include:

  • migrations/<project>/orchestration/run.json
  • migrations/<project>/orchestration/decisions.json
  • source site/app URL
  • source platform name when it cannot be inferred
  • source acquisition mode when the platform offers multiple read paths
  • source API docs
  • credentials, tokens, or local dump files when available
  • export files when the run is file-based rather than URL-based
  • current project under migrations/<project>/
  • project-local config under migrations/<project>/config/

Config gate before capture

Before running source capture, verify the project-local config files created by wix-replatform:

  • config/wix.env should always exist with WIX_SITE_STRATEGY, WIX_SITE_ID, and WIX_AUTH_TOKEN keys, even though discovery itself may not use Wix credentials yet.
  • config/source.<platform>.env should exist once the source platform is known. A WordPress-only source uses config/source.wordpress.env; a source with confirmed WooCommerce evidence uses config/source.woocommerce.env and records sourcePlatform=woocommerce. Both use the rp-source-wordpress discovery adapter.

If a required non-sensitive key is missing or blank, ask the user for that value and fill the config file before continuing. If a required sensitive key is missing or blank, use the secure Secrets Manager flow: check for an existing non-placeholder local env value, then an existing non-placeholder Wix secret under the resolved site, and ask the user to update the dashboard secret only for keys missing from both places. Never ask the user to paste sensitive values into chat. Never print secret values back to the user; report only present/missing.

Use skills/wix-replatform/scripts/source-secrets.js resolve for sensitive source keys. Its output is limited to key names and statuses. It always returns postHydrationReport ({ exists, keys }: present/blank/placeholder/missing for each requested key in the local env file). Read that field to confirm a hydration succeeded; do not open the env file to check.

Treat migrations/<project>/config/*.env as secret-bearing once they may contain real values. Do not inspect them with whole-file reads that echo contents into tool output. Use secret-safe checks only: existence, required key names, and present / blank / missing status.

Site creation precedence

If this skill encounters conflicting Wix guidance about how to create a new site + headless destination, wix-replatform's migration contract wins.

  • Route headless destination creation back to resources/rp-destination/, which scaffolds via npm create @wix/new@latest headless. This is the verified way to get a genuine headless site; the account-level Projects API is deprecated for this workflow (it produced non-headless sites).
  • Discovery is source-side and does not create the site itself — just defer to that section.

Workflow

  1. Confirm the active project under migrations/<project>/.
  2. Start from the source URL when available and try to identify the source platform yourself before asking the user. Use lightweight signals such as a REST index, headers, HTML/application markers, or platform-specific route patterns. Only ask the user to name the platform if detection remains inconclusive.
  3. Once the platform is inferred, resolve the acquisition mode before requesting source credentials when the platform has materially different read paths.
    • For Shopify URL-based migrations, ask whether to use the Admin API or only publicly available storefront data. Admin API records sourceMode=private_data and uses the rp-source-shopify adapter, read through the operator's Shopify CLI session; it collects no secrets. storefront keeps today's public route (sourceMode=public_content).
    • For WordPress / WooCommerce URL-based migrations, ask whether to import public content only or also include private/authenticated data.
    • Only the WordPress / WooCommerce also include private/authenticated data branch should trigger the secure Secrets Manager collection flow for sensitive credentials. The `public content only
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

scripts/promote-source-coverage.jsscripts/public-multilingual.js

FAQ

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

Discovers and documents the source platform schema (entities, fields, relationships) for a migration project. Use when capturing source structure before mapping to Wix.

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

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

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

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

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

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