Command Palette

Search for a command to run...

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

rp-source-sfcc

БесплатноБез исполняемых скриптовНе проверен

Salesforce Commerce Cloud (SFCC / Demandware, SFRA storefront) source techniques: how to get a store's public data with no Business Manager or OCAPI access…

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

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

rp-source-sfcc

Technique guide for reading a public SFCC/SFRA storefront. It ships no capture code: rp-discovery follows its "no adapter exists → capture manually, same output contract" path, and you write the capture code for each migration as generated project code under migrations/<project>/src/, with its outputs in migrations/<project>/data/sfcc-discovery/. ⚠️ Nothing site-specific (code, ids, values, fixtures) is ever added to this skill.

Recognize the platform

  • Pipeline URLs: /on/demandware.store/Sites-<site>-Site/<locale>/<Controller>. The homepage og:url often uses one, which gives you the site id and the default locale.
  • Static assets: /on/demandware.static/.... Image renditions: /dw/image/v2/<REALM>_<ENV>/....
  • OCAPI (/s/<site>/dw/shop/..., /s/-/dw/data/...) answers 401 without credentials. Don't ask for Business Manager or OCAPI credentials in this flow; record them as a later phase. Use sourceMode=public_content.

Files to read first

  1. robots.txt. Obey it for every request, and take the sitemap index from it.
  2. Sitemaps (index → sitemap_N.xml). These list products, categories and <image:loc> originals. ⚠️ Sitemaps are incomplete. Pre-order products and variant SKUs are commonly missing, some listed products aren't searchable, and some *.html entries are content assets or malformed. Never treat the sitemap as the catalog.
  3. The homepage, plus a few category and product pages. Read the header, navigation, footer and hreflang links. The homepage may have no hreflang, so learn the locale routes from inner pages before you crawl.

Public storefront endpoints (SFRA)

Need Endpoint / source Notes
Category id Category page markup (cgid) Links carry it percent-encoded: decode it once, then encode it once when you build a request
Category members Search-ShowAjax?cgid=<id>&start=<n>&sz=<page> Page until resultCount is reached. Tiles are div.product[data-pid] with the PDP link. A zero-result listing is not a category
Full product model Product-Variation?pid=<id>&quantity=1 → JSON {product} The main source: sales and list price, variationAttributes with every value, options, availability, min/max order quantity, descriptions, images with alt text, promotions, plus the store's own custom fields. It is a storefront controller, not a contracted API
Variant siblings Product-Variation?pid=<master>&dwvar_<master>_<attr>=<value> The master id appears in the value urls. A master alone returns 404. Accept a value only when the response marks that value selected; selectable: false values may not be fetchable
Fallback PDP schema.org JSON-LD (Product, BreadcrumbList) It holds only the sales price and a flattened availability, so a record built from it lists the missing fields as unobserved
SEO and redirect source PDP/category <title>, meta description, og:*, canonical Detect template-generated SEO versus SEO set per item. Store paths decoded. A path is a redirect source, never a Wix slug

The product set is the union of the grid tiles from every category (including categories linked only from the navigation) and the sitemap's product URLs. Key products by SFCC product id, not by URL: locale renditions have their own canonicals.

Signals that are easy to misread

  • Product types. Variation attributes create SKUs (Wix variant options). SFCC product options (e.g. engraving) change the price, not the SKU, so they are Wix modifiers. Keep them in separate fields.
  • Option visibility. An option can be attached to a product but hidden on the storefront: its markup is present but hidden. SFRA has no standard visibility flag. Find the store's own custom field by comparing products where the option is shown and where it isn't. If you can't find one, record visibility as unknown and never drop the option.
  • Stock. The values are inStock, preorder (with inStockDate, which only means a date when the status is preorder), and out of stock (often no status at all, only a message). lowStockCount and maxOrderQuantity are hints, never authoritative quantities.
  • Prices. price.list is the compare-at price. promotions[] names promotion ids but never their rules. callForPrice hides the price and add-to-cart: that needs a human decision.
  • Images. The original is the static path: drop /dw/image/v2/<REALM>_<ENV> and the query string. Larger sw/sh renditions are upscales.
  • Ratings can be an aggregate number with no reviews behind it, which can't be imported as reviews.
  • Videos may be opaque ids whose host is not exposed.

Regional settings (currency, language, country)

Record the store's regional facts from the public pages, read-only. Time zone is not exposed publicly: leave it unknown (not-exposed).

  • Currency: the price currency code on pro
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

FAQ

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

Salesforce Commerce Cloud (SFCC / Demandware, SFRA storefront) source techniques: how to get a store's public data with no Business Manager or OCAPI access — the files and public storefront endpoints to read, and how to scan the remaining site pages. Use when the source platform is SFCC.

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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