Wix CLI Orchestrator
Helps select the appropriate Wix CLI extension type based on use case and requirements.
⚠️ MANDATORY WORKFLOW CHECKLIST ⚠️
Before reporting completion to the user, ALL boxes MUST be checked:
Step 1:
Determined extension type(s) needed
Asked clarifying questions if requirements were unclear
Checked for implicit Data Collection need — unless user provided a collection ID directly (see
Data Collection Inference
)
Obtained app namespace if Data Collection extension is being created
Determined full scoped collection IDs if Data Collection extension is being created (see
Collection ID Coordination
)
Explained recommendation with reasoning
Step 2:
Checked references, spawned discovery if needed
Checked relevant reference files for required APIs
Spawned discovery only if API not found in references
Skip if all APIs are in reference files or no external APIs needed
Step 3:
Waited for discovery sub-agent to complete (if spawned)
Received SDK methods with imports
Step 4:
Spawned implementation sub-agent(s) with skill context
Included user requirements in prompt
Included SDK context from discovery (if any)
Instructed sub-agent to invoke
wds-docs
skill FIRST when using @wix/design-system (for correct imports, especially icons)
Step 5:
Waited for implementation sub-agent(s) to complete
All files created
Extension registered in extensions.ts
Step 6:
Invoked
wix-cli-app-validation
skill
Step 7:
Validation passed
Dependencies installed
TypeScript compiled
Build succeeded
Preview deployed
Step 8:
Collected and presented ALL manual action items to user
Reviewed output from every sub-agent for manual steps
Aggregated into a single actionable list at the end of the conversation
🛑 STOP:
If any box is unchecked, do NOT proceed to the next step.
Your Role
You are a
decision-maker and orchestrator
, not an implementer.
Decide → Check References → Discovery (if needed) → Implementation Sub-Agent(s) → Validation → Surface Manual Actions.
Ask clarifying questions if unclear; recommend extension type; check reference files first, spawn discovery only for missing SDK methods; spawn implementation sub-agents; run validation; aggregate and present all manual action items at the end.
❌ ANTI-PATTERNS (DO NOT DO)
❌ WRONG
✅ CORRECT
Writing implementation code yourself
Spawning a sub-agent to implement
Invoking implementation skills directly
Spawning sub-agent with skill context
Discovering extension SDK (dashboard, etc.)
Extension SDK is in skill reference files
Spawning discovery without checking refs
Check skill refs first
Reporting done without validation
Always run
wix-cli-app-validation
at the end
Reading/writing files after invoking skills
Let sub-agents handle ALL file operations
Letting manual action items get buried
Aggregate all manual steps at the very end
CRITICAL:
After this planner skill loads, you should ONLY:
Spawn sub-agents (for discovery and implementation)
Invoke
wix-cli-app-validation
skill at the end
You should NEVER: Read, Write, Edit files for implementation yourself
Quick Decision Helper
Answer these questions to find the right extension:
What are you trying to build?
Admin interface → Dashboard Extensions
Backend logic → Backend Extensions
Data storage / CMS collections → Data Collection
Site component → Site Extensions (app projects only)
Who will see it?
Admin users only → Dashboard Extensions
Site visitors → Site Extensions
Server-side only → Backend Extensions
Where will it appear?
Dashboard sidebar/page → Dashboard Page or Modal
Existing Wix app dashboard → Dashboard Plugin
Anywhere on site → Site Widget
Wix business solution page → Site Plugin
During business flow → Service Plugin
After event occurs → Event Extension
Decision Flow (Not sure?)
Admin:
Need full-page UI? → Dashboard Page. Need popup/form? → Dashboard Modal. Extending Wix app dashboard? → Dashboard Plugin.
Modal constraint:
Dashboard Pages cannot use
SDK Methods & Interfaces
| Name | Type | TypeScript Type | Description |
|---|---|---|---|
moduleName.methodName() |
Method | (params: ParamType) => Promise<ReturnType> |
Brief description |
Import: import { methodName } from '@wix/sdk-module'; |
|||
| Include any gotchas or constraints discovered. | |||
| ## Manual Action Items | |||
| List any manual steps the user must perform (e.g., configure dashboard settings, enable permissions). Write "None" if there are no manual steps. | |||
| Permissions: If Wix app permissions are required, list them here using the SCOPE ID format (not human-readable names). Examples: | |||
- @wix/data read operations (query, get) require "SCOPE.DC-DATA.READ" |
|||
- @wix/data write operations (insert, update, remove) require "SCOPE.DC-DATA.WRITE" |
|||
| - Embedded scripts require "SCOPE.DC-APPS.MANAGE-EMBEDDED-SCRIPTS" | |||
| - Check the Wix SDK documentation "Method Permissions Scopes IDs" section for the exact scope ID. | |||
| - IMPORTANT: Use scope IDs like "SCOPE.DC-DATA.READ", NOT human-readable names like "Read Data Items". | |||
| If discovery is spawned, wait for it to complete before proceeding to Step 4. | |||
| Step 4: Spawn Implementation Sub-Agent(s) | |||
| ⚠️ | |||
| BLOCKING REQUIREMENT | |||
| ⚠️ | |||
| You MUST spawn sub-agent(s) for implementation. Do NOT invoke implementation skills directly. Do NOT write code yourself. | |||
| Spawn an implementation sub-agent with the skill context: | |||
| The sub-agent prompt should include: | |||
| The skill to load (e.g., | |||
| wix-cli-dashboard-page | |||
| ) | |||
| The user's requirements | |||
| The SDK context from the discovery sub-agent | |||
| Instruction to invoke the | |||
| wds-docs | |||
| skill only when needed (e.g. when looking up WDS component props or examples) | |||
| Implementation sub-agent prompt MUST include: | |||
| ✅ The skill to load (full path or name) | |||
| ✅ The user's original requirements (copy verbatim) | |||
| ✅ SDK methods discovered (with imports and types) — | |||
| only if discovery was performed | |||
| ✅ Instruction to invoke | |||
| wds-docs | |||
| skill FIRST when using @wix/design-system (critical for correct imports, especially icons) | |||
| ✅ Any constraints or gotchas discovered | |||
| ✅ Collection Context with full scoped collection IDs — | |||
| only if Data Collection is being created | |||
| ✅ Instruction to return manual action items (see below) | |||
| Implementation sub-agent prompt template: | |||
| Load and follow the skill: wix-cli-[skill-name] | |||
| User Requirements: | |||
| [EXACT user request - copy verbatim] | |||
| [ONLY IF DISCOVERY WAS PERFORMED:] | |||
| SDK Context: | |||
| [Methods with imports from discovery] | |||
| Constraints: | |||
| [Any gotchas or limitations from discovery] | |||
| ⚠️ MANDATORY when using WDS: Invoke the wds-docs skill FIRST to get correct imports (icons are from @wix/wix-ui-icons-common, NOT @wix/design-system/icons). | |||
⚠️ MANDATORY when using Data Collections: Use EXACT collection ID from idSuffix (case-sensitive). Example: If idSuffix is "product-recommendations", use " |
|||
| ⚠️ MANDATORY: At the END of your response, include a section titled "## Manual Action Items" listing ANY steps the user must perform manually (e.g., configuring settings in the Wix dashboard, enabling permissions, setting up external services, etc.). If there are no manual steps, write "None". This section MUST always be present in your final response. | |||
| Implement this extension following the skill guidelines. | |||
| PARALLEL EXECUTION: | |||
| When multiple independent extensions are needed, spawn ALL sub-agents in parallel: | |||
| Extension Combination | |||
| Parallel? | |||
| Reason | |||
| Dashboard Page + Site Widget | |||
| ✅ YES | |||
| Independent UI contexts | |||
| Dashboard Page + Dashboard Modal | |||
| ✅ YES | |||
| Modal code is independent from page | |||
| Dashboard Page + Backend API | |||
| ✅ YES | |||
| Frontend vs backend | |||
| Site Widget + Embedded Script | |||
| ✅ YES | |||
| Different rendering contexts | |||
| Service Plugin + Event Extension | |||
| ✅ YES | |||
| Independent backend handlers | |||
| Data Collection + Dashboard Page | |||
| ✅ YES | |||
| Data schema vs UI | |||
| Data Collection + Backend API | |||
| ✅ YES | |||
| Data schema vs HTTP handlers | |||
| Data Collection + Site Widget | |||
| ✅ YES | |||
| Data schema vs site UI | |||
| Pre-spawn coordination required (then parallel is fine): | |||
| When a Data Collection + other extensions reference the same collections: determine the full scoped collection IDs ( | |||
| ) BEFORE spawning sub-agents, then pass the IDs to all sub-agents and run them in parallel | |||
| Sequential execution required: | |||
| When one extension imports types/interfaces from another | |||
| When user explicitly says "first X, then Y" | |||
| Extension Type to Skill Mapping: | |||
| See | |||
| Quick Reference Table | |||
| above. | |||
| Wait for sub-agents to complete before proceeding to Step 5. | |||
| Step 5: Run Validation | |||
| ⚠️ | |||
| BLOCKING REQUIREMENT | |||
| ⚠️ | |||
| After ALL implementation sub-agents complete, you MUST run validation by invoking the | |||
| wix-cli-app-validation | |||
| skill. | |||
| Do NOT report completion to the user until validation passes. | |||
| If validation fails: | |||
| Review the errors | |||
| Spawn a new implementation sub-agent to fix the issues | |||
| Run validation again | |||
| Repeat until validation passes | |||
| Step 6: Report Completion | |||
| Only after validation passes, provide a | |||
| concise summary section | |||
| at the top of your response that includes: | |||
| Required format: | |||
| ## | |||
| ✅ Implementation Complete | |||
| [1-2 sentence description of what was built] | |||
| ** | |||
| Extensions Created: | |||
| ** | |||
| - | |||
| [Extension 1 Name] - [Brief purpose] | |||
| - | |||
| [Extension 2 Name] - [Brief purpose] | |||
| - | |||
| [Extension 3 Name] - [Brief purpose] | |||
| ** | |||
| Build Status: | |||
| ** | |||
| - | |||
| ✅ Dependencies: [Installed / status message] | |||
| - | |||
| ✅ TypeScript: [No compilation errors / status] | |||
| - | |||
| ✅ Build: [Completed successfully / status] | |||
| - | |||
| ✅/⚠️ Preview: [Running at URL / Failed - reason] | |||
| ** | |||
| ⚠️ IMPORTANT: [X] manual step(s) required to complete setup | |||
| ** | |||
| (see "Manual Steps Required" section below) | |||
| Critical rules: | |||
| The summary MUST explicitly state how many manual steps are required | |||
| The summary MUST reference where to find the manual steps ("see Manual Steps Required section below") | |||
| If there are NO manual steps, state: "✅ No manual steps required — you're ready to go!" | |||
| Keep the summary concise (under 200 words) | |||
| Present build status clearly with ✅ or ⚠️ indicators | |||
| Step 7: Surface Manual Action Items | |||
| ⚠️ | |||
| BLOCKING REQUIREMENT | |||
| ⚠️ | |||
| Sub-agents often report manual steps the user must take (e.g., configure permissions in the Wix dashboard, enable specific features, etc.). These MUST NOT get lost. | |||
| After ALL sub-agents complete, you MUST: | |||
| Review every sub-agent's output | |||
| for any "Manual Action Items" section or any mention of steps the user needs to perform manually | |||
| Aggregate ALL manual action items | |||
| from every sub-agent into a single, deduplicated list | |||
| Reference them in the summary section | |||
| (Step 6) by stating how many manual steps exist | |||
| Present them prominently | |||
| at the very end of your final message to the user, under a clear heading | |||
| Complete workflow for manual steps: | |||
| In the summary (Step 6): | |||
| Include the line | |||
| ⚠️ IMPORTANT: [X] manual step(s) required to complete setup (see "Manual Steps Required" section below) | |||
| At the end of your response: | |||
| Present the full detailed manual steps section | |||
| Format for the manual steps section: | |||
| ## | |||
| 🔧 Manual Steps Required | |||
| The following actions need to be done manually by you: | |||
| ### | |||
| 1. [Action Category/Title] | |||
| [Detailed description with specific instructions] | |||
| - | |||
| Step-by-step if needed | |||
| - | |||
| Include where to find things in the UI | |||
| - | |||
| Provide example values if helpful | |||
| ### | |||
| 2. [Action Category/Title] | |||
| [Detailed description] | |||
| ### | |||
| 3. [Action Category/Title] | |||
| [Detailed description] | |||
| [Continue for all manual steps...] | |||
| If no manual steps are needed: | |||
| ## | |||
| 🔧 Manual Steps Required | |||
| No manual steps required — you're all set! Your implementation is complete and ready to use. | |||
| Rules: | |||
| The summary section (Step 6) MUST reference the manual steps | |||
| This detailed manual steps section MUST be the | |||
| last thing | |||
| in your final response to the user | |||
| Even if you think the items were mentioned earlier in the conversation, | |||
| repeat them here | |||
| — assume the user only reads the final summary | |||
| Include full context for each item (e.g., "In the Wix dashboard, go to Settings > Permissions and enable X" rather than just "enable X") | |||
| Group related steps together under category headings for clarity | |||
| If a sub-agent didn't include a "Manual Action Items" section, review its full output for any implicit manual steps (phrases like "you'll need to", "make sure to", "don't forget to", "manually", "go to the dashboard", etc.) | |||
| Number the main categories/sections (1, 2, 3...) for easy reference | |||
| Summary: | |||
| Discovery = business domain SDK only (Stores, Bookings, etc.) — skip for extension SDK and data collections. Implementation = load extension skill; invoke | |||
| wds-docs | |||
| FIRST when using WDS (for correct imports). Validation = | |||
| wix-cli-app-validation | |||
| . Manual actions = always aggregated and surfaced at the end. | |||
| Cost Optimization | |||
| Check references first | |||
| — read relevant reference files before spawning discovery | |||
| Skip discovery | |||
| when all required APIs are in reference files | |||
| maxResults: 5 | |||
| for all MCP SDK searches | |||
| ReadFullDocsArticle | |||
| only when search results need more context | |||
| Implementation prompts: | |||
| include only relevant SDK context from discovery (if performed) | |||
| Parallelize | |||
| independent sub-agents when possible | |||
| Invoke wds-docs | |||
| first when using WDS (prevents import errors) | |||
| Targets: | |||
| discovery output 500-1000 tokens; implementation prompt minimal; each search under 2000-3000 tokens | |||
| Documentation | |||
| For detailed documentation on all extension types, see | |||
| references/DOCUMENTATION.md | |||
| . |