All skills
wix avatar

/wix-app

@dc6f1fa official
by Wix.comwix/skills33 stars
33

Build and review Wix CLI app extensions — dashboard pages, modals, plugins, menu plugins, custom element widgets, Editor React components, site plugins, embedded scripts, backend APIs, backend events, service plugins, data collections, and App Market readiness. Use when building ANY feature or extension for a Wix CLI app or preparing a Wix app for App Market review. Triggers on: add, build, create, implement, help me, dashboard, widget, plugin, backend, API, event, collection, embedded script, service plugin, Editor React component, checkout, shipping, tax, discount, SPI, CMS, schema, tracking, popup, admin panel, menu item, modal, validate, test, verify, register extension, App Market, app review, submission readiness.

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

This session only. Nothing lands on disk.

referencesdata-collectionLIFECYCLE.md

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

Data Collection — getting it onto the site

Declaring a collection is not the same as creating one. Releasing, updating the site, the CMS prerequisite, and what access the extension actually grants.

Item access and collection management are different scopes

The data-collections extension gives your app read/write access to the items in its own collections — items.query/insert/update work with no extra scope. It does not grant the collection-management API: collections.listDataCollections() and friends answer 403 unless the app holds a Data Collections management scope.

That asymmetry is worth knowing before you debug: a page whose table loads rows has proved its collection exists, because Wix Data errors on a missing collection rather than returning empty. If that same page cannot list collections, the app is missing a management scope — a separate fact about tooling, not evidence about the collection.

Reading the collection from a dashboard page

A page over a CMS collection uses the package's CMS Collection and Entity Template, not the hand-wired one — the CMS already owns the field list, so useCmsSchemaSource supplies fetch, filters, columns and the entity form from it. See DRAFT_TEMPLATE.md. Wiring items.query() and hand-written columns by hand still compiles, and quietly gives up everything the schema would have provided.

The site must have CMS, or nothing is created at all

The installing site needs the CMS (Content Manager) app. Per the extension's own docs: "Without it, collections added by the extension won't appear after installation." Nothing warns you — the release succeeds, the update succeeds, and the collection silently never exists. Bundle CMS as an app dependency so installing your app brings it, and list "add CMS to the site" under Manual Steps Required for any site that may not have it.

This is the first thing to check when a collection is missing after a correct release and update.

The extension does not create the collection

Scaffolding the extension, compiling, and even releasing all leave the site's CMS unchanged. A collection appears only when the app is installed or updated on the site with a version that contains the extension — and any change under data-collections/ needs a major version:

npx wix release --version-type major -c "<what changed>"

Releasing is only half of it. Report both remaining browser steps under Manual Steps Required — they are the difference between a page that works and one that shows an empty table:

  1. Update the app on the site to the new version.
  2. Wait up to 5 minutes for propagation.

A dev server running a version override does not create collections either, so "I ran wix dev and the collection isn't in the CMS" is this step, not a bug.

App Version Updates

Changes to your data collections extension require releasing a new major version of your app. When a user updates to the new major version, their collections are updated as follows:

  • Adding a new collection: The new collection is created on the site.
  • Removing a collection: If the old app version defined a collection and the new version doesn't, the collection is removed from the site.
  • Modifying a collection schema: Field additions, removals, and type changes are applied to the collection. Existing data is preserved.

Important notes:

  • Collection changes only affect users who update to the new major version. Users who don't update retain their current collections.
  • Collection changes take up to 5 minutes to propagate after an update.
  • Initial data is only imported when a collection is first created. If a collection already contains data, initialData is ignored during updates.

Source: SKILL.md on GitHub

1 warningtoday4 checks · Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill is a specialized development toolkit for building extensions on the Wix platform. It provides comprehensive instructions for creating dashboard pages, backend APIs, and site plugins using the Wix CLI and SDKs. No malicious patterns were detected; the skill's behaviors, such as dependency management, command execution for builds, and local script execution for code reviews, are entirely consistent with its purpose as a developer productivity tool for the Wix ecosystem.

  • Sockettoday

    1 alert: gptAnomaly

  • Snyktoday

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at dc6f1fa. 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
compatibility
requires `@wix/cli` >= 1.1.192.

README badge

README badge for wix/skills/wix-app

Builds dashboard pages, modals, plugins, custom widgets, Editor React components, backend APIs, events, service plugins, and data collections for Wix CLI apps. Provides decision logic, API patterns, and validation workflows; scaffolding is owned by the Wix CLI via `wix generate --params`.

Generated from the current SKILL.md.

What extension types does this skill cover?
All Wix CLI app extension types: dashboard pages, modals, plugins, menu plugins, custom element widgets, Editor React components, site plugins, embedded scripts, backend APIs, backend events, service plugins, and data collections.
Does this skill scaffold the extension files for me?
The Wix CLI owns scaffolding via `wix generate --params` for all extension types except Backend API. This skill provides decision logic, API guidance, and business-logic patterns to fill in the generated stubs. Backend API files must be created manually.
What Wix CLI version is required?
The skill requires @wix/cli >= 1.1.192.
Do I need to create a Data Collection extension for app-specific data?
Yes, if you're saving or persisting app-specific data, managing domain entities in a dashboard, or running a service plugin that reads app-configured data. The skill infers this automatically—you don't need to explicitly request it.
Does this skill cover Wix Stores API usage?
Yes. When using any Wix Stores API (products, inventory, orders), the skill requires dual V1/V3 catalog support and references the Stores Versioning guide for module selection and field mapping.

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