Command Palette

Search for a command to run...

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

rp-source-wordpress

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

WordPress and WooCommerce source adapter: REST capture, auth, pagination, and read contract for codegen. Use when the source platform is WordPress or…

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

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

rp-source-wordpress

WordPress / WooCommerce source adapter. Owns every WordPress-specific detail the platform-agnostic skills must not hardcode: how to capture the schema, how to read the data, auth models, pagination, and REST quirks.

When this skill is used

This is not a stage in the migration flow — it is a reference consulted by two stages:

  • rp-discovery consults the Capture section to sample the source and produce the canonical source-profile.md + source-schema.json.
  • rp-import-codegen consults the Read contract section. The extract is fixed code: it installs the catalog extractor (scripts/wp-catalog-extract.js --install) and adds catalog entries only for what discovery found outside the catalog.

rp-execute-import never consults this skill — by the time execution runs, the WordPress-specific knowledge is already in the reader catalog and the project's extra entries. Keeping the WordPress knowledge here is what lets the rest of the workflow stay platform-agnostic.

For app routing and internal-link reconciliation, the generated reader also enumerates the captured source roots, declared source hosts, source permalink/alias evidence, and each record's containing source page. It passes those facts to the shared internal-link-audit.js plan input after backend import. Do not infer the containing page from a file basename or assume a default WooCommerce path. The deterministic census records every captured file as scanned, unreadable or unsupported; unsupported documents, dynamic URLs and missing captures remain coverage items. Never scan config/*.env or execute captured source code.

Platform identity

  • Source platform: WordPress (core REST wp/v2), optionally WooCommerce (wc/v3).
  • Detect by hitting <base-url>/wp-json/ — the REST index lists advertised namespaces.
  • Set "platform": "wordpress" (and note WooCommerce presence in sourceMeta) in the emitted source-schema.json. This describes the discovery artifact, not the orchestration decision.
  • Once discovery confirms WooCommerce, record sourcePlatform.value=woocommerce in orchestration/decisions.json and use config/source.woocommerce.env. Otherwise record sourcePlatform.value=wordpress there and use config/source.wordpress.env. Generated importers read that exact nested value — never the decision wrapper object and never the nullable orchestration/run.json sourcePlatform field. The adapter remains rp-source-wordpress in both cases.

Capture (discovery-time)

Sampling the source to learn its shape — not a bulk export.

The Wix domain knowledge base may be used as a classifier supplement during synthesis, but not as a sampling mandate. When a discovered WordPress/WooCommerce route matches a known alias, annotate the emitted entity with sourceMeta.candidateTargetRefs[]; do not turn that hint into a target decision here. Keep frontend, theme, runtime, admin, and transient routes skipped by default even if a knowledge entry exists for a related setup/config target.

After identifying the platform, verify migrations/<project>/config/source.<platform>.env. For a confirmed WooCommerce source, this is source.woocommerce.env; for WordPress without WooCommerce evidence, it is source.wordpress.env. Create the selected file if missing with empty values:

WP_BASE_URL=
WP_USERNAME=
WP_APPLICATION_PASSWORD=
WP_MEDIA_URL_REWRITE_FROM=
WP_MEDIA_URL_REWRITE_TO=
WC_CONSUMER_KEY=
WC_CONSUMER_SECRET=

Before requesting any WordPress / WooCommerce credentials for a URL-based migration, ask the user which data scope they want:

  • public content only
  • also include private/authenticated data

This choice is mandatory and must be explicit. Do not ask for WP_USERNAME, WP_APPLICATION_PASSWORD, or WooCommerce keys until the user chooses also include private/authenticated data. Collect every sensitive value through the secure Secrets Manager flow; do not ask the user to paste it into chat.

One credential covers both private WordPress/WooCommerce REST (wp/v2, wc/v3) and wix-wp-plugin-v2 bridge reads: a WordPress Application Password (WP_USERNAME + WP_APPLICATION_PASSWORD) for an administrator or a WooCommerce shop manager. The bridge (0.5.0+) admits manage_options or manage_woocommerce, so it works with or without WooCommerce; it has no key of its own. A site without WooCommerce running a bridge copy older than 0.5.0 answers 403 to every user; discovery reports bridge_plugin_update_required -- ask the site owner to upload the current zip. An old env file that still has WMH2_MIGRATION_KEY is harmless: the value is ignored.

Key sensitivity is predefined and does not change at runtime. Requiredness is separate and may depend on the selected acquisition mode or source behavior.

Key Sensitivity Requiredness
WP_BASE_URL non-sensitive Required for URL-based capture
WP_USERNAME sensitive Required for
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

PLUGIN-READ-PLANS.mdarchive-fields.v1.jsoncatalog-fields/product-variation.jsonlib/applied-offer-summary.jslib/blocked-data-handlers.jslib/bundle-canonical.jslib/catalog-extractor.jslib/catalog-schema-defaults.jslib/checkout-field-csv-parser.jslib/checkout-field-csv-parser.test-fixture.jslib/coupon-discovery.jslib/currency-gate.jslib/gateway-source-keys.jslib/gateway-source-keys.jsonlib/gateway-summary.mjslib/invoice-discovery.jslib/plugin-coverage-contract.jslib/plugin-data-presence.jslib/plugin-disposition.jslib/plugin-entity-read-plan.jslib/plugin-knowledge.jslib/product-video-extract.jslib/reader-catalog.jslib/refund-corroboration.jslib/refund-corroboration.jsonlib/regional-capture.jslib/sampled-ids-batch.jslib/secret-value-guard.jslib/source-schema-builder.jslib/store-currency.jslib/structure-bridge-reader.jslib/wix-wp-plugin-v2-client.jslib/wix-wp-plugin-v2-client.test-fixture.jslib/woo-inventory.jslib/woo-selection-attributes.jslib/wp-http.jslib/wp-image-url.jslib/wp-plugin-detect.jslib/wp-redirect-sources.jslib/wp-route-classifier.js

FAQ

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

WordPress and WooCommerce source adapter: REST capture, auth, pagination, and read contract for codegen. Use when the source platform is WordPress or WooCommerce.

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

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

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

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

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

Сравнить rp-source-wordpress с