wix-cli-context-provider

Installation
SKILL.md

Wix Context Provider Builder

Creates production-quality context provider components for Wix CLI applications. Context providers are logical components (no UI) that can be added to any page, container, or section in the Editor. They expose shared state and functionality that child components consume via a React hook.

You MUST read CONTEXT_PROVIDER_SPEC.md before implementing a context provider. It contains the complete manifest structure, all data types, and type constraints.

Consumer Constraint

⚠️ Only site components (wix-cli-site-component) can consume context provider extensions. Site widgets, site plugins, and all other extension types are NOT supported as consumers.

⚠️ Consumer site components require valid manifests. When creating a site component to consume this context provider, you MUST follow the wix-cli-site-component skill, including its Hard Constraints.

Quick Start Checklist

Follow these steps in order when creating a context provider:

  1. Ask the user for the app's code identifier (<codeIdentifier>) — this is configured in the Wix Dev Center and cannot be derived from the code. It is used as the namespace in the type field (e.g., <codeIdentifier>.CounterContext)
  2. Install @wix/public-schemas as a devDependency
  3. Install @wix/services-manager-react and @wix/services-definitions if not already present
Related skills

More from wix/skills

Installs
16
Repository
wix/skills
GitHub Stars
11
First Seen
Mar 17, 2026