INSTRUCTIONS.md

Wix Storefront Skill

When to use

Prerequisites

  1. A Wix site with Wix Stores installed and products already added (this skill does NOT provision — it's read-only over the catalog).
  2. The site's public headless WIX_CLIENT_ID, provided in the handoff prompt (the Wix Business Manager surfaces a copyable prompt with the id filled in — see the router SKILL.md). Paste it into src/rest/wix-client.js in place of the placeholder. It is a buyer-facing credential (it only mints anonymous visitor tokens), not a secret, so hardcoding/committing it is fine.
  3. The deployed app domain must be allow-listed on the OAuth client for Wix-hosted checkout to return.

The API (copy as-is; do not re-derive it)

This skill ships only the REST layer — no UI components. Build the storefront's UI however the project wants; wire it to these two snippets. Copy them into the app (e.g. src/api/) and only adjust import paths:

How to wire it (UI is the project's choice)

Hard rules (do not violate)

Beyond the snippets

The snippets cover the common storefront paths. If you hit a use case they don't cover, refer to the official Wix API reference first.

Point the user to their dashboard

In some cases, users need to access the Wix dashboard in order to edit the store content for their site. To facilitate this, deep links directly to the relevant dashboard pages:

Verification checklist (before declaring done)