All skills
wix avatar

/wix-headless

@8f7fa5d official
by Wix.comwix/skills33 stars
33

Connect Wix business services (Stores, Bookings, 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, build or host a Wix site, connect/implement this design with Wix.

Use this Skill: https://skilld.dev/gh/wix/skills/wix-headless

This session only. Nothing lands on disk.

referencesSETUP.md

≈1.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Setup — install the business apps

Install the Wix apps the resolved capabilities need, on the given metasite. That is the whole of setup — the frontend toolchain stays with the host.

1 · Obtain the token

Obtain $TOKEN (a bearer authorized for the metasite) and $SITE_ID (the metasite id) using the provided authentication mechanism — see <TYPE_DIR>/AUTHENTICATION.md. Hold them for the install calls below.

All Wix REST calls in this skill then use the same universal call shape:

Authorization: Bearer $TOKEN
wix-site-id: $SITE_ID
Content-Type: application/json

2 · Install one app per capability

For each capability in verticals[], install its app by appDefId (these are the constants the install call needs):

  • stores → 215238eb-22a5-4c36-9e7b-e7c08025e04e
  • blog → 14bcded7-0066-7c35-14d7-466cb3f09103
  • forms → 225dd912-7dea-4738-8688-4b8c6955ffc2
  • events → 140603ad-af8d-84a5-2c80-a0f60cb47351
  • bookings → 13d21c63-b5ec-5912-8397-c3a5ddb27a97
  • rentals → ff5d6eb1-65e4-4f9a-8b14-64d34c12cc2e (Wix Rentals). Rentals provisions the Bookings infrastructure it runs on, so a Rentals-only install is enough — its availability comes back without adding Wix Bookings separately. Rentals has no APIs of its own: it is Services V2 with rentals-specific field values (setup-rentals.md), and its frontend package is @wix/bookings — there is no @wix/rentals. Rentals uses no categories; to also offer plain fixed-duration services, install Wix Bookings (13d21c63-b5ec-5912-8397-c3a5ddb27a97) as well, seed those with setup-bookings.md, and filter every catalog read by appId so the two sets stay separate.
  • pricing-plans → 1522827f-c56c-a5c9-2ac9-00f9e6ae12d3
  • restaurants → b278a256-2757-4f19-9313-c05c783bec92 (Wix Restaurants Menus — the seedable core). Online ordering and table reservations are separate optional apps, install only if intent calls for them: Orders (New) → 9a5d83fd-8570-482e-81ab-cfa88942ee60, Table Reservations → f9c07de2-5341-40c6-b096-8eb39de391fb. Experiences (special dining occasions guests reserve — chef's tables, tasting menus; see CAPABILITIES.md) are a feature of the Table Reservations app, not a separate install — installing Table Reservations is all that's needed to create and book them (setup-restaurant-experiences.md).
  • portfolio → d90652a2-f5a1-4c7c-84c4-d4cdcc41f130 (Wix Portfolio; the install ships a default sample collection + projects — setup-portfolio.md STEP 0 cleans them)
  • cms → no install (Wix Data is core) — skip

For any vertical added later, its appDefId is in the docs — "Apps Created by Wix": https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/platform/about-apps-created-by-wix.md.

members — install is conditional on the layer, and only the profile layer installs anything. Members is a cross-cutting capability (CAPABILITIES.md), not a verticals[] entry, so it has no unconditional row above. Split by layer:

  • Identity only (sign-up / log-in / log-out, "logged-in vs not" gating — the common case, and all that pricing-plans' subscribe flow needs) → no install. It's the headless OAuth app; members self-register. Skip, exactly like cms.
  • Profile / Members Area (the site displays or edits member data — name / photo / roles / badges, a my-account page) → install the Wix Members Area app, appDefId 14cc59bc-f0b7-15b8-e1c7-89ce41d0e0c9 (via the same apps-installer-service call above; it pulls in its Site-Members dependency automatically). Wrinkle: Members Area is not in the "Apps Created by Wix" table (that table has Stores, Blog, Pricing Plans, Groups… but no Members Area), so the GUID can't be grabbed from there — it comes from the App Market listing (https://www.wix.com/app-market/web-solution/members-area). Install it only when the run genuinely needs profile data; pure "logged-in vs not" gating (the common case) is the identity layer and needs no install.

Fire one install curl per app — POST /apps-installer-service/v1/app-instance/install:

# TOKEN, SITE_ID from the provided authentication mechanism — see <TYPE_DIR>/AUTHENTICATION.md
curl -sS -w "\nHTTP_STATUS:%{http_code}" \
  -X POST "https://www.wixapis.com/apps-installer-service/v1/app-instance/install" \
  -H "Authorization: Bearer $TOKEN" \
  -H "wix-site-id: $SITE_ID" \
  -H "Content-Type: application/json" \
  -d '{
    "tenant":      { "tenantType": "SITE", "id": "'"$SITE_ID"'" },
    "appInstance": { "appDefId": "<appDefId>", "enabled": true }
  }'

The installs are independent — issue them in whatever order is convenient.

A 200 confirms the install. On a non-200, surface the response verbatim and stop.

3 · Proceed to Seed

Confirm every required app returned 200 (cms skipped). Then continue to SEED.md, which seeds from the local inline recipes.

Source: SKILL.md on GitHub

1 warning1d3 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    The wix-headless skill is a robust tool for integrating Wix services into headless frontends. It incorporates secure practices for credential management, ensuring tokens remain outside the AI context. While the skill performs remote code execution and has data ingestion surfaces, these actions are carried out through official vendor channels and structured workflows.

  • Socket1d

    1 alert: gptAnomaly

  • Snyk1d

    Risk: LOW · No issues

Signed by skilld at 8f7fa5d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 days ago
What it can do
Runs commands Reads files Edits files
All 16 allowed tools
Bash(curl *)Bash(npx @wix/cli@latest *)Bash(npx @wix/cli *)Bash(npm create @wix/new@latest *)Bash(npm install *)Bash(npm run *)Bash(node *)Bash(cd *)Bash(ls *)Bash(mkdir *)Bash(cp *)Bash(mv *)Bash(uuidgen)ReadWriteEdit
  • wix
  • headless
  • ecommerce
  • astro
  • vite
  • jsx
  • hosting
  • cms
  • bookings

README badge

README badge for wix/skills/wix-headless

Scaffolds a new Wix Headless site from scratch or connects an existing HTML/JSX/Vite project to Wix Headless for hosting and business features (ecommerce, bookings, forms, CMS). Handles discovery, design, feature wiring via the Wix SDK, and deployment; routes on operation type (create vs. connect) and frontend framework (Astro by default, or your own build).

Generated from the current SKILL.md.

Does this skill create a new site or connect an existing one?
Both. Path A creates a new site from scratch based on your description (e.g. 'build me an online store'). Path B connects an existing project (HTML/JSX/Vite app, Claude Design output, etc.) to Wix Headless for hosting and feature wiring.
What happens when I connect an existing project to Wix Headless?
The skill analyzes your project, installs the necessary Wix Business Solutions apps, and wires the Wix SDK directly into your existing source files so each installed app powers its corresponding feature.
What frameworks does this skill support?
For new sites, it defaults to Astro but supports any framework you explicitly name (React, Vue, Svelte, Vite, etc.). For existing projects, it works with HTML, JSX, TSX, Vue, and other web frontends.
Does this skill handle ecommerce, bookings, and content sites?
Yes. It routes to different vertical packs depending on your needs: stores and ecommerce, bookings and appointments, CMS and blogs, forms, and gift cards. All verticals include CMS by default.
How does the skill authenticate with Wix?
It uses the Wix CLI (`npx @wix/cli@latest token`) to generate bearer tokens for API calls. The login flow is safe for non-interactive agents and includes a recovery ladder if needed.

Generated from the current SKILL.md. These answers refresh after source changes.