wix-cli-data-collection

Creates CMS data collection schemas for Wix CLI apps using TypeScript extension definitions.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/ESSSoWhat/live-translate-realtime-dubbing --skill wix-cli-data-collection-esssowhat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wix-cli-data-collection
Source: https://github.com/ESSSoWhat/live-translate-realtime-dubbing/tree/main/wix-app/np/.agents/skills/wix-cli-data-collection
Command: npx skills add https://github.com/ESSSoWhat/live-translate-realtime-dubbing --skill wix-cli-data-collection-esssowhat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @wix/astro/builders, and includes assets (resource) components.

What problem does it solve? Defining structured data storage for Wix CLI apps requires precise knowledge of collection schemas, field types, permissions, and namespace scoping, and mistakes cause runtime failures or rejected extensions. ## Core Features & Use Cases - Collection Schema Generation: Produces src/extensions/data/extensions.ts with correctly typed fields, display names, and naming conventions for CMS collections. - Permission Configuration: Applies context-based access rules (ANYONE, SITE_MEMBER, CMS_EDITOR, PRIVILEGED) matched to where data is consumed, such as site widgets or dashboard pages. - Relationship Modeling: Defines REFERENCE and MULTI_REFERENCE fields linking custom collections, with constraints against referencing Wix business entities. - Use Case: When building a Wix app that stores product reviews, generate a reviews collection with proper field types, public read permissions for the site widget, and editor-only write permissions for dashboard moderation. ## Quick Start Ask the assistant to create a Wix CMS data collection for your app, describing the fields, relationships, and who should read or write the data.

Frequently Asked Questions about wix-cli-data-collection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a CMS data collection in a Wix CLI app?

Define all collections in src/extensions/data/extensions.ts using extensions.genericExtension() from @wix/astro/builders with compType DATA_COMPONENT. Each collection needs an idSuffix, displayName, fields array, and dataPermissions, then register the extension in src/extensions.ts.

What field types does Wix CMS collection support?

Wix collections support TEXT, RICH_TEXT, NUMBER, BOOLEAN, DATE, DATETIME, IMAGE, VIDEO, REFERENCE, MULTI_REFERENCE, OBJECT, ARRAY, URL, and more. OBJECT fields require an objectOptions property, and REFERENCE fields can only link to other custom collections in the same app.

Why does my Wix site widget return empty collection data?

The collection's itemRead permission is likely set too restrictively, such as PRIVILEGED or CMS_EDITOR. Site widgets run in a public visitor context, so itemRead must be ANYONE for visitors to see the data.

Can Wix collections reference Wix business entities like Products or Members?

No, REFERENCE and MULTI_REFERENCE fields can only link to custom CMS collections defined in your own app. To access Wix business entities like Products, Orders, or Members, use the Wix SDK APIs instead.

When should I use embedded script parameters instead of CMS collections?

Use embedded script parameters for any configuration controlling how a script behaves or appears, such as colors, headlines, toggles, or thresholds. Reserve CMS collections for business data, user-generated content, and multi-record relational data.