Generated banner for Wix Headless
Generated logo for Wix Headless

Wix Headless

WixOfficialPublished by Wix

  • Skill
  • Tool integration
  • Software development
  • MIT
  • Low risk
  • Has scripts

From the author

Connect Wix business services (Stores, Bookings, Donations, CMS, Blog, Events, Forms, and more) to a Wix Headless frontend — infer the needed capabilities, install the apps, seed backend content, and produce an SDK-integration guide. For managed (Wix-hosted) projects it can also build the frontend: scaffold a new site (create) or wire an existing/brought-in design (connect), then build and release. Works across managed, self-managed, and stripe project types. Triggers: set up a Wix Headless backend, add Wix business features to my app, accept donations, build or host a Wix site, connect/implement this design with Wix.
— the description by Wix

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

The wix-headless skill acts as an orchestrator for integrating Wix business services (such as Stores, Bookings, and CMS) into a headless frontend architecture. It handles the end-to-end configuration of the Wix backend, including app installation, content seeding, and the generation of a tailored SDK integration guide. Depending on the project type (managed, self-managed, or stripe), the skill can either provide a comprehensive integration guide for the user to implement or, in managed scenarios, actively scaffold, wire, and deploy the frontend project.

What it does

  • Infers required Wix capabilities based on user intent and project context.
  • Installs necessary Wix apps and seeds backend content automatically.
  • Generates a custom SDK integration guide for calling Wix services from the frontend.
  • Scaffolds or connects existing frontend projects to Wix for managed hosting.
  • Handles project-type-specific authentication and deployment workflows.
  • Provides a mechanism to relay feedback to Wix regarding the headless experience.

When to use it

  • When you need to integrate Wix business services into a custom-built headless frontend.
  • When you want to automate the setup and content seeding of a Wix backend.
  • When you are building a new site on Wix infrastructure and need a scaffolded frontend.
  • When you have an existing frontend design and need to wire it to Wix business capabilities.
  • When working with Stripe Projects and requiring a Wix backend configuration.

Advantages

  • Reduces manual configuration by automating app installation and content seeding.
  • Provides a clear, actionable SDK integration guide tailored to your specific capabilities.
  • Supports multiple project architectures including managed, self-managed, and Stripe-based setups.
  • Ensures consistent backend setup by following verified inline recipes.
  • Simplifies the transition from design to a functional, Wix-powered headless site.

Usage examples

“Set up a Wix Headless backend for a store with products and a blog.”
The skill will install the Stores and Blog apps, seed sample products and posts, and provide an SDK guide for fetching this data in your frontend.
“I have an existing design; connect it to Wix and host it on their managed infrastructure.”
The skill will initialize the project, wire the existing UI to the necessary Wix business services, and prepare it for release on Wix.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/wix/wix-headless/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip wix-headless.zip -d .agents/skills

Documentation by Wix

Wix Headless

This skill connects Wix business services to a Wix Headless frontend. Its core job is to configure the Wix backend: infer the needed capabilities, install the Wix apps, seed the backend content, and produce an SDK-integration guide describing how to call Wix from the frontend.

What happens with the frontend depends on the project type and operation:

  • Backend-only (self-managed, stripe, or a managed "just set up the backend" run) — the skill emits the SDK guide as its final output; the host owns the frontend, build, and hosting.

  • Managed create / connect — the skill also owns the frontend: it scaffolds a new project (create) or attaches Wix to an existing one (connect), wires it to the backend using that same guide, builds, and releases to Wix. (There is no Designer or template library — the frontend is built ad-hoc to intent.)

On a backend-only run the skill does not own the project scaffolding. When the work needs a frontend, scaffold it according to user intent — framework and structure follow the prompt; the skill's job is the Wix backend plus the emitted SDK guide describing how to call Wix from whatever frontend exists, not choosing or generating the app. This is the norm for a stripe run: the project is provisioned via Stripe Projects (credentials land in .env — see stripe/AUTHENTICATION.md), the skill configures the backend and emits the guide, and the live site is finalized per stripe/DEPLOYMENT.md — while the frontend is scaffolded and wired to intent, by the host.

Project types

The skill behaves identically across project types except for authentication and deployment, which are isolated in a per-type folder under references/:

Project typeHostingAuthentication & deployment live in
managedWix infrastructure (maintained by Wix)references/managed/
self-managedthe user's own host (TBD)references/self-managed/
stripethe user's own host, provisioned via Stripe Projectsreferences/stripe/

Everything else — Discovery, Setup, Seed, the SDK handoff — is project-type-agnostic and refers to "the provided authentication mechanism" rather than any specific method.

Resolving the project type

Resolve the type before Discovery, in this order — stop at the first that decides:

  1. Caller-provided. If the host/caller passed a project type (managed | self-managed | stripe), use it. An explicit value always wins.

  2. Detect from project signals (on disk). Check the working directory (read-only):

    • stripe — .env carries WIX_WIX_CLIENT_ID / WIX_WIX_CLIENT_SECRET / WIX_WIX_METASITE_ID (or the plain WIX_* fallback). This is the Stripe-Projects fingerprint.

    • managed — a Wix CLI project: wix.config.json present, or a .wix/ directory, or @wix/cli / @wix/astro in package.json.

    • self-managed — a frontend project on disk (e.g. package.json with a bundler/framework) with neither the Stripe .env fingerprint nor the Wix-CLI markers above.

  3. Detect from user intent. If disk is inconclusive, read the prompt:

    • managed — "managed", "host on Wix", "Wix-hosted", "deploy to Wix", "wix release".

    • stripe — "stripe projects", "I added Wix via Stripe", a Stripe-Projects context.

    • self-managed — "self-hosted", "my own host", names a non-Wix host, "I'll deploy it myself".

  4. Ask. If signals are absent or conflict, ask the user which type applies — don't guess.

Hold the resolved type in scratch; it selects <TYPE_DIR> (see Path resolution). Note self-managed is TBD — once resolved to it, the auth step will stop with a clear "not wired yet" error.

Resolving the operation (managed only)

create/connect/iterate are managed-only. For managed, resolve the operation by intent first, directory second — never let an empty directory override what the user is asking for. Check iterate first (it's decided by an unambiguous on-disk signal):

  • iterate → references/managed/CONNECT.md. The project is already connected to Wix — a wix.config.json (or .wix/) is already present — and the owner wants to add or change capabilities. Same flow as connect, but §1 skips init and reuses the existing wix.config.json; never re-init an already-connected project.

  • connect → references/managed/CONNECT.md. The user brings a design not yet connected to Wix and wants it wired: a frontend project on disk without a wix.config.json, or a brought-in/fetched design (a .zip/folder/file you unzip or read, a design-file URL, a Claude-Design/v0/Lovable export), or language like "connect this / implement this design (… connecting to Wix) / host this on Wix / deploy this to Wix / add Wix Headless to this project". A brought-in or fetched design is connect even when the current directory is empty — the design arrives from elsewhere (zip/fetch/URL), so emptiness at trigger time is not a create signal. (CONNECT.md step 1 places the brought design into CWD, then inits it.)

  • create → references/managed/CREATE.md. The user wants a new site built from a prompt with nothing brought in — "build me a site / store / blog…", no design file, no project on disk.

  • backend-only — the user only wants the backend configured (no frontend work). → the shared spine + emit the SDK handoff.

For self-managed and stripe, the operation is always backend-only (the host owns the frontend). Only when there is genuinely no brought-in design and no connect language does directory emptiness decide: empty → create; an existing frontend on disk → connect.

Preconditions (the host provides these — we read, never create)

  1. The project type — managed | self-managed | stripe — provided by the caller, else detected from project signals / user intent (see Project types § "Resolving the project type"), else asked. It selects <TYPE_DIR> (see Path resolution).

  2. A Wix metasite + a headless OAuth app exist, and credentials are available — obtained via the project type's AUTHENTICATION.md. The skill needs a bearer token authorized for the metasite and the metasite id.

  3. The user intent — free text describing what Wix should power ("add a store", "blog + contact form", "persist my app's data").

  4. (Optional) the project on disk — read-only, to sharpen brand/capability inference.

If the credentials are absent, the Wix backend isn't reachable — stop with a clear error.

What this skill does

Always open DISCOVERY.md first (it's agnostic — capability/brand/intent inference + the imagery gate, no auth). Then route by project type + operation:

Backend-only (self-managed, stripe, or managed backend-only) — the lean spine:

  1. Discovery (references/DISCOVERY.md) — infer capabilities + brand + intent + imagery.

  2. Setup (references/SETUP.md) — install the Wix apps those capabilities need.

  3. Seed (references/SEED.md) — create the backend content (+ entity images if imagery is on).

  4. Handoff (references/SDK_HANDOFF.md) — after Setup and Seed, emit the integration guide: SDK bootstrap, per-capability call shapes, the seeded IDs, and the @wix/* package list.

  5. Finalize deployment (<TYPE_DIR>/DEPLOYMENT.md) — run the project-type's finalize steps.

Throughout any run — if the user asks to send feedback to Wix, complains/gets frustrated, or the run hits any real friction (a confusing error, a doc gap, a tooling dead end, a workaround you had to invent — it doesn't need to repeat), offer to relay it to Wix per references/FEEDBACK.md. Default to offering rather than waiting to be asked. Every flow's finalize step (<TYPE_DIR>/DEPLOYMENT.md / managed/CREATE.md / managed/CONNECT.md) ends with the same checkpoint — treat it as a required self-check, not optional. Send only after an explicit yes — never automatically.

Managed create / connect / iterate — after Discovery, hand the whole run to the managed flow:

  • create → references/managed/CREATE.md (scaffold → Setup → Seed → build the frontend → release).

  • connect → references/managed/CONNECT.md (init → Setup → Seed → wire the existing UI → release).

  • iterate → references/managed/CONNECT.md — the project is already connected, so it reuses the existing wix.config.json (no init). Setup / Seed / wiring are incremental: it may already be set up and seeded from a prior run, so the agent checks current state first (installed apps, already-seeded content, existing wiring) and applies only the delta the new intent needs — never blindly re-installing or re-seeding. Re-release only if the frontend build output changed. These reuse the same SETUP.md/SEED.md/SDK_HANDOFF.md, but apply the SDK guide to build/wire the frontend themselves rather than emitting it, and release via managed/DEPLOYMENT.md.

Each Wix call uses the universal call shape (SETUP.md §1) with $TOKEN/$SITE_ID obtained per <TYPE_DIR>/AUTHENTICATION.md. The skill runs non-interactively except for the one imagery question (and asking the project type if it can't be resolved).

Don't smoke-test the frontend locally unless the user asks to verify. The deliverable is the built-and-released site (managed) or the SDK guide (backend-only) — not a local test report. By default do not start a dev server (wix dev / astro dev / npm run dev) to curl pages, drive the cart / booking / login flow, or launch a headless browser: correctness comes from following the recipes, real errors surface at wix build / wix release, and a headless run can't complete an interactive login or a real payment anyway — so these loops routinely burn minutes of wall for little signal (this is distinct from, and in addition to, the "release once at the very end" rule — that one only bans extra build+release cycles, not dev-server testing). Only spin up a dev server and smoke-test when the user's prompt explicitly asks to verify / test / confirm it works — and then keep it to a single lightweight pass (pages compile and render), not a full purchase/booking/login drive. The one post-release check in <TYPE_DIR>/DEPLOYMENT.md is the sanctioned verification.

Donations exception to the smoke-test policy above: for a build that accepts donations, follow the bounded anonymous API handoff check in references/inline-recipes/how-to-code-donations.md before claiming it works. It does not authorize a payment or campaign mutation, and does not require a dev-server testing loop. That recipe also defines the separate hosted-checkout and payment checks.

Path resolution

Compute <SKILL_ROOT> from this file (<SKILL_ROOT>/SKILL.md — strip /SKILL.md); hold the absolute path in scratch. Then resolve the project type to its folder and hold it too:

<TYPE_DIR> = <SKILL_ROOT>/references/<projectType>/ — one of managed/, self-managed/, stripe/.

WhatPath
Vertical index (intent matching + per-vertical site spec)<SKILL_ROOT>/references/CAPABILITIES.md
Discovery (infer capabilities + brand + intent; existing site → the Dynamic Context call in §1)<SKILL_ROOT>/references/DISCOVERY.md
Setup (install apps)<SKILL_ROOT>/references/SETUP.md
Seed (create backend content)<SKILL_ROOT>/references/SEED.md
SDK-integration handoff (emitted, or applied by create/connect)<SKILL_ROOT>/references/SDK_HANDOFF.md
Image generation (opt-in; agnostic)<SKILL_ROOT>/references/IMAGE_GENERATION.md
Design — fallback visual quality bar for the built frontend, when the user gave no design direction of their own (managed create only)<SKILL_ROOT>/references/DESIGN.md
Content — fallback copy quality bar for the built frontend, when the user gave no copy/voice direction of their own (managed create only)<SKILL_ROOT>/references/CONTENT.md
Experience overlays — a vertical's own design + copy bar on top of DESIGN/CONTENT (optional per vertical; read when that vertical is loaded)<SKILL_ROOT>/references/inline-recipes/experience-<vertical>.md (today: experience-store.md, experience-donations.md)
AI features — text/chat + embeddings (opt-in; agnostic)<SKILL_ROOT>/references/AI_FEATURES.md
Feedback — relay the user's headless-experience feedback to Wix (opt-in; user-approved)<SKILL_ROOT>/references/FEEDBACK.md
Authentication — obtain $TOKEN/$SITE_ID/clientId (project-type-specific)<TYPE_DIR>/AUTHENTICATION.md
Deployment — finalize the live site (project-type-specific)<TYPE_DIR>/DEPLOYMENT.md
Managed create flow (scaffold a new project)<SKILL_ROOT>/references/managed/CREATE.md
Managed connect flow (wire an existing project)<SKILL_ROOT>/references/managed/CONNECT.md
Frontend-axis references (how a frontend wires to Wix)<SKILL_ROOT>/references/astro.md, non-astro.md

Start a run by opening DISCOVERY.md. The flow files (CAPABILITIES, DISCOVERY, SETUP, SEED, SDK_HANDOFF, IMAGE_GENERATION, AI_FEATURES) are project-type-agnostic; the per-type specifics live under <TYPE_DIR>/ (AUTHENTICATION.md, DEPLOYMENT.md, and — managed only — CREATE.md/CONNECT.md).

Where the how comes from

This skill has no skill upstream — the how is read from the live Wix docs at dev.wix.com/docs. Read-priority: a page this skill links is read by curl-ing its .md twin directly (first priority — don't re-discover a curated link with search); the Wix MCP doc/search tools are second priority, for finding pages the skill doesn't link or as a fallback if a fetch fails. (Append .md to any docs URL for raw markdown; menu pages list child links, content pages carry the schema.)

Doc discovery is the shared fallback for both tracks — never the first move. Each track's primary source is its pinned material (below); when that doesn't cover what you need, fall back to references/DOC_DISCOVERY.md — a semantic doc-search + schema lookup that works with or without the Wix MCP.

  • Seed reads each capability's create flow from its inline recipe — a self-contained local inline-recipes/setup-*.md (mapped per capability in SEED.md § "What to seed per capability") that inlines the calls and supersedes the REST doc pages, so read it and seed from it alone. Only a capability with no inline recipe (e.g. coupons) falls back to doc discovery (DOC_DISCOVERY.md).

  • Handoff links the SDK docs for each capability's API shape, and supplies the runtime package set from the inlined map in SDK_HANDOFF.md (the SDK .md pages don't expose @wix/* import strings to navigation, so packages are mapped, not navigated).

Setup carries its app-install call (and the appDefId constants) inline in SETUP.md; CAPABILITIES.md is the vertical index that lets Discovery match intent and declares, per built vertical, the Required site features + Implementation checklist that Seed enables (backend-backed features) and the Handoff carries into the guide (so the host builds a complete site, not a bare data dump). This skill carries the what (which capabilities, how much content, what a finished site includes) and reads the how off the docs.

Files

references/SDK_HANDOFF.md

SDK-integration handoff

This is the last step — reach it only after Setup and Seed have run. The guide below is filled from the seeded map (created IDs), which exists only because Seed executed; if you're here without having installed the apps and seeded content, go back and do that first. The guide describes the backend the earlier steps built.

The skill returns this document describing how to call Wix from the frontend, then exits. The host agent — which owns the frontend, the framework, and the build — does the wiring. We describe what to use and link to the live Wix SDK docs for the API shapes; the host decides where they go.

Link to the docs for API shapes; don't inline examples. The Wix SDK docs are versioned and complete; hand-written snippets under-specify the hard parts (rich-content rendering, package versions, types) and lead the host to build against a wrong shape. The handoff supplies what the docs can't: the seeded IDs, the clientId source, and the package set. The package set is the inlined map in §3 — the SDK doc .md pages don't surface the @wix/* import string to navigation, so the map is the source of truth for which packages; the inline recipe each row points to is the source of truth for how to call them (current API shape + version).

The linked docs are the source of truth for current API shapes and versions — read them for the integration. Existing code (in this or any other project) is not a substitute: it may target a different SDK version and silently mislead.

Emit the document as the skill's final message (a Markdown block the host can act on or save). Fill it from the run's verticals[], the seeded map, the OAuth app's public clientId, and — for each loaded capability — its Required site features and Implementation checklist from references/CAPABILITIES.md (§6). Include only the loaded capabilities. The guide isn't just "here are the IDs and packages"; it's the spec for a complete site, so the host builds real features (author, comments, dates…) rather than a bare data dump.

What the document contains

1 · Packages to install

The always-on package is @wix/sdk (provides createClient + OAuthStrategy). Add the union of the loaded capabilities' runtime packages from the map in §3. Runtime packages only (no scaffold/build deps). For install details and current versions, link: https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/install-sdk-packages.md.

2 · Client setup (and the clientId source)

With a manual client the frontend authenticates as an anonymous visitor via OAuthStrategy, with clientId = the OAuth app's public client id. This is the model for host-owned frontends (this guide is emitted) and the skill's non-Astro path (references/non-astro.md). Managed-Astro is the exception — it auto-authenticates with no client at all (references/astro.md); skip this section's clientId wiring there. Two facts hold whenever a client is used: the clientId is not secret (it's the public OAuth id), and the client_secret never reaches the frontend. Two type-independent steps:

  1. Obtain the clientId via the provided authentication mechanism — see <TYPE_DIR>/AUTHENTICATION.md (each type names where the public id comes from; don't re-mint or re-fetch it if the type already provides it).

  2. Get the clientId into the client bundle — this depends on who owns the frontend, not on the project type:

    • The host owns the frontend (this guide is emitted — backend-only: self-managed, stripe, or managed backend-only) → the host exposes the value to client code via its framework's public-env convention (NEXT_PUBLIC_*, VITE_*, PUBLIC_*, …).

    • The skill owns the frontend (this guide is applied — managed create/connect) → how the frontend authenticates is framework-specific, so follow the frontend reference, not this bullet. On Astro (the default) authentication is automatic — there is no client and no clientId to wire (references/astro.md). On a non-Astro frontend you build a manual client (references/non-astro.md): wire the clientId in via the framework's public-env convention if one exists, otherwise inline the public id into the client code/bundle.

For the current createClient + auth-strategy shape, link:

Confirm the clientId reached the built bundle before deploying. Public-env wiring fails silently — a mis-wired public var inlines as undefined, and then every visitor token call from the live site 400s with no other clue. After the production build, verify the actual clientId value is present in the built output (check that the value resolves — not merely that the variable name appears somewhere). Doing this pre-deploy stops it from being mistaken for an origin/CORS problem afterward.

3 · Per-capability packages + API docs (package from the map; recipe for shapes)

For each loaded capability, give the host the package(s) from the map below and point it at the capability's inline recipe (references/inline-recipes/how-to-code-*.md) — the pinned API shape, methods, version, and failure modes live there; don't re-summarize them here. The map is the source of truth for which packages; the recipe is the source of truth for how to call them. The recipes are local — Read them with the file tool, don't curl.

Before implementing a capability, Read the local recipe linked in its row.

CapabilityPackage(s)Required recipe
donations@wix/donations + @wix/ecom + @wix/redirectshow-to-code-donations.md — campaign reads, numeric donation options, Cart V2 → hosted redirect, diagnostics and anonymous verification; follow its shared experience reference.
stores@wix/stores + @wix/categories (+ @wix/ecom, @wix/redirects for cart/checkout)how-to-code-a-store.md — Catalog V3 gallery (sort/filter/paging), product page (variants, prices, ribbons), Cart V2 + checkout, and what a complete storefront shows.
blog@wix/blog (+ @wix/ricos to render richContent; @wix/comments + @wix/members when the blog has comments/members; @wix/blog likes when the site has members)how-to-code-a-blog.md — Blog V3 read/render + member features (likes, comments). Supplement: https://dev.wix.com/docs/sdk/business-solutions/blog.md.
cms@wix/datahow-to-code-cms.md — items.query read contract.
forms@wix/formshow-to-code-forms.md — schema-driven render (read the live form schema, visitor token/no elevate) + Form Submissions v4 write contract.
events@wix/events (+ @wix/redirects for the ticketed hosted-checkout redirect)how-to-code-events.md — Events V3 read + the TICKETING-vs-RSVP branch.
bookings@wix/bookings (+ @wix/auto_sdk_ecom_cart-v-2, @wix/redirects for the cart/checkout that holds the seat; @wix/forms for the schema-driven booking form)how-to-code-bookings.md — Services V2 read + createBooking → ecom Cart V2 → checkout-or-place.
rentals@wix/bookings — the same package set as bookings (@wix/auto_sdk_ecom_cart-v-2, @wix/redirects, @wix/forms). There is NO @wix/rentals package and its absence is not a missing capability: Wix Rentals ships no APIs of its own and runs on the Bookings APIs with rentals-specific field values. Never report rentals as "not buildable headlessly".how-to-code-rentals.md — a delta on how-to-code-bookings.md: filter the catalog by the rentals appId (ff5d6eb1-65e4-4f9a-8b14-64d34c12cc2e), two-call hourly availability (start slots → end options), the consecutive-day walk for daily, duration-based previewPrice, then the unchanged booking/cart/checkout sequence carrying the rentals appId on catalogReference.
pricing-plans@wix/pricing-plans (+ @wix/members — login is a hard dep; and for the Bookings-membership integration @wix/bookings + @wix/ecom (+ @wix/redirects)). Use @wix/pricing-plans, NOT the Wix-site @wix/site-pricing-plans (startOnlinePurchase is site page-code, not headless).how-to-code-pricing-plans.md — Plans V3 grid + login-gated order/subscribe + book-with-membership.
restaurants@wix/restaurants (menu display — no @wix/ecom unless online ordering is in the run; reservations are a separate app)how-to-code-restaurants.md — Menus V1 display-only read.
restaurants — online ordering (add-on; only when the Orders app is in the run)add @wix/ecom + @wix/redirects to the row abovehow-to-code-restaurant-orders.md — ordering cart/checkout on top of the menu display.
portfolio@wix/portfolio (+ media from @wix/sdk to resolve image strings; no @wix/ecom/@wix/redirects — display-only)how-to-code-portfolio.md — Portfolio v1 display-only read.
restaurants — table reservations (add-on; only when the Table Reservations app is in the run)@wix/table-reservations (a distinct package from @wix/restaurants; no ecom/redirects — a reservation is a hold, not a purchase)how-to-code-restaurant-reservations.md — book-a-table hold→reserve.
restaurants — experiences (add-on; special dining occasions guests reserve — chef's table, tasting menu)@wix/table-reservations (same package; the experiences namespace + timeSlots/reservations)how-to-code-restaurant-reservations.md — "Booking an experience" (query experiences → scheduled slots → reserve with experienceId).

Cross-cutting packages (CAPABILITIES.md § "Cross-cutting capabilities"): these aren't per-vertical rows but get added to the package list when the run used them. If coupons were seeded, add @wix/marketing. The eCommerce checkout packages (@wix/ecom, @wix/redirects) are already folded into the stores row above — include them once when any purchase-flow vertical is present.

members (cross-cutting — add when the site has login / account / gated content, or whenever pricing-plans is loaded). Package: @wix/members (current member / profile via getCurrentMember — not the dev-preview @wix/site-members); auth is the OAuthStrategy/session methods on the always-on @wix/sdk. The API shape lives in the axis recipe — Read the one that matches the frontend, not both: how-to-code-members-astro.md (Astro: built-in /api/auth/login + /api/auth/logout, no client) or how-to-code-members-non-astro.md (non-Astro: manual OAuthStrategy handshake). Both are the Wix-hosted login page (the default). Only if the brief explicitly asks for a custom/branded login form or custom sign-up fields, Read how-to-code-members-custom-login.md instead — the surface is chosen by intent, not by project type.

Why a map and not navigation: the SDK doc .md pages don't expose the @wix/* import string to a reader (it's only in the page's interactive UI), so the package column is inlined here as the source of truth. If a package name ever drifts, reconcile it against the SDK install article (§1) — not by guessing from the module URL. The linked pages remain authoritative for the API itself.

4 · Seeded schema (what the host binds to — names + field keys, not content IDs)

The host binds to schema, not to a frozen list of content IDs. Content is discovered live: every listing is a query-all (queryProducts/queryPosts/queryEvents/queryServices/queryPlans/items.query/listMenus…), every detail page resolves a [slug]/[...slug] route from the URL at request time (the frontend is SSR — no getStaticPaths), and category/nav is a live query. So the frontend never needs the seeded per-item id/slug arrays — and not carrying them is deliberate: an id the host was never handed is an id it can't hardcode, so content the owner adds later in the backoffice flows through by construction (see §6).

Carry only the structural carve-outs the coding step genuinely reads — the collection/form names and keys you must know to query and bind, which do not change when an owner adds a row:

  • cms: collectionId + field keys per collection

  • forms: formId + each form's field target keys (the submission keys the frontend binds name = target). Field set, labels, options, and validation (required, format, length/pattern) are read live from the schema (how-to-code-forms.md).

Everything else the host resolves live from the queries in §3. (Static platform constants — Stores/Bookings app IDs, the Blog appDefId — and the public clientId are needed too, but they're identical for every site, not seed output; they're in §2/§3.)

5 · Integration notes (headless-auth specifics the per-module docs won't frame)
  • Restaurants online ordering has real-world go-live preconditions the code can't satisfy — surface them to the owner. For a working ordering flow the site needs: (1) a business location with a real address (the skill sets this in setup-restaurant-orders.md STEP 0 — but if the brief gave no address, a placeholder was used and the owner MUST replace it, or checkout stays "testing only"); (2) a premium plan; (3) a configured payment method. State these plainly in the guide/summary — the site is not "done" for real orders until the owner completes them. (The same premium+payment note applies to any eCommerce checkout, e.g. stores.)

  • The visitor token has no per-user identity → seeded CMS collections are public/shared across all visitors (not per-user, not cross-device). Per-user storage needs member auth.

  • Frontend CMS access is read; visitor writes go through Forms submissions.

  • Blog comments are member-gated — read public, write authenticated. Querying/rendering comments is public, so list them server-side in SSR. Submitting needs a logged-in member, so don't gate the form behind an upfront login check (that branch is what burns deliberation): render the form always and resolve identity at submit — POST to a backend endpoint (src/pages/api/*.ts) that calls createComment with the request session; if the caller isn't a member, redirect to the built-in /api/auth/login?returnUrl=…. Do not build the comment form as a client island — the API-endpoint + session path is the documented shape and avoids the browser-auth detour. The comment API keys (post referenceId, Blog appDefId, author lookup via post.memberId) are in how-to-code-a-blog.md.

  • Member auth is one mechanism split on the frontend axis (the §3 members note routes to the right recipe), and orthogonal to elevation. Sign-up and log-in are the same flow (the Wix login page logs in or registers); log-out is its inverse. Two layers stay separate: identity (logged-in vs not — no app install) vs profile (name/photo/roles — needs the Wix Members Area app installed, SETUP.md). pricing-plans is a hard dependency: subscribing requires a logged-in member; for the other verticals, member login is a soft add-on for their "my …" surfaces only. A member reading their own data (own orders/bookings/subscriptions, plan-gated content) uses the member token with NO auth.elevate — elevation is the separate admin/permission axis (site-wide reads, server-side only), not something member features need.

  • Gating is a LIVE signal, never a hardcoded id list. Whenever content is gated (members-only articles, plan-eligible class booking, any "premium" surface), decide eligibility from a signal read at request time — a queryable flag carried on the content (a members-only blog category/tag or a boolean CMS field) and live coverage/eligibility (Cart V2's currentCartV2.calculateCurrentCart() → summary.paymentSummary.memberships, or the member's active-order planIds matched against live Benefit-Program coverage). Never gate on a frozen set of "premium" slugs/ids or a seed-time plan→service map: a gated post or a newly-covered service the owner adds later would silently read as public/ineligible. See how-to-code-a-blog.md (member features) and how-to-code-pricing-plans.md (coverage read).

6 · What a complete site must include (per loaded capability)

When donations is loaded, carry the donor-experience reference linked in how-to-code-donations.md into the handoff. Distinguish anonymous API verification, hosted-checkout verification and an actual payment; do not claim one from another or omit the bounded donation handoff check.

For each loaded capability, carry its Required site features and Implementation checklist from references/CAPABILITIES.md into the guide — in plain product language, lightly tailored to what was seeded. This is the build spec, not optional polish: the host should build every required feature and cover every checklist item. For example, a blog must show the author (name + photo), the publish date and reading time, the cover image, and the full formatted content (not flattened text) — a posts-list-plus-plain-text-body is incomplete. The host maps these onto its own components using the packages/docs in §3 and the seeded schema in §4.

  • State them as the what (product behaviour), not the how (no component code, no API calls) — the host owns the build.

  • When a loaded vertical ships an experience overlay (references/inline-recipes/experience-<vertical>.md; today experience-store.md, experience-donations.md), point the host at it alongside the checklist — it is that vertical's design and copy bar (surfaces, first-viewport rules, truthful copy), read after the general DESIGN.md/CONTENT.md.

  • If a required feature depends on backend support that Seed enabled (e.g., comments), note it's available so the host wires it. If Seed could not enable it, say so plainly rather than implying the site is complete.

  • When pricing-plans is loaded, login / account / gated content is a required feature, not optional polish — a plans grid with no way to log in and subscribe is incomplete (subscribing requires a member; §5 member-auth note). Point the host at the matching how-to-code-members-*.md recipe. For the other verticals, a "my …" surface (my orders / my bookings / my registrations) is a member-gated enhancement — list it only if the run's intent calls for an account view, and flag it needs the same login mechanism.

  • Curation / hero / nav must come from a LIVE query, never a pinned slug/id. A "featured" or "latest" item, a hero, and every nav/category bar must be driven by a query — "next upcoming" (queryEvents filtered to UPCOMING/STARTED, sorted by start date), "newest" (queryPosts), queryCategories, etc. — resolved at request time. A pinned "featured event" slug not only fails to rotate as the owner adds content, it can go stale/past. Even a single-item site (one event, one product) must drive its homepage from the listing query, not a hardcoded lone slug — so a second item the owner adds later surfaces automatically instead of staying invisible.

  • State the residual limitation honestly — don't over-claim a "self-maintaining" site. New content flows through live with no code change and no re-publish: a product, post, event, service, plan, menu item, or category the owner adds in the backoffice appears via the live queries above. Forms are schema-driven, so an added/removed/relabelled form field of a supported input type (text/email/phone/url/textarea/dropdown) — or a tightened validation rule (required, minLength/maxLength/pattern, format) — also reflects live with no code change (how-to-code-forms.md). But new content types / collections / ticket-tier semantics, and a form field of a novel type the renderer doesn't handle yet, require a code change — the frontend renders an authored schema, so a new CMS field, a new collection, a novel ticket structure, or an unsupported form field type won't render until coded. Say this plainly in the guide rather than implying the site maintains itself beyond that.

  • Before finishing, verify nothing is pinned. Confirm no route, listing, gate, or nav is filtered against a seed-time id/slug array held in code — every such filter must key off a stable id used in a live query (a categoryId from queryCategories, a slug from the URL/query result), not a frozen membership list. A pinned array is the one way owner-added content silently fails to appear.

How to navigate the Wix docs

  • Append .md to any URL under https://dev.wix.com/docs/ to get its markdown version.

  • Pages are either content pages (article/reference text) or menu pages (a list of links to child pages).

  • To get a menu page, truncate any URL to a parent path and append .md (e.g. https://dev.wix.com/docs/sdk.md, https://dev.wix.com/docs/sdk/business-solutions.md).

  • Top-level index of all portals: https://dev.wix.com/docs/llms.txt

  • Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

  • §3 points at a local inline recipe per capability — Read it first (first priority); it's already curated, so read it as-is rather than re-discovering the shape. For a pinned SDK doc link (inside a recipe, or the blog supplement in §3), curl its .md directly.

  • SearchWixSDKDocumentation is second priority — for discovering a method the recipe doesn't pin, or when a menu hides the runtime functions. Curling a module menu (e.g. …/sdk/business-solutions/blog.md) often surfaces only dashboard/extension pages, not the runtime query functions — SearchWixSDKDocumentation "blog query posts" returns the actual posts.queryPosts/listPosts shapes (with ?apiView=SDK schema links) the menu doesn't expose.

After deploy: finalize per the project type

The guide describes the backend; how the site is published and how its origin is allowed to call Wix depend on the project type. After deployment, finalize per <TYPE_DIR>/DEPLOYMENT.md — it carries the type-specific steps (and tells you whether anything is required of the user).

After emitting the document

Once the guide is emitted and the deployment checklist is done — site published, origin registered (or the user has been flagged) — the skill's work is done. Close with a short plain-prose summary of what was set up (apps installed, content seeded per capability, site published, origin registered or pending). What happens with the guide — installing packages, wiring components, choosing a framework — is the host's to decide.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Node.js

Security

What our scanner noticed· Low risk

  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Published by
Wix
Publisher
Wix (Official)
Source
wix/skills · skills/wix-headless · commit d168bc2
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Wix.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download wix-headless.zip