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★ 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 homepageog:urloften 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/...) answers401without credentials. Don't ask for Business Manager or OCAPI credentials in this flow; record them as a later phase. UsesourceMode=public_content.
Files to read first
robots.txt. Obey it for every request, and take the sitemap index from it.- 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*.htmlentries are content assets or malformed. Never treat the sitemap as the catalog. - The homepage, plus a few category and product pages. Read the header, navigation,
footer and
hreflanglinks. The homepage may have nohreflang, 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(withinStockDate, which only means a date when the status ispreorder), and out of stock (often no status at all, only a message).lowStockCountandmaxOrderQuantityare hints, never authoritative quantities. - Prices.
price.listis the compare-at price.promotions[]names promotion ids but never their rules.callForPricehides 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. Largersw/shrenditions 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic