wix-cli-service-plugin
Installation
SKILL.md
Wix Service Plugin (SPI) Builder
Creates service plugin extensions for Wix CLI applications. Service plugins are a set of APIs defined by Wix that you can use to inject custom logic into the existing backend flows of Wix business solutions or to introduce entirely new flows to Wix sites.
When you implement a service plugin, Wix calls your custom functions during specific flows. Common use cases include eCommerce customization (shipping, fees, taxes, validations) and Bookings customization (staff sorting), but service plugins can extend any Wix business solution that exposes SPIs.
Quick Start Checklist
Follow these steps in order when creating a service plugin:
- Read the reference doc for your SPI type, then STOP and call
ReadFullDocsMethodSchemawith the docs URL from the reference to get the exact request/response types — DO NOT write any code until you have the schema - Create plugin folder:
src/extensions/backend/service-plugins/<service-type>/<plugin-name>/ - Create
plugin.tswith correct imports andprovideHandlers()call - Implement all required handler functions with complete business logic
- Create
extensions.tswith appropriate builder method and unique UUID - Update
src/extensions.tsto import and use the new extension - Run
npx tsc --noEmitto verify TypeScript compiles - Run
npx wix buildto verify build succeeds - Test by triggering the relevant site action (e.g., add to cart for fees)