From wix-cli
Use when testing app readiness, verifying runtime behavior, or validating before releases and after changes in the code. Triggers include validate, test, verify, check readiness, preview validation, build verification, TypeScript compilation.
npx claudepluginhub wix-playground/skills-architecture-test --plugin wix-cliThis skill uses the workspace's default tool permissions.
Validates Wix CLI applications through a four-step sequential workflow: package installation, TypeScript compilation check, build, and preview.
Builds and reviews Wix CLI app extensions: dashboard pages, modals, plugins, Editor React components, backend APIs, events, service plugins, data collections. Prepares apps for App Market review.
Validates web pages by detecting JavaScript errors, capturing console logs and screenshots, testing mobile/desktop viewports with 14 presets, and supporting authentication for protected apps.
Verifies full app flow end-to-end: browser → API → data → response. Triggers on dev server starts (next dev, vite, astro, vercel) and phrases like 'why isn't it working'.
Share bugs, ideas, or general feedback.
Validates Wix CLI applications through a four-step sequential workflow: package installation, TypeScript compilation check, build, and preview.
Execute these steps sequentially. Stop and report errors if any step fails.
Ensure all dependencies are installed before proceeding with the build.
Detect package manager:
package-lock.json → use npmyarn.lock → use yarnpnpm-lock.yaml → use pnpmnpm if no lock file is foundRun installation command:
# For npm
npm install
# For yarn
yarn install
# For pnpm
pnpm install
Success criteria:
node_modules directory exists and contains expected packagesOn failure: Report the installation errors, check the debug log for detailed diagnostics, and stop validation. Common issues:
Run TypeScript compiler to check for type errors.
Full project check:
npx tsc --noEmit
Targeted check (specific files/directories):
When validating after implementing a specific extension, you can run TypeScript checks on just those files:
# Check specific directory
npx tsc --noEmit src/extensions/dashboard/pages/survey/**/*.ts src/extensions/dashboard/pages/survey/**/*.tsx
# Check dashboard pages only
npx tsc --noEmit src/extensions/dashboard/pages/**/*.ts src/extensions/dashboard/pages/**/*.tsx
# Check site widgets only
npx tsc --noEmit src/extensions/site/widgets/**/*.ts src/extensions/site/widgets/**/*.tsx
# Check dashboard modals only
npx tsc --noEmit src/extensions/dashboard/modals/**/*.ts src/extensions/dashboard/modals/**/*.tsx
# Check backend only
npx tsc --noEmit src/extensions/backend/**/*.ts
When to use targeted checks:
When to use full project check:
Success criteria:
On failure: Report the specific TypeScript errors and stop validation. Common issues:
Run the build command and check for compilation errors:
npx wix build
Success criteria:
On failure: Report the specific compilation errors, check the debug log for detailed diagnostics, and stop validation.
Start the preview server:
npx wix preview
Success criteria:
URL extraction: Parse the terminal output to find both preview URLs. Look for patterns like:
Site preview: https://... or Site URL: https://...Dashboard preview: https://... or Preview URL: https://... or Your app is available at: https://...Extract both URLs and provide them to the user for manual verification.
On failure: Report the preview startup errors, check the debug log for detailed diagnostics, and stop validation.
After completing all steps, provide a summary:
Pass:
Fail:
When a validation step fails (non-zero exit code, error output, or the CLI crashes/hangs), check .wix/debug.log in the project root for the full error trace. Only read this file when errors occur — skip it when steps pass or when the terminal output already makes the error clear (e.g. a straightforward TypeScript type error).
The .wix/ directory is automatically created by the Wix CLI and contains internal configuration and log files. Don't edit it, but reading debug.log for troubleshooting is expected.
Read: .wix/debug.log
# If the file is large, read the last 100 lines for the most recent errors
Read: .wix/debug.log (with offset to the end)
| Issue | Cause | Solution |
|---|---|---|
| Package installation fails | Missing lock file, network issues, or corrupted node_modules | Delete node_modules and lock file, then reinstall |
| TypeScript compilation fails | Type mismatches, missing declarations, or incorrect types | Fix TypeScript errors shown in npx tsc --noEmit output |
| Build fails | TypeScript errors, missing dependencies, or internal CLI error | Fix TypeScript errors in source; for non-obvious failures, check .wix/debug.log |
| Preview fails to start | Port conflict, config issue, or internal CLI error | Check wix.config.json; if unclear, check .wix/debug.log for details |
| Console errors in preview | Runtime exceptions | Check browser console output |
| UI not rendering | Component errors | Review component code and imports |
| CLI error with no clear message | Truncated terminal output | Read .wix/debug.log for the full error trace and stack details |
| Mysterious failures after config change | Stale CLI state | Read .wix/debug.log to confirm, then delete .wix/ and rebuild |